]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Cleanups after the update to Autoconf 2.64, Automake 1.11.
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
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
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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
198 fi
199 fi
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
209
210
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+"$@"}
220 fi
221
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."
233 fi
234 exit 1
235 fi
236 fi
237 fi
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
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
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 ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
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/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
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"
318
319
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 ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
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 ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
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 ()
363 {
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
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
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
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
390 fi
391
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/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
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
417
418
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 '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
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; }
441
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
448 }
449
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;;
459 *)
460 ECHO_N='-n';;
461 esac
462
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
469 fi
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'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
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
495 fi
496
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=
504 fi
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
516 '
517 fi
518 as_executable_p=$as_test_x
519
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'"
522
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'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
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','`
535 ;;
536 esac
537
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
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
561
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
565
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
575 fi
576 done
577 fi
578
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
582 :
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'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
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
599 fi
600 done
601 IFS="$lt_save_ifs"
602
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
625 :
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=:
643
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
648 fi
649 prev="$cmd"
650 done
651
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
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
665
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"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
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`
682
683 #
684 # Initializations.
685 #
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=
694
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
702
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"
739
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
815 GGC
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
838 LD
839 FGREP
840 SED
841 LIBTOOL
842 collect2
843 STMP_FIXINC
844 BUILD_LDFLAGS
845 BUILD_CFLAGS
846 CC_FOR_BUILD
847 inhibit_libc
848 SYSTEM_HEADER_DIR
849 ALL
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
874 AR
875 NM
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
888 LN
889 LN_S
890 AWK
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
918 CPP
919 OUTPUT_OPTION
920 NO_MINUS_C_MINUS_O
921 GNATMAKE
922 GNATBIND
923 ac_ct_CXX
924 CXXFLAGS
925 CXX
926 OBJEXT
927 EXEEXT
928 ac_ct_CC
929 CPPFLAGS
930 LDFLAGS
931 CFLAGS
932 CC
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
1045 '
1046 ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CPP
1058 CXXCPP
1059 GMPLIBS
1060 GMPINC
1061 PPLLIBS
1062 PPLINC
1063 CLOOGLIBS
1064 CLOOGINC'
1065
1066
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
1088
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'
1114
1115 ac_prev=
1116 ac_dashdash=
1117 for ac_option
1118 do
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
1124 fi
1125
1126 case $ac_option in
1127 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128 *) ac_optarg=yes ;;
1129 esac
1130
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1132
1133 case $ac_dashdash$ac_option in
1134 --)
1135 ac_dashdash=yes ;;
1136
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 ac_prev=bindir ;;
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1141
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1146
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 ;;
1153
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1156
1157 -datadir | --datadir | --datadi | --datad)
1158 ac_prev=datadir ;;
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1161
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 ;;
1168
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
1177 *"
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 ;;
1184
1185 -docdir | --docdir | --docdi | --doc | --do)
1186 ac_prev=docdir ;;
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1189
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191 ac_prev=dvidir ;;
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1194
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
1203 *"
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 ;;
1210
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 ;;
1219
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1222 with_gas=yes ;;
1223
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 ;;
1230
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1235
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 ;;
1241
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 ;;
1248
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 ac_prev=infodir ;;
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1253
1254 -libdir | --libdir | --libdi | --libd)
1255 ac_prev=libdir ;;
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1258
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 ;;
1265
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1270
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 ;;
1277
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 ac_prev=mandir ;;
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1282
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1285 with_fp=no ;;
1286
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1289 no_create=yes ;;
1290
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 ;;
1294
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 ;;
1303
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 ac_prev=prefix ;;
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1308
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 ;;
1315
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 ;;
1322
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 ;;
1339
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 ac_prev=pdfdir ;;
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1344
1345 -psdir | --psdir | --psdi | --psd | --ps)
1346 ac_prev=psdir ;;
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348 psdir=$ac_optarg ;;
1349
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1352 silent=yes ;;
1353
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 ;;
1359
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 ;;
1370
1371 -site | --site | --sit)
1372 ac_prev=site ;;
1373 -site=* | --site=* | --sit=*)
1374 site=$ac_optarg ;;
1375
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 ac_prev=srcdir ;;
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1380
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 ;;
1387
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 ;;
1392
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394 verbose=yes ;;
1395
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1398
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
1407 *"
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 ;;
1414
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
1423 *"
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 ;;
1430
1431 --x)
1432 # Obsolete; use --with-x.
1433 with_x=yes ;;
1434
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 ;;
1441
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 ;;
1448
1449 -*) as_fn_error "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1451 ;;
1452
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 ;;
1462
1463 *)
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}
1469 ;;
1470
1471 esac
1472 done
1473
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"
1477 fi
1478
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
1485 fi
1486
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
1492 do
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
1507
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
1514
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
1523 fi
1524 fi
1525
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1528
1529 test "$silent" = yes && exec 6>/dev/null
1530
1531
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"
1538
1539
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/
1552 q
1553 }
1554 /^X\(\/\/\)[^/].*/{
1555 s//\1/
1556 q
1557 }
1558 /^X\(\/\/\)$/{
1559 s//\1/
1560 q
1561 }
1562 /^X\(\/\).*/{
1563 s//\1/
1564 q
1565 }
1566 s/.*/./; q'`
1567 srcdir=$ac_confdir
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569 srcdir=..
1570 fi
1571 else
1572 ac_srcdir_defaulted=no
1573 fi
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"
1577 fi
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=.
1585 fi
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
1598
1599 #
1600 # Report the --help message.
1601 #
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.
1607
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1609
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.
1612
1613 Defaults for the options are specified in brackets.
1614
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 \`..']
1625
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]
1631
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'.
1636
1637 For better control, use the options below.
1638
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
1660
1661 cat <<\_ACEOF
1662
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
1667
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
1673 fi
1674
1675 if test -n "$ac_init_help"; then
1676
1677 cat <<\_ACEOF
1678
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
1747
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]
1783
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
1802
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.
1805
1806 Report bugs to the package provider.
1807 _ACEOF
1808 ac_status=$?
1809 fi
1810
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=.
1818
1819 case "$ac_dir" in
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1821 *)
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
1834
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
1850
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
1864 fi
1865
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
1871
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
1877 fi
1878
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1882
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 ()
1887 {
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
1903 fi
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
1913
1914 ac_retval=1
1915 fi
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1918
1919 } # ac_fn_c_try_compile
1920
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 ()
1925 {
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
1941 fi
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
1951
1952 ac_retval=1
1953 fi
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 return $ac_retval
1956
1957 } # ac_fn_cxx_try_compile
1958
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 ()
1963 {
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
1978 fi
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
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1993
1994 } # ac_fn_c_try_cpp
1995
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 ()
2002 {
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
2009 fi
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. */
2019 $4
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
2026 fi
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; }
2030
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
2042 fi
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; }
2046
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;}
2054 ;;
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;}
2066 ;;
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"
2074 fi
2075 eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 fi
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080
2081 } # ac_fn_c_check_header_mongrel
2082
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 ()
2088 {
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
2116
2117 ac_retval=$ac_status
2118 fi
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
2122
2123 } # ac_fn_c_try_run
2124
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 ()
2130 {
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. */
2139 $4
2140 #include <$2>
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 eval "$3=yes"
2144 else
2145 eval "$3=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
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;}
2153
2154 } # ac_fn_c_check_header_compile
2155
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 ()
2162 {
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. */
2168 $4
2169 int
2170 main ()
2171 {
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2173 test_array [0] = 0
2174
2175 ;
2176 return 0;
2177 }
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. */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0
2190
2191 ;
2192 return 0;
2193 }
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
2202 fi
2203 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2204 fi
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. */
2210 $4
2211 int
2212 main ()
2213 {
2214 static int test_array [1 - 2 * !(($2) < 0)];
2215 test_array [0] = 0
2216
2217 ;
2218 return 0;
2219 }
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. */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 test_array [0] = 0
2232
2233 ;
2234 return 0;
2235 }
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
2244 fi
2245 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 done
2249 else
2250 ac_lo= ac_hi=
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
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. */
2260 $4
2261 int
2262 main ()
2263 {
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 test_array [0] = 0
2266
2267 ;
2268 return 0;
2269 }
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
2275 fi
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. */
2285 $4
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2288 #include <stdio.h>
2289 #include <stdlib.h>
2290 int
2291 main ()
2292 {
2293
2294 FILE *f = fopen ("conftest.val", "w");
2295 if (! f)
2296 return 1;
2297 if (($2) < 0)
2298 {
2299 long int i = longval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%ld", i);
2303 }
2304 else
2305 {
2306 unsigned long int i = ulongval ();
2307 if (i != ($2))
2308 return 1;
2309 fprintf (f, "%lu", i);
2310 }
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2314
2315 ;
2316 return 0;
2317 }
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
2323 fi
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
2327
2328 fi
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330 return $ac_retval
2331
2332 } # ac_fn_c_compute_int
2333
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 ()
2339 {
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. */
2349 $4
2350 int
2351 main ()
2352 {
2353 if (sizeof ($2))
2354 return 0;
2355 ;
2356 return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof (($2)))
2367 return 0;
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373
2374 else
2375 eval "$3=yes"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
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;}
2385
2386 } # ac_fn_c_check_type
2387
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 ()
2392 {
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"
2407 fi
2408 rm -f conftest.err conftest.$ac_ext
2409 fi
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;}
2414
2415 } # ac_fn_c_check_header_preproc
2416
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 ()
2421 {
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
2437 fi
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
2450
2451 ac_retval=1
2452 fi
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
2460
2461 } # ac_fn_c_try_link
2462
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 ()
2467 {
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
2479
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. */
2484
2485 #ifdef __STDC__
2486 # include <limits.h>
2487 #else
2488 # include <assert.h>
2489 #endif
2490
2491 #undef $2
2492
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
2506
2507 int
2508 main ()
2509 {
2510 return $2 ();
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 if ac_fn_c_try_link "$LINENO"; then :
2516 eval "$3=yes"
2517 else
2518 eval "$3=no"
2519 fi
2520 rm -f core conftest.err conftest.$ac_objext \
2521 conftest$ac_exeext conftest.$ac_ext
2522 fi
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;}
2527
2528 } # ac_fn_c_check_func
2529
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 ()
2534 {
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
2549 fi
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
2559
2560 ac_retval=1
2561 fi
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 return $ac_retval
2564
2565 } # ac_fn_cxx_try_cpp
2566
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 ()
2571 {
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
2587 fi
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
2600
2601 ac_retval=1
2602 fi
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
2610
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.
2615
2616 It was created by $as_me, which was
2617 generated by GNU Autoconf 2.64. Invocation command line was
2618
2619 $ $0 $@
2620
2621 _ACEOF
2622 exec 5>>config.log
2623 {
2624 cat <<_ASUNAME
2625 ## --------- ##
2626 ## Platform. ##
2627 ## --------- ##
2628
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`
2634
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`
2637
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`
2645
2646 _ASUNAME
2647
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
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
2656
2657 } >&5
2658
2659 cat >&5 <<_ACEOF
2660
2661
2662 ## ----------- ##
2663 ## Core tests. ##
2664 ## ----------- ##
2665
2666 _ACEOF
2667
2668
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
2679 do
2680 for ac_arg
2681 do
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'" ;;
2692 2)
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
2705 ;;
2706 -* ) ac_must_keep_next=true ;;
2707 esac
2708 fi
2709 as_fn_append ac_configure_args " '$ac_arg'"
2710 ;;
2711 esac
2712 done
2713 done
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2716
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.
2724 {
2725 echo
2726
2727 cat <<\_ASBOX
2728 ## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##
2731 _ASBOX
2732 echo
2733 # The following way of writing the cache mishandles newlines in values,
2734 (
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 ;; #(
2757 *)
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2759 ;;
2760 esac |
2761 sort
2762 )
2763 echo
2764
2765 cat <<\_ASBOX
2766 ## ----------------- ##
2767 ## Output variables. ##
2768 ## ----------------- ##
2769 _ASBOX
2770 echo
2771 for ac_var in $ac_subst_vars
2772 do
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
2780
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
2789 do
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
2797 fi
2798
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
2808 fi
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
2816 ' 0
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
2821
2822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2823 rm -f -r conftest* confdefs.h
2824
2825 $as_echo "/* confdefs.h */" > confdefs.h
2826
2827 # Predefined preprocessor variables.
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 _ACEOF
2832
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 _ACEOF
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 _ACEOF
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 _ACEOF
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 _ACEOF
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_URL "$PACKAGE_URL"
2851 _ACEOF
2852
2853
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
2866 fi
2867 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2868 do
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"
2875 fi
2876 done
2877
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
2888 fi
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
2893 fi
2894
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 ,);;
2913 *)
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
2926 fi
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
2943 fi
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
2951 fi
2952 ## -------------------- ##
2953 ## Main body of script. ##
2954 ## -------------------- ##
2955
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
2961
2962
2963
2964
2965
2966
2967 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968
2969
2970 gcc_version=`cat $srcdir/BASE-VER`
2971
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
2980 fi
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
2985 fi
2986
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.
2994
2995
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
2999
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
3012
3013 fi
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
3032
3033
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
3044 fi
3045
3046 fi
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
3065
3066
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
3077 fi
3078
3079 fi
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
3098
3099
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}-
3106
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
3112
3113 case ${host_alias} in
3114 "") host_noncanonical=${build_noncanonical} ;;
3115 *) host_noncanonical=${host_alias} ;;
3116 esac
3117
3118 case ${target_alias} in
3119 "") target_noncanonical=${host_noncanonical} ;;
3120 *) target_noncanonical=${target_alias} ;;
3121 esac
3122
3123
3124
3125
3126 # Determine the target- and build-specific subdirectories
3127
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.
3136
3137 # Prefix 'build-' so this never conflicts with target_subdir.
3138 build_subdir="build-${build_noncanonical}"
3139
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"
3145 fi
3146
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=.
3153 fi
3154 # No prefix.
3155 target_subdir=${target_noncanonical}
3156
3157
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"`
3168
3169
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"
3183 ;;
3184 *)
3185 library_path_setting="ok"
3186 ;;
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
3195 fi
3196
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"
3209 ;;
3210 *)
3211 gcc_exec_prefix_setting="ok"
3212 ;;
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
3221 fi
3222
3223 # -----------
3224 # Directories
3225 # -----------
3226
3227 # Specify the local prefix
3228 local_prefix=
3229
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
3237 fi
3238
3239
3240 # Default local prefix if it is empty
3241 if test x$local_prefix = x; then
3242 local_prefix=/usr/local
3243 fi
3244
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
3250
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
3258 fi
3259
3260
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"
3269 fi
3270 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3271 fi
3272 fi
3273
3274
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
3281 fi
3282 fi
3283
3284
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.
3290
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
3298 fi
3299
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3302 $as_echo "$generated_files_in_srcdir" >&6; }
3303
3304 if test "$generated_files_in_srcdir" = "yes"; then
3305 GENINSRC=''
3306 else
3307 GENINSRC='#'
3308 fi
3309
3310
3311 # -------------------
3312 # Find default linker
3313 # -------------------
3314
3315 # With GNU ld
3316
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
3322 fi
3323
3324
3325 # With pre-defined ld
3326
3327 # Check whether --with-ld was given.
3328 if test "${with_ld+set}" = set; then :
3329 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3330 fi
3331
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
3337 fi
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3341 _ACEOF
3342
3343 fi
3344
3345 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3346
3347 cat >>confdefs.h <<_ACEOF
3348 #define HAVE_GNU_LD $gnu_ld
3349 _ACEOF
3350
3351
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; }
3361 fi
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367 # With demangler in GNU ld
3368
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
3374 fi
3375
3376
3377 # ----------------------
3378 # Find default assembler
3379 # ----------------------
3380
3381 # With GNU as
3382
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
3388 fi
3389
3390
3391
3392 # Check whether --with-as was given.
3393 if test "${with_as+set}" = set; then :
3394 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3395 fi
3396
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
3402 fi
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3406 _ACEOF
3407
3408 fi
3409
3410 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3411
3412 cat >>confdefs.h <<_ACEOF
3413 #define HAVE_GNU_AS $gnu_as
3414 _ACEOF
3415
3416
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; }
3426 fi
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432 # ---------------
3433 # Find C compiler
3434 # ---------------
3435
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.
3440 #
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
3444
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
3464 do
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
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
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; }
3486 fi
3487
3488
3489 fi
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
3504 do
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
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
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; }
3526 fi
3527
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
3538 fi
3539 else
3540 CC="$ac_cv_prog_CC"
3541 fi
3542
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
3557 do
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
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
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; }
3579 fi
3580
3581
3582 fi
3583 fi
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
3598 do
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
3606 fi
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
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
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+' '}$@"
3625 fi
3626 fi
3627 fi
3628 fi
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; }
3636 fi
3637
3638
3639 fi
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in cl.exe
3643 do
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
3656 do
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
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
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; }
3678 fi
3679
3680
3681 test -n "$CC" && break
3682 done
3683 fi
3684 if test -z "$CC"; then
3685 ac_ct_CC=$CC
3686 for ac_prog in cl.exe
3687 do
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
3700 do
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
3708 fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
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; }
3722 fi
3723
3724
3725 test -n "$ac_ct_CC" && break
3726 done
3727
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
3738 fi
3739 fi
3740
3741 fi
3742
3743
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; }
3748
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
3769 fi
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3772 done
3773
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780
3781 ;
3782 return 0;
3783 }
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[^ ]*//'`
3793
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3796
3797 ac_rmfiles=
3798 for ac_file in $ac_files
3799 do
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
3806
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 ''
3824 do
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 )
3828 ;;
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" : '[^.]*\(\..*\)'`
3837 fi
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;;
3844 * )
3845 break;;
3846 esac
3847 done
3848 test "$ac_cv_exeext" = no && ac_cv_exeext=
3849
3850 else
3851 ac_file=''
3852 fi
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
3858
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; }; }
3864 fi
3865 ac_exeext=$ac_cv_exeext
3866
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; }
3894 fi
3895 fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3898 $as_echo "yes" >&6; }
3899
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; }
3908
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; }
3940 fi
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; }
3944
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. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
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
3987
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; }
3992 fi
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994 fi
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. */
4006
4007 int
4008 main ()
4009 {
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026 fi
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=
4033 fi
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. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
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. */
4062
4063 int
4064 main ()
4065 {
4066
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4072
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. */
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_g=yes
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4096 fi
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"
4106 fi
4107 else
4108 if test "$GCC" = yes; then
4109 CFLAGS="-O2"
4110 else
4111 CFLAGS=
4112 fi
4113 fi
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;
4133 {
4134 return p[i];
4135 }
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4137 {
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;
4144 }
4145
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];
4154
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];
4159
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;
4166 int
4167 main ()
4168 {
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 do
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4180 fi
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
4186
4187 fi
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c89" in
4190 x)
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; } ;;
4196 *)
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 :
4202
4203 fi
4204
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
4210
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; }
4217 fi
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. */
4225
4226 int
4227 main ()
4228 {
4229
4230 ;
4231 return 0;
4232 }
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.
4298 :
4299 else
4300 # cc exists but doesn't like -o.
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4302 fi
4303 fi
4304 fi
4305 else
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4307 fi
4308 rm -f core conftest*
4309
4310 fi
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; }
4317
4318 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4319
4320 fi
4321
4322 # expand $ac_aux_dir to an absolute path
4323 am_aux_dir=`cd $ac_aux_dir && pwd`
4324
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"
4337 fi
4338
4339
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
4351 do
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
4364 do
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
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
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; }
4386 fi
4387
4388
4389 test -n "$CXX" && break
4390 done
4391 fi
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
4395 do
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
4408 do
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
4416 fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi
4422 fi
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; }
4430 fi
4431
4432
4433 test -n "$ac_ct_CXX" && break
4434 done
4435
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
4446 fi
4447 fi
4448
4449 fi
4450 fi
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
4471 fi
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4474 done
4475
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. */
4483
4484 int
4485 main ()
4486 {
4487 #ifndef __GNUC__
4488 choke me
4489 #endif
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496 ac_compiler_gnu=yes
4497 else
4498 ac_compiler_gnu=no
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502
4503 fi
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=
4510 fi
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. */
4524
4525 int
4526 main ()
4527 {
4528
4529 ;
4530 return 0;
4531 }
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. */
4539
4540 int
4541 main ()
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4549
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. */
4555
4556 int
4557 main ()
4558 {
4559
4560 ;
4561 return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4573 fi
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"
4583 fi
4584 else
4585 if test "$GXX" = yes; then
4586 CXXFLAGS="-O2"
4587 else
4588 CXXFLAGS=
4589 fi
4590 fi
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
4596
4597
4598
4599
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
4613 do
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
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 fi
4627 fi
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; }
4635 fi
4636
4637
4638 fi
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
4653 do
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
4661 fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
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; }
4675 fi
4676
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
4687 fi
4688 else
4689 GNATBIND="$ac_cv_prog_GNATBIND"
4690 fi
4691
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
4705 do
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
4713 fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
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; }
4727 fi
4728
4729
4730 fi
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
4745 do
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
4753 fi
4754 done
4755 done
4756 IFS=$as_save_IFS
4757
4758 fi
4759 fi
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; }
4767 fi
4768
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
4779 fi
4780 else
4781 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 fi
4783
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;
4791 EOF
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
4804 fi
4805 rm -f conftest.*
4806 fi
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; }
4809
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
4814 fi
4815
4816
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 $@'
4822 fi
4823
4824
4825
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
4832
4833
4834 # -------------------------
4835 # Check C compiler features
4836 # -------------------------
4837
4838
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=
4849 fi
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"
4856 do
4857 ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4859 do
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 :
4876
4877 else
4878 # Broken: fails on valid input.
4879 continue
4880 fi
4881 rm -f conftest.err conftest.$ac_ext
4882
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
4896 fi
4897 rm -f conftest.err conftest.$ac_ext
4898
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
4904 fi
4905
4906 done
4907 ac_cv_prog_CPP=$CPP
4908
4909 fi
4910 CPP=$ac_cv_prog_CPP
4911 else
4912 ac_cv_prog_CPP=$CPP
4913 fi
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
4918 do
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 :
4935
4936 else
4937 # Broken: fails on valid input.
4938 continue
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
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
4955 fi
4956 rm -f conftest.err conftest.$ac_ext
4957
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 :
4962
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; }
4968 fi
4969
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
4975
4976
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
4987 do
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=:;;
4999 *)
5000 ac_count=0
5001 $as_echo_n 0123456789 >"conftest.in"
5002 while :
5003 do
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
5015 fi
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
5021
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
5029 fi
5030 else
5031 ac_cv_path_GREP=$GREP
5032 fi
5033
5034 fi
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"
5038
5039
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
5053 do
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=:;;
5065 *)
5066 ac_count=0
5067 $as_echo_n 0123456789 >"conftest.in"
5068 while :
5069 do
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
5081 fi
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
5087
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
5095 fi
5096 else
5097 ac_cv_path_EGREP=$EGREP
5098 fi
5099
5100 fi
5101 fi
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"
5105
5106
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>
5118
5119 int
5120 main ()
5121 {
5122
5123 ;
5124 return 0;
5125 }
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
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133
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>
5139
5140 _ACEOF
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142 $EGREP "memchr" >/dev/null 2>&1; then :
5143
5144 else
5145 ac_cv_header_stdc=no
5146 fi
5147 rm -f conftest*
5148
5149 fi
5150
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>
5156
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "free" >/dev/null 2>&1; then :
5160
5161 else
5162 ac_cv_header_stdc=no
5163 fi
5164 rm -f conftest*
5165
5166 fi
5167
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 :
5171 :
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
5187
5188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189 int
5190 main ()
5191 {
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;
5198 }
5199 _ACEOF
5200 if ac_fn_c_try_run "$LINENO"; then :
5201
5202 else
5203 ac_cv_header_stdc=no
5204 fi
5205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206 conftest.$ac_objext conftest.beam conftest.$ac_ext
5207 fi
5208
5209 fi
5210 fi
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
5214
5215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5216
5217 fi
5218
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
5225 "
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
5231
5232 fi
5233
5234 done
5235
5236
5237
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=
5243 fi
5244
5245
5246 if test "$MINIX" = yes; then
5247
5248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249
5250
5251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252
5253
5254 $as_echo "#define _MINIX 1" >>confdefs.h
5255
5256 fi
5257
5258
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. */
5266
5267 # define __EXTENSIONS__ 1
5268 $ac_includes_default
5269 int
5270 main ()
5271 {
5272
5273 ;
5274 return 0;
5275 }
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
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 fi
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
5288
5289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5290
5291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5292
5293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5294
5295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5296
5297
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=
5308 fi
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"
5315 do
5316 ac_preproc_ok=false
5317 for ac_c_preproc_warn_flag in '' yes
5318 do
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 :
5335
5336 else
5337 # Broken: fails on valid input.
5338 continue
5339 fi
5340 rm -f conftest.err conftest.$ac_ext
5341
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
5355 fi
5356 rm -f conftest.err conftest.$ac_ext
5357
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
5363 fi
5364
5365 done
5366 ac_cv_prog_CPP=$CPP
5367
5368 fi
5369 CPP=$ac_cv_prog_CPP
5370 else
5371 ac_cv_prog_CPP=$CPP
5372 fi
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
5377 do
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 :
5394
5395 else
5396 # Broken: fails on valid input.
5397 continue
5398 fi
5399 rm -f conftest.err conftest.$ac_ext
5400
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
5414 fi
5415 rm -f conftest.err conftest.$ac_ext
5416
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 :
5421
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; }
5427 fi
5428
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
5434
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
5449
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_c_inline=$ac_kw
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 test "$ac_cv_c_inline" != no && break
5456 done
5457
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5460 $as_echo "$ac_cv_c_inline" >&6; }
5461
5462 case $ac_cv_c_inline in
5463 inline | yes) ;;
5464 *)
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
5474 ;;
5475 esac
5476
5477
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 :
5489
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
5499 fi
5500 fi
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5504 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5505
5506
5507
5508 cat >>confdefs.h <<_ACEOF
5509 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5510 _ACEOF
5511
5512
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 :
5523
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
5533 fi
5534 fi
5535
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5538 $as_echo "$ac_cv_sizeof_short" >&6; }
5539
5540
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define SIZEOF_SHORT $ac_cv_sizeof_short
5544 _ACEOF
5545
5546
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 :
5557
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
5567 fi
5568 fi
5569
5570 fi
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5572 $as_echo "$ac_cv_sizeof_int" >&6; }
5573
5574
5575
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_INT $ac_cv_sizeof_int
5578 _ACEOF
5579
5580
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 :
5591
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
5601 fi
5602 fi
5603
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5606 $as_echo "$ac_cv_sizeof_long" >&6; }
5607
5608
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_LONG $ac_cv_sizeof_long
5612 _ACEOF
5613
5614
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 :
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_LONG_LONG 1
5620 _ACEOF
5621
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 :
5632
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
5642 fi
5643 fi
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5648
5649
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5653 _ACEOF
5654
5655
5656 fi
5657
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 :
5660
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE___INT64 1
5663 _ACEOF
5664
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 :
5675
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
5685 fi
5686 fi
5687
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5690 $as_echo "$ac_cv_sizeof___int64" >&6; }
5691
5692
5693
5694 cat >>confdefs.h <<_ACEOF
5695 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5696 _ACEOF
5697
5698
5699 fi
5700
5701
5702 # ---------------------
5703 # Warnings and checking
5704 # ---------------------
5705
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.
5712
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`
5717
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. */
5726
5727 int
5728 main ()
5729 {
5730
5731 ;
5732 return 0;
5733 }
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"
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741
5742 fi
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"
5748 fi
5749 done
5750 CFLAGS="$save_CFLAGS"
5751
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`
5756
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. */
5765
5766 int
5767 main ()
5768 {
5769
5770 ;
5771 return 0;
5772 }
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"
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780
5781 fi
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"
5787 fi
5788 done
5789 CFLAGS="$save_CFLAGS"
5790
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`
5795
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. */
5804
5805 int
5806 main ()
5807 {
5808
5809 ;
5810 return 0;
5811 }
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"
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819
5820 fi
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"
5826 fi
5827 done
5828 CFLAGS="$save_CFLAGS"
5829
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`
5834
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. */
5843
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
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"
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858
5859 fi
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"
5865 fi
5866 done
5867 CFLAGS="$save_CFLAGS"
5868
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. */
5879
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
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
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 CFLAGS="$save_CFLAGS"
5895 fi
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"
5900 fi
5901
5902 fi
5903
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
5909 fi
5910
5911 if test $enable_werror_always = yes; then :
5912 strict_warn="$strict_warn${strict_warn:+ }-Werror"
5913 fi
5914
5915
5916
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)'
5925 fi
5926
5927
5928
5929 # Enable expensive internal checks
5930 is_release=
5931 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
5932 is_release=yes
5933 fi
5934
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
5939
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
5945 fi
5946 fi
5947
5948 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
5949 for check in release $ac_checking_flags
5950 do
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"
5995
5996 nocommon_flag=""
5997 if test x$ac_checking != x ; then
5998
5999 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6000
6001 nocommon_flag=-fno-common
6002 fi
6003
6004 if test x$ac_df_checking != x ; then
6005
6006 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6007
6008 fi
6009 if test x$ac_assert_checking != x ; then
6010
6011 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6012
6013 fi
6014 if test x$ac_gimple_checking != x ; then
6015
6016 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6017
6018 fi
6019
6020 if test x$ac_runtime_checking != x ; then
6021
6022 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6023
6024 fi
6025 if test x$ac_tree_checking != x ; then
6026
6027 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6028
6029 TREEBROWSER=tree-browser.o
6030 fi
6031 if test x$ac_types_checking != x ; then
6032
6033 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6034
6035 fi
6036
6037 if test x$ac_rtl_checking != x ; then
6038
6039 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6040
6041 fi
6042 if test x$ac_rtlflag_checking != x ; then
6043
6044 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6045
6046 fi
6047 if test x$ac_gc_checking != x ; then
6048
6049 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6050
6051 fi
6052 if test x$ac_gc_always_collect != x ; then
6053
6054 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6055
6056 fi
6057 if test x$ac_fold_checking != x ; then
6058
6059 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6060
6061 fi
6062 valgrind_path_defines=
6063 valgrind_command=
6064
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
6070 fi
6071
6072
6073
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
6090 fi
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
6107 fi
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; }
6111
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=:
6122 fi
6123 rm -f conf$$.sh
6124 fi
6125
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"
6137 fi
6138 rm -f conf$$.file
6139
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.
6150 ;;
6151 *)
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
6161 fi
6162 fi
6163 done
6164 done
6165 IFS="$ac_save_IFS"
6166 ;;
6167 esac
6168 fi
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; }
6176 fi
6177
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
6183 fi
6184 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6185 valgrind_command="$valgrind_path -q"
6186
6187 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6188
6189 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6190
6191 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6192
6193 fi
6194 if test $gcc_cv_header_memcheck_h = yes; then
6195
6196 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6197
6198 fi
6199 fi
6200
6201
6202
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"
6209 ;;
6210 opt)
6211 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6212 ;;
6213 no)
6214 # a.k.a. --disable-coverage
6215 coverage_flags=""
6216 ;;
6217 *)
6218 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6219 ;;
6220 esac
6221 else
6222 coverage_flags=""
6223 fi
6224
6225
6226
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
6232 fi
6233
6234 if test x$enable_gather_detailed_mem_stats = xyes ; then
6235
6236 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6237
6238 fi
6239
6240 # -------------------------------
6241 # Miscenalleous configure options
6242 # -------------------------------
6243
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
6250 fi
6251
6252
6253
6254 # With stabs
6255
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
6261 fi
6262
6263
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
6270 fi
6271
6272
6273
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;
6278 fi
6279
6280
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
6290
6291 else
6292
6293 case $target in
6294 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6295 enable_decimal_float=yes
6296 ;;
6297 *)
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
6301 ;;
6302 esac
6303
6304 fi
6305
6306
6307 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6308
6309 cat >>confdefs.h <<_ACEOF
6310 #define ENABLE_DECIMAL_FLOAT $dfp
6311 _ACEOF
6312
6313
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
6320 ;;
6321 *)
6322 enable_decimal_float=dpd
6323 ;;
6324 esac
6325 ;;
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
6330 ;;
6331 esac
6332
6333
6334 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6335
6336 cat >>confdefs.h <<_ACEOF
6337 #define ENABLE_DECIMAL_BID_FORMAT $bid
6338 _ACEOF
6339
6340
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;
6345
6346 else
6347
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
6355 ;;
6356 *)
6357 enable_fixed_point=yes
6358 ;;
6359 esac
6360 ;;
6361 *)
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
6365 ;;
6366 esac
6367
6368 fi
6369
6370
6371
6372 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6373
6374 cat >>confdefs.h <<_ACEOF
6375 #define ENABLE_FIXED_POINT $fixedpoint
6376 _ACEOF
6377
6378
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=''
6387 fi
6388
6389
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
6398
6399 else
6400 enable_tls=''
6401 fi
6402
6403
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
6410 fi
6411 else
6412 objc_boehm_gc=''
6413 fi
6414
6415
6416
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
6422 fi
6423
6424
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) ;;
6430 *)
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
6436 fi
6437 done
6438 IFS="$ac_save_ifs"
6439 ;;
6440 esac
6441
6442 else
6443 enable_shared=yes
6444 fi
6445
6446
6447
6448
6449 # Check whether --with-build-sysroot was given.
6450 if test "${with_build_sysroot+set}" = set; then :
6451 withval=$with_build_sysroot;
6452 fi
6453
6454
6455
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
6463
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)'
6466
6467 if test "x$prefix" = xNONE; then
6468 test_prefix=/usr/local
6469 else
6470 test_prefix=$prefix
6471 fi
6472 if test "x$exec_prefix" = xNONE; then
6473 test_exec_prefix=$test_prefix
6474 else
6475 test_exec_prefix=$exec_prefix
6476 fi
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"
6484 ;;
6485 esac
6486
6487 else
6488
6489 TARGET_SYSTEM_ROOT=
6490 TARGET_SYSTEM_ROOT_DEFINE=
6491 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6492
6493 fi
6494
6495
6496
6497
6498
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=""
6508 fi
6509
6510
6511
6512
6513
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) "
6523
6524 fi
6525
6526
6527
6528
6529
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=
6535 ;;
6536 *) BUGURL="$withval"
6537 ;;
6538 esac
6539 else
6540 BUGURL="http://gcc.gnu.org/bugs.html"
6541
6542 fi
6543
6544 case ${BUGURL} in
6545 "")
6546 REPORT_BUGS_TO=
6547 REPORT_BUGS_TEXI=
6548 ;;
6549 *)
6550 REPORT_BUGS_TO="<$BUGURL>"
6551 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6552 ;;
6553 esac;
6554
6555
6556
6557
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
6568 ;;
6569 *,all,*)
6570 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6571 ;;
6572 *,c,*)
6573 ;;
6574 *)
6575 enable_languages=c,${enable_languages}
6576 ;;
6577 esac
6578 else
6579 enable_languages=c
6580 fi
6581
6582
6583
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
6589 fi
6590
6591
6592 # -------------------------
6593 # Checks for other programs
6594 # -------------------------
6595
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;;
6612 *)
6613 eval ac_cv_prog_make_${ac_make}_set=no;;
6614 esac
6615 rm -f conftest.make
6616 fi
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}"
6625 fi
6626
6627
6628 # Find some useful tools
6629 for ac_prog in gawk mawk nawk awk
6630 do
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
6643 do
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
6651 fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
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; }
6665 fi
6666
6667
6668 test -n "$AWK" && break
6669 done
6670
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
6676
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
6697 fi
6698 fi
6699 fi
6700 rm -f conftestdata_f conftestdata_t
6701
6702 fi
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; }
6714 fi
6715 fi
6716
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
6729 fi
6730 rm -f conftestdata_f conftestdata_t
6731
6732 fi
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; }
6741 fi
6742
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
6756 do
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
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
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; }
6778 fi
6779
6780
6781 fi
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
6796 do
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
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi
6810 fi
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; }
6818 fi
6819
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
6830 fi
6831 else
6832 RANLIB="$ac_cv_prog_RANLIB"
6833 fi
6834
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"
6842 ;;
6843 *)
6844 ranlib_flags=""
6845 esac
6846
6847
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/*) ;;
6869 *)
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.
6877 :
6878 else
6879 ac_cv_path_install="$ac_dir/$ac_prog -c"
6880 break 2
6881 fi
6882 fi
6883 done
6884 ;;
6885 esac
6886 done
6887 IFS="$ac_save_IFS"
6888
6889 fi
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"
6898 fi
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6901 $as_echo "$INSTALL" >&6; }
6902
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}'
6906
6907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6908
6909
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
6921 :
6922 else
6923 gcc_cv_prog_cmp_skip=gnucompare
6924 fi
6925 fi
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
6929 :
6930 else
6931 gcc_cv_prog_cmp_skip=fastcompare
6932 fi
6933 fi
6934 fi
6935 rm t1 t2
6936
6937 fi
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
6941
6942
6943
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
6957 do
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
6965 fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
6971 fi
6972 fi
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; }
6980 fi
6981
6982
6983
6984 # See if makeinfo has been installed and is modern enough
6985 # that we can use it.
6986
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
6999 do
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
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
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; }
7021 fi
7022
7023
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'`
7033
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
7039
7040 fi
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
7045 fi
7046 if test $gcc_cv_prog_makeinfo_modern = no; then
7047 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7048 fi
7049
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
7060 fi
7061
7062
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=
7074 fi
7075
7076
7077 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7078
7079 # How about lex?
7080 for ac_prog in flex
7081 do
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
7094 do
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
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
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; }
7116 fi
7117
7118
7119 test -n "$FLEX" && break
7120 done
7121 test -n "$FLEX" || FLEX="$MISSING flex"
7122
7123
7124 # Bison?
7125 for ac_prog in bison
7126 do
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
7139 do
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
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
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; }
7161 fi
7162
7163
7164 test -n "$BISON" && break
7165 done
7166 test -n "$BISON" || BISON="$MISSING bison"
7167
7168
7169 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7170 # check for build == host before using them.
7171
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
7189 do
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
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7203 fi
7204 fi
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; }
7212 fi
7213
7214
7215 fi
7216
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
7234 do
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
7242 fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7248 fi
7249 fi
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; }
7257 fi
7258
7259
7260 fi
7261
7262
7263 # --------------------
7264 # Checks for C headers
7265 # --------------------
7266
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.
7269
7270 ac_c_preproc_warn_flag=yes
7271
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>
7283
7284 int
7285 main ()
7286 {
7287
7288 ;
7289 return 0;
7290 }
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
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298
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>
7304
7305 _ACEOF
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "memchr" >/dev/null 2>&1; then :
7308
7309 else
7310 ac_cv_header_stdc=no
7311 fi
7312 rm -f conftest*
7313
7314 fi
7315
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>
7321
7322 _ACEOF
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "free" >/dev/null 2>&1; then :
7325
7326 else
7327 ac_cv_header_stdc=no
7328 fi
7329 rm -f conftest*
7330
7331 fi
7332
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 :
7336 :
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
7352
7353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7354 int
7355 main ()
7356 {
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;
7363 }
7364 _ACEOF
7365 if ac_fn_c_try_run "$LINENO"; then :
7366
7367 else
7368 ac_cv_header_stdc=no
7369 fi
7370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7371 conftest.$ac_objext conftest.beam conftest.$ac_ext
7372 fi
7373
7374 fi
7375 fi
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
7379
7380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7381
7382 fi
7383
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>
7394
7395 int
7396 main ()
7397 {
7398 if ((struct tm *) 0)
7399 return 0;
7400 ;
7401 return 0;
7402 }
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
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
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
7414
7415 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7416
7417 fi
7418
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>
7428 int
7429 main ()
7430 {
7431
7432 ;
7433 return 0;
7434 }
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
7440 fi
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
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
7446
7447 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7448
7449 fi
7450
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
7466
7467 int
7468 main ()
7469 {
7470 int s;
7471 wait (&s);
7472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7473 ;
7474 return 0;
7475 }
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
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
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
7487
7488 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7489
7490 fi
7491
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
7504
7505 fi
7506 done
7507
7508
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=
7515 fi
7516
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=
7522 fi
7523
7524
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
7545 fi
7546 rm -f conftest*
7547
7548
7549 fi
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
7558 i=8
7559 gcc_cv_c_nbby=
7560 while test $i -lt 65; do
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563
7564 int
7565 main ()
7566 {
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)):
7570 ; }
7571 ;
7572 return 0;
7573 }
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 gcc_cv_c_nbby=$i; break
7577 fi
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
7582
7583 fi
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
7589
7590 cat >>confdefs.h <<_ACEOF
7591 #define CHAR_BIT $gcc_cv_c_nbby
7592 _ACEOF
7593
7594 fi
7595 fi
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;
7609
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7612
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
7626 fi
7627 ;;
7628 esac
7629 ac_prev=
7630 elif test "x$ac_word" = "x-arch"; then
7631 ac_prev=arch
7632 fi
7633 done
7634 fi
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>
7642
7643 int
7644 main ()
7645 {
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
7651
7652 ;
7653 return 0;
7654 }
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>
7662
7663 int
7664 main ()
7665 {
7666 #if BYTE_ORDER != BIG_ENDIAN
7667 not big endian
7668 #endif
7669
7670 ;
7671 return 0;
7672 }
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
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 fi
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
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>
7688
7689 int
7690 main ()
7691 {
7692 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7693 bogus endian macros
7694 #endif
7695
7696 ;
7697 return 0;
7698 }
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>
7705
7706 int
7707 main ()
7708 {
7709 #ifndef _BIG_ENDIAN
7710 not big endian
7711 #endif
7712
7713 ;
7714 return 0;
7715 }
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
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 fi
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];
7738 }
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];
7745 }
7746 extern int foo;
7747
7748 int
7749 main ()
7750 {
7751 return use_ascii (foo) == use_ebcdic (foo);
7752 ;
7753 return 0;
7754 }
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
7759 fi
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
7766 fi
7767 fi
7768 fi
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
7774 int
7775 main ()
7776 {
7777
7778 /* Are we little or big endian? From Harbison&Steele. */
7779 union
7780 {
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;
7786
7787 ;
7788 return 0;
7789 }
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
7795 fi
7796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7797 conftest.$ac_objext conftest.beam conftest.$ac_ext
7798 fi
7799
7800 fi
7801 fi
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 ;; #(
7808 no)
7809 ;; #(
7810 universal)
7811
7812 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7813
7814 ;; #(
7815 *)
7816 as_fn_error "unknown endianness
7817 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7818 esac
7819
7820
7821 # --------
7822 # UNSORTED
7823 # --------
7824
7825
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'
7837 do
7838 LIBS="$libs"
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841
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 ();
7849 int
7850 main ()
7851 {
7852 return ldopen ();
7853 ;
7854 return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 gcc_cv_collect2_libs="$libs"; break
7859 fi
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'
7865 fi
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
7872
7873
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. */
7886
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 ();
7894 int
7895 main ()
7896 {
7897 return exc_resume ();
7898 ;
7899 return 0;
7900 }
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"
7908 fi
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 ac_cv_search_exc_resume=$ac_res
7911 fi
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
7916 fi
7917 done
7918 if test "${ac_cv_search_exc_resume+set}" = set; then :
7919
7920 else
7921 ac_cv_search_exc_resume=no
7922 fi
7923 rm conftest.$ac_ext
7924 LIBS=$ac_func_search_save_LIBS
7925 fi
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"
7931
7932 fi
7933
7934 GNAT_LIBEXC="$LIBS"
7935 LIBS="$save_LIBS"
7936
7937
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. */
7950
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 ();
7958 int
7959 main ()
7960 {
7961 return ldexp ();
7962 ;
7963 return 0;
7964 }
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"
7972 fi
7973 if ac_fn_c_try_link "$LINENO"; then :
7974 ac_cv_search_ldexp=$ac_res
7975 fi
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
7980 fi
7981 done
7982 if test "${ac_cv_search_ldexp+set}" = set; then :
7983
7984 else
7985 ac_cv_search_ldexp=no
7986 fi
7987 rm conftest.$ac_ext
7988 LIBS=$ac_func_search_save_LIBS
7989 fi
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"
7995
7996 fi
7997
7998 LDEXP_LIB="$LIBS"
7999 LIBS="$save_LIBS"
8000
8001
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>
8013 int
8014 main ()
8015 {
8016 intmax_t i = -1;
8017 ;
8018 return 0;
8019 }
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
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028
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
8032
8033 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8034
8035 fi
8036
8037
8038
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
8051
8052 fi
8053 done
8054
8055
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()
8069 {
8070 mbstowcs(0, "", 0);
8071 return 0;
8072 }
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
8078 fi
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8080 conftest.$ac_objext conftest.beam conftest.$ac_ext
8081 fi
8082
8083 fi
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
8087
8088 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8089
8090 fi
8091 fi
8092
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 :
8095
8096 else
8097
8098 cat >>confdefs.h <<_ACEOF
8099 #define ssize_t int
8100 _ACEOF
8101
8102 fi
8103
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 :
8106
8107 else
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define caddr_t char *
8111 _ACEOF
8112
8113 fi
8114
8115
8116
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
8122 fi
8123
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
8129 fi
8130
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 ;;
8150 *)
8151 gcc_cv_func_mmap_file=yes;;
8152 esac
8153 fi
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 ;;
8174 *)
8175 gcc_cv_func_mmap_dev_zero=yes;;
8176 esac
8177 fi
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; }
8180
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>
8192
8193 #ifndef MAP_ANONYMOUS
8194 #define MAP_ANONYMOUS MAP_ANON
8195 #endif
8196
8197 int
8198 main ()
8199 {
8200 int n = MAP_ANONYMOUS;
8201 ;
8202 return 0;
8203 }
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
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8213 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8214
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 ;;
8231 *)
8232 gcc_cv_func_mmap_anon=yes;;
8233 esac
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8236 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8237 fi
8238 fi
8239
8240 if test $gcc_cv_func_mmap_file = yes; then
8241
8242 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8243
8244 fi
8245 if test $gcc_cv_func_mmap_dev_zero = yes; then
8246
8247 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8248
8249 fi
8250 if test $gcc_cv_func_mmap_anon = yes; then
8251
8252 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8253
8254 fi
8255
8256
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
8263 ;;
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 :
8267
8268 else
8269
8270 cat >>confdefs.h <<_ACEOF
8271 #define pid_t int
8272 _ACEOF
8273
8274 fi
8275
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
8283
8284 fi
8285 done
8286
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
8296
8297 fi
8298 done
8299
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
8312 int
8313 main ()
8314 {
8315
8316 /* By Ruediger Kuhlmann. */
8317 return fork () < 0;
8318
8319 ;
8320 return 0;
8321 }
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
8327 fi
8328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8329 conftest.$ac_objext conftest.beam conftest.$ac_ext
8330 fi
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8334 $as_echo "$ac_cv_func_fork_works" >&6; }
8335
8336 else
8337 ac_cv_func_fork_works=$ac_cv_func_fork
8338 fi
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
8344 ;;
8345 *)
8346 ac_cv_func_fork_works=yes
8347 ;;
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;}
8351 fi
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
8382 {
8383 static pid_t child;
8384 if (!child) {
8385 child = vfork ();
8386 if (child < 0) {
8387 perror ("vfork");
8388 _exit(2);
8389 }
8390 if (!child) {
8391 arg = getpid();
8392 write(-1, "", 0);
8393 _exit (arg);
8394 }
8395 }
8396 }
8397
8398 int
8399 main ()
8400 {
8401 pid_t parent = getpid ();
8402 pid_t child;
8403
8404 sparc_address_test (0);
8405
8406 child = vfork ();
8407
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);
8426
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;
8435
8436 while (wait(&status) != child)
8437 ;
8438 return (
8439 /* Was there some problem with vforking? */
8440 child < 0
8441
8442 /* Did the child fail? (This shouldn't happen.) */
8443 || status
8444
8445 /* Did the vfork/compiler bug occur? */
8446 || parent != getpid()
8447
8448 /* Did the file descriptor bug occur? */
8449 || fstat(fileno(stdout), &st) != 0
8450 );
8451 }
8452 }
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
8458 fi
8459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8460 conftest.$ac_objext conftest.beam conftest.$ac_ext
8461 fi
8462
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8465 $as_echo "$ac_cv_func_vfork_works" >&6; }
8466
8467 fi;
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;}
8472 fi
8473
8474 if test "x$ac_cv_func_vfork_works" = xyes; then
8475
8476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8477
8478 else
8479
8480 $as_echo "#define vfork fork" >>confdefs.h
8481
8482 fi
8483 if test "x$ac_cv_func_fork_works" = xyes; then
8484
8485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8486
8487 fi
8488
8489
8490
8491 if test "X$prefix" = "XNONE"; then
8492 acl_final_prefix="$ac_default_prefix"
8493 else
8494 acl_final_prefix="$prefix"
8495 fi
8496 if test "X$exec_prefix" = "XNONE"; then
8497 acl_final_exec_prefix='${prefix}'
8498 else
8499 acl_final_exec_prefix="$exec_prefix"
8500 fi
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"
8505
8506
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
8512 fi
8513
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=:
8524 fi
8525 rm -f conf$$.sh
8526 fi
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'` ;;
8536 *)
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"
8549 ;;
8550 "")
8551 # If it fails, then pretend we aren't using GCC.
8552 ac_prog=ld
8553 ;;
8554 *)
8555 # If it is relative, then search for the first ld in PATH.
8556 with_gnu_ld=unknown
8557 ;;
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; }
8565 fi
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
8582 fi
8583 fi
8584 done
8585 IFS="$ac_save_ifs"
8586 else
8587 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8588 fi
8589 fi
8590
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; }
8598 fi
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
8610 fi
8611 fi
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
8615
8616
8617
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
8623
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
8629
8630 fi
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
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653
8654 use_additional=yes
8655
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8660
8661 eval additional_includedir=\"$includedir\"
8662 eval additional_libdir=\"$libdir\"
8663
8664 exec_prefix="$acl_save_exec_prefix"
8665 prefix="$acl_save_prefix"
8666
8667
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
8675
8676 acl_save_prefix="$prefix"
8677 prefix="$acl_final_prefix"
8678 acl_save_exec_prefix="$exec_prefix"
8679 exec_prefix="$acl_final_exec_prefix"
8680
8681 eval additional_includedir=\"$includedir\"
8682 eval additional_libdir=\"$libdir\"
8683
8684 exec_prefix="$acl_save_exec_prefix"
8685 prefix="$acl_save_prefix"
8686
8687 else
8688 additional_includedir="$withval/include"
8689 additional_libdir="$withval/lib"
8690 fi
8691 fi
8692
8693 fi
8694
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
8711 fi
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
8724 :
8725 fi
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"
8737 fi
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"
8744 fi
8745 fi
8746 fi
8747 fi
8748 if test "X$found_dir" = "X"; then
8749 for x in $LDFLAGS $LTLIBICONV; do
8750
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"
8758
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"
8767 fi
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"
8774 fi
8775 fi
8776 fi
8777 ;;
8778 esac
8779 if test "X$found_dir" != "X"; then
8780 break
8781 fi
8782 done
8783 fi
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
8795 fi
8796 done
8797 if test -z "$haveit"; then
8798 ltrpathdirs="$ltrpathdirs $found_dir"
8799 fi
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
8810 fi
8811 done
8812 if test -z "$haveit"; then
8813 rpathdirs="$rpathdirs $found_dir"
8814 fi
8815 else
8816 haveit=
8817 for x in $LDFLAGS $LIBICONV; do
8818
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"
8826
8827 if test "X$x" = "X-L$found_dir"; then
8828 haveit=yes
8829 break
8830 fi
8831 done
8832 if test -z "$haveit"; then
8833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8834 fi
8835 if test "$hardcode_minus_L" != no; then
8836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8837 else
8838 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8839 fi
8840 fi
8841 fi
8842 fi
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"
8848 fi
8849 fi
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"
8855 ;;
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
8865 fi
8866 fi
8867 if test -z "$haveit"; then
8868 for x in $CPPFLAGS $INCICONV; do
8869
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"
8877
8878 if test "X$x" = "X-I$additional_includedir"; then
8879 haveit=yes
8880 break
8881 fi
8882 done
8883 if test -z "$haveit"; then
8884 if test -d "$additional_includedir"; then
8885 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8886 fi
8887 fi
8888 fi
8889 fi
8890 fi
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
8909 fi
8910 fi
8911 if test -z "$haveit"; then
8912 haveit=
8913 for x in $LDFLAGS $LIBICONV; do
8914
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"
8922
8923 if test "X$x" = "X-L$additional_libdir"; then
8924 haveit=yes
8925 break
8926 fi
8927 done
8928 if test -z "$haveit"; then
8929 if test -d "$additional_libdir"; then
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8931 fi
8932 fi
8933 haveit=
8934 for x in $LDFLAGS $LTLIBICONV; do
8935
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"
8943
8944 if test "X$x" = "X-L$additional_libdir"; then
8945 haveit=yes
8946 break
8947 fi
8948 done
8949 if test -z "$haveit"; then
8950 if test -d "$additional_libdir"; then
8951 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8952 fi
8953 fi
8954 fi
8955 fi
8956 ;;
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
8965 fi
8966 done
8967 if test -z "$haveit"; then
8968 rpathdirs="$rpathdirs $dir"
8969 fi
8970 haveit=
8971 for x in $ltrpathdirs; do
8972 if test "X$x" = "X$dir"; then
8973 haveit=yes
8974 break
8975 fi
8976 done
8977 if test -z "$haveit"; then
8978 ltrpathdirs="$ltrpathdirs $dir"
8979 fi
8980 fi
8981 ;;
8982 -l*)
8983 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8984 ;;
8985 *.la)
8986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8987 ;;
8988 *)
8989 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8991 ;;
8992 esac
8993 done
8994 fi
8995 else
8996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8998 fi
8999 fi
9000 fi
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
9022 fi
9023 fi
9024 if test "X$ltrpathdirs" != "X"; then
9025 for found_dir in $ltrpathdirs; do
9026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9027 done
9028 fi
9029
9030
9031
9032
9033
9034
9035
9036 am_save_CPPFLAGS="$CPPFLAGS"
9037
9038 for element in $INCICONV; do
9039 haveit=
9040 for x in $CPPFLAGS; do
9041
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"
9049
9050 if test "X$x" = "X$element"; then
9051 haveit=yes
9052 break
9053 fi
9054 done
9055 if test -z "$haveit"; then
9056 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9057 fi
9058 done
9059
9060
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
9066
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>
9073 int
9074 main ()
9075 {
9076 iconv_t cd = iconv_open("","");
9077 iconv(cd,NULL,NULL,NULL,NULL);
9078 iconv_close(cd);
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 am_cv_func_iconv=yes
9085 fi
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>
9095 int
9096 main ()
9097 {
9098 iconv_t cd = iconv_open("","");
9099 iconv(cd,NULL,NULL,NULL,NULL);
9100 iconv_close(cd);
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 am_cv_lib_iconv=yes
9107 am_cv_func_iconv=yes
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS="$am_save_LIBS"
9112 fi
9113
9114 fi
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
9118
9119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9120
9121 fi
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=
9131 fi
9132
9133
9134
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
9141
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144
9145 #include <stdlib.h>
9146 #include <iconv.h>
9147 extern
9148 #ifdef __cplusplus
9149 "C"
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
9156
9157 int
9158 main ()
9159 {
9160
9161 ;
9162 return 0;
9163 }
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"
9169 fi
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);"
9172 fi
9173
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; }
9179
9180 cat >>confdefs.h <<_ACEOF
9181 #define ICONV_CONST $am_cv_proto_iconv_arg1
9182 _ACEOF
9183
9184 fi
9185
9186 # Until we have in-tree GNU iconv:
9187 LIBICONV_DEP=
9188
9189
9190
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>
9199 int
9200 main ()
9201 {
9202 return LC_MESSAGES
9203 ;
9204 return 0;
9205 }
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
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 fi
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
9218
9219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9220
9221 fi
9222
9223
9224
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>
9233 int
9234 main ()
9235 {
9236 char* cs = nl_langinfo(CODESET);
9237 ;
9238 return 0;
9239 }
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
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248
9249 fi
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
9253
9254 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9255
9256 fi
9257
9258
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
9266 do
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
9277
9278 #include "ansidecl.h"
9279 #include "system.h"
9280
9281 int
9282 main ()
9283 {
9284 #ifndef $ac_func
9285 char *(*pfn) = (char *(*)) $ac_func ;
9286 #endif
9287 ;
9288 return 0;
9289 }
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"
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 fi
9298
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
9304
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
9310
9311 fi
9312
9313 done
9314
9315
9316 for ac_func in getrlimit setrlimit getrusage
9317 do
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
9328
9329 #include "ansidecl.h"
9330 #include "system.h"
9331 #ifdef HAVE_SYS_RESOURCE_H
9332 #include <sys/resource.h>
9333 #endif
9334
9335
9336 int
9337 main ()
9338 {
9339 #ifndef $ac_func
9340 char *(*pfn) = (char *(*)) $ac_func ;
9341 #endif
9342 ;
9343 return 0;
9344 }
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"
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 fi
9353
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
9359
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
9365
9366 fi
9367
9368 done
9369
9370
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9373
9374 #include "ansidecl.h"
9375 #include "system.h"
9376 #ifdef HAVE_SYS_RESOURCE_H
9377 #include <sys/resource.h>
9378 #endif
9379
9380 int
9381 main ()
9382 {
9383 rlim_t l = 0;
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 if ac_fn_c_try_compile "$LINENO"; then :
9389
9390 else
9391
9392 $as_echo "#define rlim_t long" >>confdefs.h
9393
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396
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
9402 do
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
9413
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
9421
9422
9423 int
9424 main ()
9425 {
9426 #ifndef $ac_func
9427 char *(*pfn) = (char *(*)) $ac_func ;
9428 #endif
9429 ;
9430 return 0;
9431 }
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"
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9439 fi
9440
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
9446
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
9452
9453 fi
9454
9455 done
9456
9457
9458 for ac_func in times
9459 do
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
9470
9471 #include "ansidecl.h"
9472 #include "system.h"
9473 #ifdef HAVE_SYS_TIMES_H
9474 #include <sys/times.h>
9475 #endif
9476
9477
9478 int
9479 main ()
9480 {
9481 #ifndef $ac_func
9482 char *(*pfn) = (char *(*)) $ac_func ;
9483 #endif
9484 ;
9485 return 0;
9486 }
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"
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 fi
9495
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
9501
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
9507
9508 fi
9509
9510 done
9511
9512
9513 for ac_func in sigaltstack
9514 do
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
9525
9526 #include "ansidecl.h"
9527 #include "system.h"
9528 #include <signal.h>
9529
9530
9531 int
9532 main ()
9533 {
9534 #ifndef $ac_func
9535 char *(*pfn) = (char *(*)) $ac_func ;
9536 #endif
9537 ;
9538 return 0;
9539 }
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"
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 fi
9548
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
9554
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
9560
9561 fi
9562
9563 done
9564
9565
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
9572
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575
9576 #include "ansidecl.h"
9577 #include "system.h"
9578 #ifdef HAVE_SYS_TIMES_H
9579 #include <sys/times.h>
9580 #endif
9581
9582 int
9583 main ()
9584 {
9585 struct tms tms;
9586 ;
9587 return 0;
9588 }
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
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 fi
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
9600
9601 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9602
9603 fi
9604
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
9612
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615
9616 #include "ansidecl.h"
9617 #include "system.h"
9618
9619 int
9620 main ()
9621 {
9622 clock_t x;
9623 ;
9624 return 0;
9625 }
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
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 fi
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
9637
9638 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9639
9640 fi
9641
9642 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9643 CFLAGS="$saved_CFLAGS"
9644
9645 # Check whether --enable-initfini-array was given.
9646 if test "${enable_initfini_array+set}" = set; then :
9647 enableval=$enable_initfini_array;
9648 else
9649
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. */
9660
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
9670 fi
9671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9672 conftest.$ac_objext conftest.beam conftest.$ac_ext
9673 fi
9674
9675 fi
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
9679
9680 fi
9681
9682 if test $enable_initfini_array = yes; then
9683
9684 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
9685
9686 fi
9687
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. */
9696
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
9707 int
9708 main ()
9709 {
9710 mkdir ("foo", 0);
9711 ;
9712 return 0;
9713 }
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
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 fi
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
9725
9726 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9727
9728 fi
9729
9730
9731 # File extensions
9732 manext='.1'
9733 objext='.o'
9734
9735
9736
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
9746 fi
9747 ;;
9748 esac
9749 force_sjlj_exceptions=yes
9750 else
9751 case $target in
9752 *-*-hpux10*)
9753 force_sjlj_exceptions=yes
9754 enableval=yes
9755 ;;
9756 *)
9757 force_sjlj_exceptions=no
9758 ;;
9759 esac
9760 fi
9761
9762 if test $force_sjlj_exceptions = yes; then
9763 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9764
9765 cat >>confdefs.h <<_ACEOF
9766 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9767 _ACEOF
9768
9769 fi
9770
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.
9774
9775
9776 # Check whether --with-system-libunwind was given.
9777 if test "${with_system_libunwind+set}" = set; then :
9778 withval=$with_system_libunwind;
9779 fi
9780
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
9787 fi
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.
9796
9797 case ${target} in
9798 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
9799 *) have_unwind_getipinfo=yes ;;
9800 esac
9801
9802 fi
9803
9804 if test x$have_unwind_getipinfo = xyes; then
9805
9806 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
9807
9808 fi
9809
9810
9811 # --------------------------------------------------------
9812 # Build, host, and target specific configuration fragments
9813 # --------------------------------------------------------
9814
9815 # Collect build-machine-specific information.
9816 . ${srcdir}/config.build
9817
9818 # Collect host-machine-specific information.
9819 . ${srcdir}/config.host
9820
9821 target_gtfiles=
9822
9823 # Collect target-machine-specific information.
9824 . ${srcdir}/config.gcc
9825
9826 extra_objs="${host_extra_objs} ${extra_objs}"
9827 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9828
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
9832
9833 if test x"$extra_headers" = x
9834 then extra_headers=; fi
9835
9836 if test x$md_file = x
9837 then md_file=$cpu_type/$cpu_type.md; fi
9838
9839 if test x$out_file = x
9840 then out_file=$cpu_type/$cpu_type.c; fi
9841
9842 if test x"$tmake_file" = x
9843 then tmake_file=$cpu_type/t-$cpu_type
9844 fi
9845
9846 if test x"$dwarf2" = xyes
9847 then tm_file="$tm_file tm-dwarf2.h"
9848 fi
9849
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."
9853
9854 # If any of the xm_file variables contain nonexistent files, warn
9855 # about them and drop them.
9856
9857 bx=
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;}
9863 fi
9864 done
9865 build_xm_file="$bx"
9866
9867 hx=
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;}
9873 fi
9874 done
9875 host_xm_file="$hx"
9876
9877 tx=
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;}
9883 fi
9884 done
9885 xm_file="$tx"
9886
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
9898 fi
9899
9900 if test x$need_64bit_hwint = xyes; then
9901
9902 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
9903
9904 fi
9905
9906 if test x$use_long_long_for_widest_fast_int = xyes; then
9907
9908 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
9909
9910 fi
9911
9912 count=a
9913 for f in $host_xm_file; do
9914 count=${count}x
9915 done
9916 if test $count = a; then
9917 :
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
9925 fi
9926 echo "Using ${out_host_hook_obj} for host machine hooks."
9927
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
9934 :
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
9942 fi
9943 fi
9944
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. */
9954
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; }
9959
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
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 fi
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
9971
9972 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
9973
9974 fi
9975 ;;
9976 esac
9977
9978 # ---------
9979 # Threading
9980 # ---------
9981
9982 # Check if a valid thread package
9983 case ${enable_threads} in
9984 "" | no)
9985 # No threads
9986 target_thread_file='single'
9987 ;;
9988 yes)
9989 # default
9990 target_thread_file='single'
9991 ;;
9992 aix | dce | gnat | irix | posix | posix95 | rtems | \
9993 single | solaris | vxworks | win32 | mipssde)
9994 target_thread_file=${enable_threads}
9995 ;;
9996 *)
9997 echo "${enable_threads} is an unknown thread package" 1>&2
9998 exit 1
9999 ;;
10000 esac
10001
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}
10006 fi
10007
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
10016 fi
10017 gthread_flags=-DHAVE_GTHR_DEFAULT
10018 fi
10019
10020
10021 # --------
10022 # UNSORTED
10023 # --------
10024
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
10034 ;;
10035 *)
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"
10041 fi
10042
10043 ;;
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
10049 fi
10050 if test x$use_cxa_atexit = xyes; then
10051
10052 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10053
10054 fi
10055 fi
10056
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}
10060
10061
10062 cat >>confdefs.h <<_ACEOF
10063 #define EXTRA_MODES_FILE "config/$extra_modes"
10064 _ACEOF
10065
10066 fi
10067
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
10073
10074
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}"
10103
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
10110 fi
10111
10112
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}"
10120
10121 # --------
10122 # UNSORTED
10123 # --------
10124
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"
10132 fi
10133
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
10138 EOF
10139 gcc_config_arguments_str=`cat conftest.out`
10140 rm -f conftest.out
10141
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";
10146
10147 static const struct {
10148 const char *name, *value;
10149 } configure_default_options[] = $configure_default_options;
10150 EOF
10151
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=""
10159 fi
10160 cat > plugin-version.h <<EOF
10161 #include "configargs.h"
10162
10163 static char basever[] = "$gcc_BASEVER";
10164 static char datestamp[] = "$gcc_DATESTAMP";
10165 static char devphase[] = "$gcc_DEVPHASE";
10166 static char revision[] = "$gcc_REVISION";
10167
10168 /* FIXME plugins: We should make the version information more precise.
10169 One way to do is to add a checksum. */
10170
10171 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10172 devphase, revision,
10173 configuration_arguments};
10174 EOF
10175
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=
10186
10187 if test -f ../intl/config.intl; then
10188 . ../intl/config.intl
10189 fi
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; }
10198
10199 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10200
10201
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"
10229 ;;
10230 esac
10231 fi
10232 done
10233 LINGUAS="$XLINGUAS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10235 $as_echo "$LINGUAS" >&6; }
10236
10237
10238 DATADIRNAME=share
10239
10240 INSTOBJEXT=.mo
10241
10242 GENCAT=gencat
10243
10244 CATOBJEXT=.gmo
10245
10246 fi
10247
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
10253
10254 # Check whether --enable-secureplt was given.
10255 if test "${enable_secureplt+set}" = set; then :
10256 enableval=$enable_secureplt;
10257 fi
10258
10259
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
10265 fi
10266
10267
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;
10272 fi
10273
10274
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. */
10286
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 ();
10294 int
10295 main ()
10296 {
10297 return RegOpenKeyExA ();
10298 ;
10299 return 0;
10300 }
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"
10308 fi
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 ac_cv_search_RegOpenKeyExA=$ac_res
10311 fi
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
10316 fi
10317 done
10318 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10319
10320 else
10321 ac_cv_search_RegOpenKeyExA=no
10322 fi
10323 rm conftest.$ac_ext
10324 LIBS=$ac_func_search_save_LIBS
10325 fi
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"
10331
10332 else
10333 enable_win32_registry=no
10334 fi
10335
10336 fi
10337
10338 if test "x$enable_win32_registry" != xno; then
10339
10340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10341
10342
10343 if test "x$enable_win32_registry" != xyes \
10344 && test "x$enable_win32_registry" != x; then
10345
10346 cat >>confdefs.h <<_ACEOF
10347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10348 _ACEOF
10349
10350 fi
10351 fi
10352 ;;
10353 esac
10354
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
10360
10361 # Conditionalize the makefile for this host machine.
10362 xmake_file=
10363 for f in ${host_xmake_file}
10364 do
10365 if test -f ${srcdir}/config/$f
10366 then
10367 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10368 fi
10369 done
10370
10371 # Conditionalize the makefile for this target machine.
10372 tmake_file_=
10373 for f in ${tmake_file}
10374 do
10375 if test -f ${srcdir}/config/$f
10376 then
10377 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10378 fi
10379 done
10380 tmake_file="${tmake_file_}"
10381
10382 out_object_file=`basename $out_file .c`.o
10383
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"
10392 ;;
10393 defaults.h )
10394 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10395 tm_include_list="${tm_include_list} $f"
10396 ;;
10397 * )
10398 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10399 tm_include_list="${tm_include_list} config/$f"
10400 ;;
10401 esac
10402 done
10403
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"
10411 ;;
10412 * )
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
10417
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"
10425 ;;
10426 auto-host.h )
10427 xm_file_list="${xm_file_list} $f"
10428 xm_include_list="${xm_include_list} $f"
10429 ;;
10430 * )
10431 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10432 xm_include_list="${xm_include_list} config/$f"
10433 ;;
10434 esac
10435 done
10436
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"
10444 ;;
10445 auto-host.h )
10446 host_xm_file_list="${host_xm_file_list} $f"
10447 host_xm_include_list="${host_xm_include_list} $f"
10448 ;;
10449 * )
10450 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10451 host_xm_include_list="${host_xm_include_list} config/$f"
10452 ;;
10453 esac
10454 done
10455
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"
10462 ;;
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"
10466 ;;
10467 * )
10468 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10469 build_xm_include_list="${build_xm_include_list} config/$f"
10470 ;;
10471 esac
10472 done
10473
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)'
10480
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)'
10488 fi
10489
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
10508 fi
10509 ;;
10510
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
10517 fi
10518
10519 # If this is a cross-compiler that does not
10520 # have its own set of headers then define
10521 # inhibit_libc
10522
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
10532 fi
10533
10534
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.
10538
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
10544
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)'
10550 fi
10551
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
10559
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"
10563 fi
10564
10565 # Define collect2 in Makefile.
10566 case $host_can_use_collect2 in
10567 no) collect2= ;;
10568 *) collect2='collect2$(exeext)' ;;
10569 esac
10570
10571
10572 # Add a definition of USE_COLLECT2 if system wants one.
10573 case $use_collect2 in
10574 no) use_collect2= ;;
10575 "") ;;
10576 *)
10577 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10578 xm_defines="${xm_defines} USE_COLLECT2"
10579 case $host_can_use_collect2 in
10580 no)
10581 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10582 ;;
10583 esac
10584 ;;
10585 esac
10586
10587 # ---------------------------
10588 # Assembler & linker features
10589 # ---------------------------
10590
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.
10600
10601
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
10607
10608
10609
10610 macro_version='2.2.6'
10611 macro_revision='1.3012'
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625 ltmain="$ac_aux_dir/ltmain.sh"
10626
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
10643 do
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=:;;
10655 *)
10656 ac_count=0
10657 $as_echo_n 0123456789 >"conftest.in"
10658 while :
10659 do
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
10671 fi
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
10677
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
10685 fi
10686 else
10687 ac_cv_path_SED=$SED
10688 fi
10689
10690 fi
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
10695
10696 test -z "$SED" && SED=sed
10697 Xsed="$SED -e 1s/^X//"
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
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
10722 do
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=:;;
10734 *)
10735 ac_count=0
10736 $as_echo_n 0123456789 >"conftest.in"
10737 while :
10738 do
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
10750 fi
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
10756
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
10764 fi
10765 else
10766 ac_cv_path_FGREP=$FGREP
10767 fi
10768
10769 fi
10770 fi
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"
10774
10775
10776 test -z "$GREP" && GREP=grep
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
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
10801 fi
10802
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'` ;;
10812 *)
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"
10825 ;;
10826 "")
10827 # If it fails, then pretend we aren't using GCC.
10828 ac_prog=ld
10829 ;;
10830 *)
10831 # If it is relative, then search for the first ld in PATH.
10832 with_gnu_ld=unknown
10833 ;;
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; }
10841 fi
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
10858 ;;
10859 *)
10860 test "$with_gnu_ld" != yes && break
10861 ;;
10862 esac
10863 fi
10864 done
10865 IFS="$lt_save_ifs"
10866 else
10867 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10868 fi
10869 fi
10870
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; }
10878 fi
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
10889 ;;
10890 *)
10891 lt_cv_prog_gnu_ld=no
10892 ;;
10893 esac
10894 fi
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
10898
10899
10900
10901
10902
10903
10904
10905
10906
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"
10919 fi
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
10935 ;;
10936 *)
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
10941 ;;
10942 *)
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
10945 ;;
10946 esac
10947 ;;
10948 esac
10949 fi
10950 done
10951 IFS="$lt_save_ifs"
10952 done
10953 : ${lt_cv_path_NM=no}
10954 fi
10955 fi
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"
10964 do
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
10977 do
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
10985 fi
10986 done
10987 done
10988 IFS=$as_save_IFS
10989
10990 fi
10991 fi
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; }
10999 fi
11000
11001
11002 test -n "$DUMPBIN" && break
11003 done
11004 fi
11005 if test -z "$DUMPBIN"; then
11006 ac_ct_DUMPBIN=$DUMPBIN
11007 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11008 do
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
11021 do
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
11029 fi
11030 done
11031 done
11032 IFS=$as_save_IFS
11033
11034 fi
11035 fi
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; }
11043 fi
11044
11045
11046 test -n "$ac_ct_DUMPBIN" && break
11047 done
11048
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
11059 fi
11060 fi
11061
11062
11063 if test "$DUMPBIN" != ":"; then
11064 NM="$DUMPBIN"
11065 fi
11066 fi
11067 test -z "$NM" && NM=nm
11068
11069
11070
11071
11072
11073
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"
11091 fi
11092 rm -f conftest*
11093 fi
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11095 $as_echo "$lt_cv_nm_interface" >&6; }
11096
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; }
11106 fi
11107
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
11114 i=0
11115 teststring="ABCD"
11116
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
11124 ;;
11125
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;
11131 ;;
11132
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;
11142 ;;
11143
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;
11148 ;;
11149
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
11158 fi
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`
11162 ;;
11163
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
11167 ;;
11168
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
11175 #
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
11180 fi
11181 ;;
11182 sco3.2v5*)
11183 lt_cv_sys_max_cmd_len=102400
11184 ;;
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
11191 fi
11192 ;;
11193 *)
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
11211 do
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`
11222 fi
11223 ;;
11224 esac
11225
11226 fi
11227
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; }
11234 fi
11235 max_cmd_len=$lt_cv_sys_max_cmd_len
11236
11237
11238
11239
11240
11241
11242 : ${CP="cp -f"}
11243 : ${MV="mv -f"}
11244 : ${RM="rm -f"}
11245
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; }
11258
11259
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; }
11268
11269
11270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11271 lt_unset=unset
11272 else
11273 lt_unset=false
11274 fi
11275
11276
11277
11278
11279
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'
11286 ;;
11287 *) # EBCDIC based system
11288 lt_SP2NL='tr \100 \n'
11289 lt_NL2SP='tr \r\n \100\100'
11290 ;;
11291 esac
11292
11293
11294
11295
11296
11297
11298
11299
11300
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'
11307 fi
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'
11322 fi
11323 ;;
11324 esac
11325
11326
11327
11328
11329
11330
11331
11332
11333
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
11347 do
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
11355 fi
11356 done
11357 done
11358 IFS=$as_save_IFS
11359
11360 fi
11361 fi
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; }
11369 fi
11370
11371
11372 fi
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
11387 do
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
11395 fi
11396 done
11397 done
11398 IFS=$as_save_IFS
11399
11400 fi
11401 fi
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; }
11409 fi
11410
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
11421 fi
11422 else
11423 OBJDUMP="$ac_cv_prog_OBJDUMP"
11424 fi
11425
11426 test -z "$OBJDUMP" && OBJDUMP=objdump
11427
11428
11429
11430
11431
11432
11433
11434
11435
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.
11454
11455 case $host_os in
11456 aix[4-9]*)
11457 lt_cv_deplibs_check_method=pass_all
11458 ;;
11459
11460 beos*)
11461 lt_cv_deplibs_check_method=pass_all
11462 ;;
11463
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
11468 ;;
11469
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'
11474 ;;
11475
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'
11486 fi
11487 ;;
11488
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'
11493 ;;
11494
11495 darwin* | rhapsody*)
11496 lt_cv_deplibs_check_method=pass_all
11497 ;;
11498
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.*`
11508 ;;
11509 esac
11510 else
11511 lt_cv_deplibs_check_method=pass_all
11512 fi
11513 ;;
11514
11515 gnu*)
11516 lt_cv_deplibs_check_method=pass_all
11517 ;;
11518
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
11525 ;;
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
11529 ;;
11530 *)
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
11533 ;;
11534 esac
11535 ;;
11536
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)$'
11540 ;;
11541
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
11550 ;;
11551
11552 # This must be Linux ELF.
11553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11554 lt_cv_deplibs_check_method=pass_all
11555 ;;
11556
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)$'
11562 fi
11563 ;;
11564
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
11569 ;;
11570
11571 *nto* | *qnx*)
11572 lt_cv_deplibs_check_method=pass_all
11573 ;;
11574
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)$'
11580 fi
11581 ;;
11582
11583 osf3* | osf4* | osf5*)
11584 lt_cv_deplibs_check_method=pass_all
11585 ;;
11586
11587 rdos*)
11588 lt_cv_deplibs_check_method=pass_all
11589 ;;
11590
11591 solaris*)
11592 lt_cv_deplibs_check_method=pass_all
11593 ;;
11594
11595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11596 lt_cv_deplibs_check_method=pass_all
11597 ;;
11598
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*`
11604 ;;
11605 ncr)
11606 lt_cv_deplibs_check_method=pass_all
11607 ;;
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 )'
11611 ;;
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
11616 ;;
11617 siemens)
11618 lt_cv_deplibs_check_method=pass_all
11619 ;;
11620 pc)
11621 lt_cv_deplibs_check_method=pass_all
11622 ;;
11623 esac
11624 ;;
11625
11626 tpf*)
11627 lt_cv_deplibs_check_method=pass_all
11628 ;;
11629 esac
11630
11631 fi
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
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
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
11662 do
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
11670 fi
11671 done
11672 done
11673 IFS=$as_save_IFS
11674
11675 fi
11676 fi
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; }
11684 fi
11685
11686
11687 fi
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
11702 do
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
11710 fi
11711 done
11712 done
11713 IFS=$as_save_IFS
11714
11715 fi
11716 fi
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; }
11724 fi
11725
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
11736 fi
11737 else
11738 AR="$ac_cv_prog_AR"
11739 fi
11740
11741 test -z "$AR" && AR=ar
11742 test -z "$AR_FLAGS" && AR_FLAGS=cru
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
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
11767 do
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
11775 fi
11776 done
11777 done
11778 IFS=$as_save_IFS
11779
11780 fi
11781 fi
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; }
11789 fi
11790
11791
11792 fi
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
11807 do
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
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
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; }
11829 fi
11830
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
11841 fi
11842 else
11843 STRIP="$ac_cv_prog_STRIP"
11844 fi
11845
11846 test -z "$STRIP" && STRIP=:
11847
11848
11849
11850
11851
11852
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
11866 do
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
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 fi
11880 fi
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; }
11888 fi
11889
11890
11891 fi
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
11906 do
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
11914 fi
11915 done
11916 done
11917 IFS=$as_save_IFS
11918
11919 fi
11920 fi
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; }
11928 fi
11929
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
11940 fi
11941 else
11942 RANLIB="$ac_cv_prog_RANLIB"
11943 fi
11944
11945 test -z "$RANLIB" && RANLIB=:
11946
11947
11948
11949
11950
11951
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=
11956
11957 if test -n "$RANLIB"; then
11958 case $host_os in
11959 openbsd*)
11960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11961 ;;
11962 *)
11963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11964 ;;
11965 esac
11966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11967 fi
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002 # If no C compiler was specified, use CC.
12003 LTCC=${LTCC-"$CC"}
12004
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12007
12008 # Allow CC to be a program name with arguments.
12009 compiler=$CC
12010
12011
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
12018
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?!! ;)]
12021
12022 # Character class describing NM global symbol codes.
12023 symcode='[BCDEGRST]'
12024
12025 # Regexp to match symbols that can be accessed directly from C.
12026 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12027
12028 # Define system-specific variables.
12029 case $host_os in
12030 aix*)
12031 symcode='[BCDT]'
12032 ;;
12033 cygwin* | mingw* | pw32* | cegcc*)
12034 symcode='[ABCDGISTW]'
12035 ;;
12036 hpux*)
12037 if test "$host_cpu" = ia64; then
12038 symcode='[ABCDEGRST]'
12039 fi
12040 ;;
12041 irix* | nonstopux*)
12042 symcode='[BCDEGRST]'
12043 ;;
12044 osf*)
12045 symcode='[BCDEGQRST]'
12046 ;;
12047 solaris*)
12048 symcode='[BDRT]'
12049 ;;
12050 sco3.2v5*)
12051 symcode='[DT]'
12052 ;;
12053 sysv4.2uw2*)
12054 symcode='[DT]'
12055 ;;
12056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12057 symcode='[ABDT]'
12058 ;;
12059 sysv4)
12060 symcode='[DFNSTU]'
12061 ;;
12062 esac
12063
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
12069
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'"
12074
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'"
12078
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
12084 ;;
12085 esac
12086
12087 # Try without a prefix underscore, then with it.
12088 for ac_symprfx in "" "_"; do
12089
12090 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12091 symxfrm="\\1 $ac_symprfx\\2 \\2"
12092
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'"
12112 fi
12113
12114 # Check to see that the pipe works correctly.
12115 pipe_works=no
12116
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
12126 }
12127 #endif
12128 int main(){nm_test_var='a';nm_test_func();return(0);}
12129 _LT_EOF
12130
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
12148 fi
12149
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
12157
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'
12161
12162 cat <<_LT_EOF >> conftest.$ac_ext
12163
12164 /* The mapping between symbol names and symbols. */
12165 const struct {
12166 const char *name;
12167 void *address;
12168 }
12169 lt__PROGRAM__LTX_preloaded_symbols[] =
12170 {
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}
12176 };
12177
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;
12182 }
12183 #endif
12184
12185 #ifdef __cplusplus
12186 }
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
12201 fi
12202 LIBS="$lt_save_LIBS"
12203 CFLAGS="$lt_save_CFLAGS"
12204 else
12205 echo "cannot find nm_test_func in $nlist" >&5
12206 fi
12207 else
12208 echo "cannot find nm_test_var in $nlist" >&5
12209 fi
12210 else
12211 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12212 fi
12213 else
12214 echo "$progname: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 fi
12217 rm -rf conftest* conftst*
12218
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=
12224 fi
12225 done
12226
12227 fi
12228
12229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12230 lt_cv_sys_global_symbol_to_cdecl=
12231 fi
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; }
12238 fi
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261 # Check whether --enable-libtool-lock was given.
12262 if test "${enable_libtool_lock+set}" = set; then :
12263 enableval=$enable_libtool_lock;
12264 fi
12265
12266 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12267
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"
12282 ;;
12283 *ELF-64*)
12284 HPUX_IA64_MODE="64"
12285 ;;
12286 esac
12287 fi
12288 rm -rf conftest*
12289 ;;
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"
12302 ;;
12303 *N32*)
12304 LD="${LD-ld} -melf32bmipn32"
12305 ;;
12306 *64-bit*)
12307 LD="${LD-ld} -melf64bmip"
12308 ;;
12309 esac
12310 else
12311 case `/usr/bin/file conftest.$ac_objext` in
12312 *32-bit*)
12313 LD="${LD-ld} -32"
12314 ;;
12315 *N32*)
12316 LD="${LD-ld} -n32"
12317 ;;
12318 *64-bit*)
12319 LD="${LD-ld} -64"
12320 ;;
12321 esac
12322 fi
12323 fi
12324 rm -rf conftest*
12325 ;;
12326
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"
12341 ;;
12342 x86_64-*linux*)
12343 LD="${LD-ld} -m elf_i386"
12344 ;;
12345 ppc64-*linux*|powerpc64-*linux*)
12346 LD="${LD-ld} -m elf32ppclinux"
12347 ;;
12348 s390x-*linux*)
12349 LD="${LD-ld} -m elf_s390"
12350 ;;
12351 sparc64-*linux*)
12352 LD="${LD-ld} -m elf32_sparc"
12353 ;;
12354 esac
12355 ;;
12356 *64-bit*)
12357 case $host in
12358 x86_64-*kfreebsd*-gnu)
12359 LD="${LD-ld} -m elf_x86_64_fbsd"
12360 ;;
12361 x86_64-*linux*)
12362 LD="${LD-ld} -m elf_x86_64"
12363 ;;
12364 ppc*-*linux*|powerpc*-*linux*)
12365 LD="${LD-ld} -m elf64ppc"
12366 ;;
12367 s390*-*linux*|s390*-*tpf*)
12368 LD="${LD-ld} -m elf64_s390"
12369 ;;
12370 sparc*-*linux*)
12371 LD="${LD-ld} -m elf64_sparc"
12372 ;;
12373 esac
12374 ;;
12375 esac
12376 fi
12377 rm -rf conftest*
12378 ;;
12379
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
12394
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397
12398 int
12399 main ()
12400 {
12401
12402 ;
12403 return 0;
12404 }
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
12410 fi
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
12418
12419 fi
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"
12425 fi
12426 ;;
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" ;;
12439 *)
12440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12441 LD="${LD-ld} -64"
12442 fi
12443 ;;
12444 esac
12445 ;;
12446 esac
12447 fi
12448 rm -rf conftest*
12449 ;;
12450 esac
12451
12452 need_locks="$enable_libtool_lock"
12453
12454
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
12470 do
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
12478 fi
12479 done
12480 done
12481 IFS=$as_save_IFS
12482
12483 fi
12484 fi
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; }
12492 fi
12493
12494
12495 fi
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
12510 do
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
12518 fi
12519 done
12520 done
12521 IFS=$as_save_IFS
12522
12523 fi
12524 fi
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; }
12532 fi
12533
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
12544 fi
12545 else
12546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12547 fi
12548
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
12562 do
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
12570 fi
12571 done
12572 done
12573 IFS=$as_save_IFS
12574
12575 fi
12576 fi
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; }
12584 fi
12585
12586
12587 fi
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
12602 do
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
12610 fi
12611 done
12612 done
12613 IFS=$as_save_IFS
12614
12615 fi
12616 fi
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; }
12624 fi
12625
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
12636 fi
12637 else
12638 NMEDIT="$ac_cv_prog_NMEDIT"
12639 fi
12640
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
12654 do
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
12662 fi
12663 done
12664 done
12665 IFS=$as_save_IFS
12666
12667 fi
12668 fi
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; }
12676 fi
12677
12678
12679 fi
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
12694 do
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
12702 fi
12703 done
12704 done
12705 IFS=$as_save_IFS
12706
12707 fi
12708 fi
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; }
12716 fi
12717
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
12728 fi
12729 else
12730 LIPO="$ac_cv_prog_LIPO"
12731 fi
12732
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
12746 do
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
12754 fi
12755 done
12756 done
12757 IFS=$as_save_IFS
12758
12759 fi
12760 fi
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; }
12768 fi
12769
12770
12771 fi
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
12786 do
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
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
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; }
12808 fi
12809
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
12820 fi
12821 else
12822 OTOOL="$ac_cv_prog_OTOOL"
12823 fi
12824
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
12838 do
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
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 fi
12852 fi
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; }
12860 fi
12861
12862
12863 fi
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
12878 do
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
12886 fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891 fi
12892 fi
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; }
12900 fi
12901
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
12912 fi
12913 else
12914 OTOOL64="$ac_cv_prog_OTOOL64"
12915 fi
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
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
12965 fi
12966 rm -rf libconftest.dylib*
12967 rm -f conftest.*
12968 fi
12969 fi
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. */
12983
12984 int
12985 main ()
12986 {
12987
12988 ;
12989 return 0;
12990 }
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
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LDFLAGS="$save_LDFLAGS"
13000
13001 fi
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
13021 ;;
13022 esac
13023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13024 _lt_dar_single_mod='$single_module'
13025 fi
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}'
13030 fi
13031 if test "$DSYMUTIL" != ":"; then
13032 _lt_dsymutil='~$DSYMUTIL $lib || :'
13033 else
13034 _lt_dsymutil=
13035 fi
13036 ;;
13037 esac
13038
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
13046
13047 fi
13048 done
13049
13050
13051
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
13063 do
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
13076 do
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
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
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; }
13098 fi
13099
13100
13101 test -n "$CXX" && break
13102 done
13103 fi
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
13107 do
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
13120 do
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
13128 fi
13129 done
13130 done
13131 IFS=$as_save_IFS
13132
13133 fi
13134 fi
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; }
13142 fi
13143
13144
13145 test -n "$ac_ct_CXX" && break
13146 done
13147
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
13158 fi
13159 fi
13160
13161 fi
13162 fi
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
13183 fi
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }
13186 done
13187
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. */
13195
13196 int
13197 main ()
13198 {
13199 #ifndef __GNUC__
13200 choke me
13201 #endif
13202
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_cxx_try_compile "$LINENO"; then :
13208 ac_compiler_gnu=yes
13209 else
13210 ac_compiler_gnu=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13214
13215 fi
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=
13222 fi
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. */
13236
13237 int
13238 main ()
13239 {
13240
13241 ;
13242 return 0;
13243 }
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. */
13251
13252 int
13253 main ()
13254 {
13255
13256 ;
13257 return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_cxx_try_compile "$LINENO"; then :
13261
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. */
13267
13268 int
13269 main ()
13270 {
13271
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 if ac_fn_cxx_try_compile "$LINENO"; then :
13277 ac_cv_prog_cxx_g=yes
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13285 fi
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"
13295 fi
13296 else
13297 if test "$GXX" = yes; then
13298 CXXFLAGS="-O2"
13299 else
13300 CXXFLAGS=
13301 fi
13302 fi
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
13308
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"
13325 do
13326 ac_preproc_ok=false
13327 for ac_cxx_preproc_warn_flag in '' yes
13328 do
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 :
13345
13346 else
13347 # Broken: fails on valid input.
13348 continue
13349 fi
13350 rm -f conftest.err conftest.$ac_ext
13351
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
13365 fi
13366 rm -f conftest.err conftest.$ac_ext
13367
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
13373 fi
13374
13375 done
13376 ac_cv_prog_CXXCPP=$CXXCPP
13377
13378 fi
13379 CXXCPP=$ac_cv_prog_CXXCPP
13380 else
13381 ac_cv_prog_CXXCPP=$CXXCPP
13382 fi
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
13387 do
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 :
13404
13405 else
13406 # Broken: fails on valid input.
13407 continue
13408 fi
13409 rm -f conftest.err conftest.$ac_ext
13410
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
13424 fi
13425 rm -f conftest.err conftest.$ac_ext
13426
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 :
13431
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; }
13436 fi
13437
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
13443
13444 else
13445 _lt_caught_CXX_error=yes
13446 fi
13447
13448
13449
13450
13451
13452 # Set options
13453
13454
13455
13456 enable_dlopen=no
13457
13458
13459 enable_win32_dll=no
13460
13461
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 ;;
13468 *)
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
13476 fi
13477 done
13478 IFS="$lt_save_ifs"
13479 ;;
13480 esac
13481 else
13482 enable_shared=yes
13483 fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
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 ;;
13499 *)
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
13507 fi
13508 done
13509 IFS="$lt_save_ifs"
13510 ;;
13511 esac
13512 else
13513 enable_static=yes
13514 fi
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
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
13530 fi
13531
13532
13533 test -z "$pic_mode" && pic_mode=default
13534
13535
13536
13537
13538
13539
13540
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 ;;
13547 *)
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
13555 fi
13556 done
13557 IFS="$lt_save_ifs"
13558 ;;
13559 esac
13560 else
13561 enable_fast_install=yes
13562 fi
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574 # This can be used to rebuild libtool when needed
13575 LIBTOOL_DEPS="$ltmain"
13576
13577 # Always use our own libtool.
13578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 test -z "$LN_S" && LN_S="ln -s"
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619 if test -n "${ZSH_VERSION+set}" ; then
13620 setopt NO_GLOB_SUBST
13621 fi
13622
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
13635 fi
13636 rmdir .libs 2>/dev/null
13637 fi
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
13641
13642
13643
13644
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define LT_OBJDIR "$lt_cv_objdir/"
13648 _ACEOF
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
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
13674 fi
13675 ;;
13676 esac
13677
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'
13681
13682 # Same as above, but do not quote variable references.
13683 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13684
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'
13688
13689 # Sed substitution to delay expansion of an escaped single quote.
13690 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13691
13692 # Sed substitution to avoid accidental globbing in evaled expressions
13693 no_glob_subst='s/\*/\\\*/g'
13694
13695 # Global variables:
13696 ofile=libtool
13697 can_build_shared=yes
13698
13699 # All known linkers require a `.a' archive for static linking (except MSVC,
13700 # which needs '.lib').
13701 libext=a
13702
13703 with_gnu_ld="$lt_cv_prog_gnu_ld"
13704
13705 old_CC="$CC"
13706 old_CFLAGS="$CFLAGS"
13707
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
13714
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-%%"`
13724
13725
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.
13739 ;;
13740 *)
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
13756 :
13757 else
13758 cat <<_LT_EOF 1>&2
13759
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
13768
13769 _LT_EOF
13770 fi ;;
13771 esac
13772 fi
13773 break
13774 fi
13775 done
13776 IFS="$lt_save_ifs"
13777 MAGIC_CMD="$lt_save_MAGIC_CMD"
13778 ;;
13779 esac
13780 fi
13781
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; }
13789 fi
13790
13791
13792
13793
13794
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.
13805 ;;
13806 *)
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
13822 :
13823 else
13824 cat <<_LT_EOF 1>&2
13825
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
13834
13835 _LT_EOF
13836 fi ;;
13837 esac
13838 fi
13839 break
13840 fi
13841 done
13842 IFS="$lt_save_ifs"
13843 MAGIC_CMD="$lt_save_MAGIC_CMD"
13844 ;;
13845 esac
13846 fi
13847
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; }
13855 fi
13856
13857
13858 else
13859 MAGIC_CMD=:
13860 fi
13861 fi
13862
13863 fi
13864 ;;
13865 esac
13866
13867 # Use C for the default configuration in the libtool script
13868
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
13875
13876
13877 # Source file extension for C test sources.
13878 ac_ext=c
13879
13880 # Object file extension for compiled C test sources.
13881 objext=o
13882 objext=$objext
13883
13884 # Code to be used in simple compile tests
13885 lt_simple_compile_test_code="int some_variable = 0;"
13886
13887 # Code to be used in simple link tests
13888 lt_simple_link_test_code='int main(){return(0);}'
13889
13890
13891
13892
13893
13894
13895
13896 # If no C compiler was specified, use CC.
13897 LTCC=${LTCC-"$CC"}
13898
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13901
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13904
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
13908
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*
13915
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*
13921
13922
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
13928
13929 lt_prog_compiler_no_builtin_flag=
13930
13931 if test "$GCC" = yes; then
13932 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13933
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
13964 fi
13965 fi
13966 $RM conftest*
13967
13968 fi
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; }
13971
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
13975 :
13976 fi
13977
13978 fi
13979
13980
13981
13982
13983
13984
13985 lt_prog_compiler_wl=
13986 lt_prog_compiler_pic=
13987 lt_prog_compiler_static=
13988
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; }
13991
13992 if test "$GCC" = yes; then
13993 lt_prog_compiler_wl='-Wl,'
13994 lt_prog_compiler_static='-static'
13995
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'
14002 fi
14003 ;;
14004
14005 amigaos*)
14006 case $host_cpu in
14007 powerpc)
14008 # see comment about AmigaOS4 .so support
14009 lt_prog_compiler_pic='-fPIC'
14010 ;;
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'
14016 ;;
14017 esac
14018 ;;
14019
14020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14021 # PIC is the default for these OSes.
14022 ;;
14023
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'
14030 ;;
14031
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'
14036 ;;
14037
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
14045 ;;
14046 *)
14047 lt_prog_compiler_pic='-fPIC'
14048 ;;
14049 esac
14050 ;;
14051
14052 interix[3-9]*)
14053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14054 # Instead, we relocate shared libraries at runtime.
14055 ;;
14056
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
14062 ;;
14063
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'
14068 ;;
14069
14070 sysv4*MP*)
14071 if test -d /usr/nec; then
14072 lt_prog_compiler_pic=-Kconform_pic
14073 fi
14074 ;;
14075
14076 *)
14077 lt_prog_compiler_pic='-fPIC'
14078 ;;
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'
14090 fi
14091 ;;
14092
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'
14097 ;;
14098
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
14106 ;;
14107 *)
14108 lt_prog_compiler_pic='+Z'
14109 ;;
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'
14113 ;;
14114
14115 irix5* | irix6* | nonstopux*)
14116 lt_prog_compiler_wl='-Wl,'
14117 # PIC (with -KPIC) is the default.
14118 lt_prog_compiler_static='-non_shared'
14119 ;;
14120
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'
14128 ;;
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'
14135 ;;
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'
14141 ;;
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'
14148 ;;
14149 ccc*)
14150 lt_prog_compiler_wl='-Wl,'
14151 # All Alpha code is PIC.
14152 lt_prog_compiler_static='-non_shared'
14153 ;;
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'
14159 ;;
14160 *)
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,'
14167 ;;
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=''
14173 ;;
14174 esac
14175 ;;
14176 esac
14177 ;;
14178
14179 newsos6)
14180 lt_prog_compiler_pic='-KPIC'
14181 lt_prog_compiler_static='-Bstatic'
14182 ;;
14183
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'
14188 ;;
14189
14190 osf3* | osf4* | osf5*)
14191 lt_prog_compiler_wl='-Wl,'
14192 # All OSF/1 code is PIC.
14193 lt_prog_compiler_static='-non_shared'
14194 ;;
14195
14196 rdos*)
14197 lt_prog_compiler_static='-non_shared'
14198 ;;
14199
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 ';;
14206 *)
14207 lt_prog_compiler_wl='-Wl,';;
14208 esac
14209 ;;
14210
14211 sunos4*)
14212 lt_prog_compiler_wl='-Qoption ld '
14213 lt_prog_compiler_pic='-PIC'
14214 lt_prog_compiler_static='-Bstatic'
14215 ;;
14216
14217 sysv4 | sysv4.2uw2* | sysv4.3*)
14218 lt_prog_compiler_wl='-Wl,'
14219 lt_prog_compiler_pic='-KPIC'
14220 lt_prog_compiler_static='-Bstatic'
14221 ;;
14222
14223 sysv4*MP*)
14224 if test -d /usr/nec ;then
14225 lt_prog_compiler_pic='-Kconform_pic'
14226 lt_prog_compiler_static='-Bstatic'
14227 fi
14228 ;;
14229
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'
14234 ;;
14235
14236 unicos*)
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_can_build_shared=no
14239 ;;
14240
14241 uts4*)
14242 lt_prog_compiler_pic='-pic'
14243 lt_prog_compiler_static='-Bstatic'
14244 ;;
14245
14246 *)
14247 lt_prog_compiler_can_build_shared=no
14248 ;;
14249 esac
14250 fi
14251
14252 case $host_os in
14253 # For platforms which do not support PIC, -DPIC is meaningless:
14254 *djgpp*)
14255 lt_prog_compiler_pic=
14256 ;;
14257 *)
14258 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14259 ;;
14260 esac
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14262 $as_echo "$lt_prog_compiler_pic" >&6; }
14263
14264
14265
14266
14267
14268
14269 #
14270 # Check to make sure the PIC flag actually works.
14271 #
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
14303 fi
14304 fi
14305 $RM conftest*
14306
14307 fi
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; }
14310
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
14319 fi
14320
14321 fi
14322
14323
14324
14325
14326
14327
14328 #
14329 # Check to make sure the static flag actually works.
14330 #
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
14351 fi
14352 else
14353 lt_cv_prog_compiler_static_works=yes
14354 fi
14355 fi
14356 $RM -r conftest*
14357 LDFLAGS="$save_LDFLAGS"
14358
14359 fi
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; }
14362
14363 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14364 :
14365 else
14366 lt_prog_compiler_static=
14367 fi
14368
14369
14370
14371
14372
14373
14374
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
14386
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
14409 fi
14410 fi
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*
14420
14421 fi
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; }
14424
14425
14426
14427
14428
14429
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
14441
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
14464 fi
14465 fi
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*
14475
14476 fi
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; }
14479
14480
14481
14482
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
14500 fi
14501 else
14502 need_locks=no
14503 fi
14504
14505
14506
14507
14508
14509
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; }
14512
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=
14553
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
14561 fi
14562 ;;
14563 interix*)
14564 # we just hope/assume this is gcc and not c89 (= MSVC++)
14565 with_gnu_ld=yes
14566 ;;
14567 openbsd*)
14568 with_gnu_ld=no
14569 ;;
14570 esac
14571
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}'
14576
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=
14588 fi
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
14597
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
14605
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.
14611
14612 _LT_EOF
14613 fi
14614 ;;
14615
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=''
14622 ;;
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
14627 ;;
14628 esac
14629 ;;
14630
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
14639 fi
14640 ;;
14641
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'
14650
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;
14660 fi~
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
14664 fi
14665 ;;
14666
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'
14680 ;;
14681
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
14688 fi
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'
14698 ;;
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'
14724
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'
14730 fi
14731
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'
14744 fi
14745 ;;
14746 esac
14747 else
14748 ld_shlibs=no
14749 fi
14750 ;;
14751
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'
14759 fi
14760 ;;
14761
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
14766
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.
14773
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
14780 fi
14781 ;;
14782
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
14788
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.
14795
14796 _LT_EOF
14797 ;;
14798 *)
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
14809 fi
14810 ;;
14811 esac
14812 ;;
14813
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
14819 ;;
14820
14821 *)
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
14827 fi
14828 ;;
14829 esac
14830
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=
14836 fi
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
14851 fi
14852 ;;
14853
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'
14868 fi
14869 aix_use_runtimelinking=no
14870
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
14879 fi
14880 done
14881 ;;
14882 esac
14883
14884 exp_sym_flag='-bexport'
14885 no_entry_flag='-bnoentry'
14886 fi
14887
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.
14893
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,'
14900
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
14910 :
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=
14920 fi
14921 ;;
14922 esac
14923 shared_flag='-shared'
14924 if test "$aix_use_runtimelinking" = yes; then
14925 shared_flag="$shared_flag "'${wl}-G'
14926 fi
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'
14938 fi
14939 fi
14940 fi
14941
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. */
14954
14955 int
14956 main ()
14957 {
14958
14959 ;
14960 return 0;
14961 }
14962 _ACEOF
14963 if ac_fn_c_try_link "$LINENO"; then :
14964
14965 lt_aix_libpath_sed='
14966 /Import File Strings/,/^$/ {
14967 /^0/ {
14968 s/^0 *\(.*\)$/\1/
14969 p
14970 }
14971 }'
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"`
14976 fi
14977 fi
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
14981
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. */
14994
14995 int
14996 main ()
14997 {
14998
14999 ;
15000 return 0;
15001 }
15002 _ACEOF
15003 if ac_fn_c_try_link "$LINENO"; then :
15004
15005 lt_aix_libpath_sed='
15006 /Import File Strings/,/^$/ {
15007 /^0/ {
15008 s/^0 *\(.*\)$/\1/
15009 p
15010 }
15011 }'
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"`
15016 fi
15017 fi
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
15021
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'
15032 fi
15033 fi
15034 ;;
15035
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=''
15042 ;;
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
15047 ;;
15048 esac
15049 ;;
15050
15051 bsdi[45]*)
15052 export_dynamic_flag_spec=-rdynamic
15053 ;;
15054
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
15074 ;;
15075
15076 darwin* | rhapsody*)
15077
15078
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}"
15096
15097 else
15098 ld_shlibs=no
15099 fi
15100
15101 ;;
15102
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
15107 ;;
15108
15109 freebsd1*)
15110 ld_shlibs=no
15111 ;;
15112
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
15122 ;;
15123
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
15130 ;;
15131
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
15138 ;;
15139
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'
15145 fi
15146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15147 hardcode_libdir_separator=:
15148 hardcode_direct=yes
15149
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'
15154 ;;
15155
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'
15161 fi
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
15172 fi
15173 ;;
15174
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'
15180 ;;
15181 ia64*)
15182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15183 ;;
15184 *)
15185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15186 ;;
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'
15192 ;;
15193 ia64*)
15194 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15195 ;;
15196 *)
15197 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15198 ;;
15199 esac
15200 fi
15201 if test "$with_gnu_ld" = no; then
15202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15203 hardcode_libdir_separator=:
15204
15205 case $host_cpu in
15206 hppa*64*|ia64*)
15207 hardcode_direct=no
15208 hardcode_shlibpath_var=no
15209 ;;
15210 *)
15211 hardcode_direct=yes
15212 hardcode_direct_absolute=yes
15213 export_dynamic_flag_spec='${wl}-E'
15214
15215 # hardcode_minus_L: Not really in the search PATH,
15216 # but as the default location of the library.
15217 hardcode_minus_L=yes
15218 ;;
15219 esac
15220 fi
15221 ;;
15222
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'
15237
15238 fi
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'
15245 fi
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
15251 ;;
15252
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
15258 fi
15259 hardcode_libdir_flag_spec='-R$libdir'
15260 hardcode_direct=yes
15261 hardcode_shlibpath_var=no
15262 ;;
15263
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
15270 ;;
15271
15272 *nto* | *qnx*)
15273 ;;
15274
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'
15290 ;;
15291 *)
15292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15294 ;;
15295 esac
15296 fi
15297 else
15298 ld_shlibs=no
15299 fi
15300 ;;
15301
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'
15308 ;;
15309
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'
15317 fi
15318 archive_cmds_need_lc='no'
15319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15320 hardcode_libdir_separator=:
15321 ;;
15322
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'
15333
15334 # Both c and cxx compiler support -rpath directly
15335 hardcode_libdir_flag_spec='-rpath $libdir'
15336 fi
15337 archive_cmds_need_lc='no'
15338 hardcode_libdir_separator=:
15339 ;;
15340
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'
15355 ;;
15356 *)
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'
15361 ;;
15362 esac
15363 fi
15364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_shlibpath_var=no
15366 case $host_os in
15367 solaris2.[0-5] | solaris2.[0-5].*) ;;
15368 *)
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'
15377 fi
15378 ;;
15379 esac
15380 link_all_deplibs=yes
15381 ;;
15382
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'
15390 fi
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_direct=yes
15393 hardcode_minus_L=yes
15394 hardcode_shlibpath_var=no
15395 ;;
15396
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???
15402 ;;
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
15409 ;;
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
15413 ;;
15414 esac
15415 runpath_var='LD_RUN_PATH'
15416 hardcode_shlibpath_var=no
15417 ;;
15418
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'
15423 ;;
15424
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
15432 fi
15433 ;;
15434
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'
15440
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'
15447 fi
15448 ;;
15449
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'
15466
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'
15473 fi
15474 ;;
15475
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
15480 ;;
15481
15482 *)
15483 ld_shlibs=no
15484 ;;
15485 esac
15486
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'
15491 ;;
15492 esac
15493 fi
15494 fi
15495
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
15499
15500 with_gnu_ld=$with_gnu_ld
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516 #
15517 # Do we need to explicitly link libc?
15518 #
15519 case "x$archive_cmds_need_lc" in
15520 x|xyes)
15521 # Assume -lc should be added
15522 archive_cmds_need_lc=yes
15523
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.
15528 ;;
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
15540
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
15568 fi
15569 allow_undefined_flag=$lt_save_allow_undefined_flag
15570 else
15571 cat conftest.err 1>&5
15572 fi
15573 $RM conftest*
15574
15575 fi
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
15579 ;;
15580 esac
15581 fi
15582 ;;
15583 esac
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15742 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15743
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"`
15758 fi
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"
15769 fi
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--;
15784 }
15785 }
15786 }
15787 }
15788 if (lt_foo != "") { lt_freq[lt_foo]++; }
15789 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15790 }'`
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"
15794 fi
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
15810
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
15814
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
15820
15821 # AIX 3 has no versioning support, so we append a major version to the name.
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 ;;
15824
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
15845 :
15846 else
15847 can_build_shared=no
15848 fi
15849 ;;
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'
15864 fi
15865 shlibpath_var=LIBPATH
15866 fi
15867 ;;
15868
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}'
15875 ;;
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'
15880 ;;
15881 esac
15882 ;;
15883
15884 beos*)
15885 library_names_spec='${libname}${shared_ext}'
15886 dynamic_linker="$host_os ld.so"
15887 shlibpath_var=LIBRARY_PATH
15888 ;;
15889
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
15902 ;;
15903
15904 cygwin* | mingw* | pw32* | cegcc*)
15905 version_type=windows
15906 shrext_cmds=".dll"
15907 need_version=no
15908 need_lib_prefix=no
15909
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 \$?;
15922 fi'
15923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924 dlpath=$dir/\$dldll~
15925 $RM \$dlpath'
15926 shlibpath_overrides_runpath=yes
15927
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"
15933 ;;
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"`
15948 fi
15949 ;;
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}'
15953 ;;
15954 esac
15955 ;;
15956
15957 *)
15958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15959 ;;
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
15964 ;;
15965
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`'
15976
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'
15979 ;;
15980
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
15988 ;;
15989
15990 freebsd1*)
15991 dynamic_linker=no
15992 ;;
15993
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
16004 fi
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
16011 ;;
16012 freebsd-*)
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16014 need_version=yes
16015 ;;
16016 esac
16017 shlibpath_var=LD_LIBRARY_PATH
16018 case $host_os in
16019 freebsd2*)
16020 shlibpath_overrides_runpath=yes
16021 ;;
16022 freebsd3.[01]* | freebsdelf3.[01]*)
16023 shlibpath_overrides_runpath=yes
16024 hardcode_into_libs=yes
16025 ;;
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
16030 ;;
16031 *) # from 4.6 on, and DragonFly
16032 shlibpath_overrides_runpath=yes
16033 hardcode_into_libs=yes
16034 ;;
16035 esac
16036 ;;
16037
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
16046 ;;
16047
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"
16067 fi
16068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16069 ;;
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
16080 ;;
16081 *)
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'
16088 ;;
16089 esac
16090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16091 postinstall_cmds='chmod 555 $lib'
16092 ;;
16093
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
16104 ;;
16105
16106 irix5* | irix6* | nonstopux*)
16107 case $host_os in
16108 nonstopux*) version_type=nonstopux ;;
16109 *)
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=
16123 ;;
16124 *)
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
16134 ;;
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
16141 ;;
16142
16143 # No shared lib support for Linux oldld, aout, or coff.
16144 linux*oldld* | linux*aout* | linux*coff*)
16145 dynamic_linker=no
16146 ;;
16147
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
16158
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. */
16170
16171 int
16172 main ()
16173 {
16174
16175 ;
16176 return 0;
16177 }
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
16182 fi
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 LDFLAGS=$save_LDFLAGS
16187 libdir=$save_libdir
16188
16189 fi
16190
16191 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16192
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
16197
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"
16202 fi
16203
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'
16211 ;;
16212
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'
16225 fi
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16229 ;;
16230
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
16236 ;;
16237
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'
16248 ;;
16249
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
16266 ;;
16267 *)
16268 shlibpath_overrides_runpath=yes
16269 ;;
16270 esac
16271 else
16272 shlibpath_overrides_runpath=yes
16273 fi
16274 ;;
16275
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
16283 ;;
16284
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"
16294 ;;
16295
16296 rdos*)
16297 dynamic_linker=no
16298 ;;
16299
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'
16311 ;;
16312
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
16321 fi
16322 need_version=yes
16323 ;;
16324
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
16335 ;;
16336 siemens)
16337 need_lib_prefix=no
16338 ;;
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'
16344 ;;
16345 esac
16346 ;;
16347
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
16354 fi
16355 ;;
16356
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"
16373 ;;
16374 esac
16375 fi
16376 sys_lib_dlsearch_path_spec='/usr/lib'
16377 ;;
16378
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
16388 ;;
16389
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
16395 ;;
16396
16397 *)
16398 dynamic_linker=no
16399 ;;
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
16404
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"
16408 fi
16409
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"
16412 fi
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"
16415 fi
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503 { $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
16509
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
16522 fi
16523 else
16524 # We cannot hardcode anything, or else we can only hardcode existing
16525 # directories.
16526 hardcode_action=unsupported
16527 fi
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16529 $as_echo "$hardcode_action" >&6; }
16530
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
16539 fi
16540
16541
16542
16543
16544
16545
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=
16553
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
16559 ;;
16560
16561 mingw* | pw32* | cegcc*)
16562 lt_cv_dlopen="LoadLibrary"
16563 lt_cv_dlopen_libs=
16564 ;;
16565
16566 cygwin*)
16567 lt_cv_dlopen="dlopen"
16568 lt_cv_dlopen_libs=
16569 ;;
16570
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. */
16582
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 ();
16590 int
16591 main ()
16592 {
16593 return dlopen ();
16594 ;
16595 return 0;
16596 }
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
16602 fi
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16606 fi
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
16612
16613 lt_cv_dlopen="dyld"
16614 lt_cv_dlopen_libs=
16615 lt_cv_dlopen_self=yes
16616
16617 fi
16618
16619 ;;
16620
16621 *)
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. */
16635
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 ();
16643 int
16644 main ()
16645 {
16646 return shl_load ();
16647 ;
16648 return 0;
16649 }
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
16655 fi
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16659 fi
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. */
16678
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 ();
16686 int
16687 main ()
16688 {
16689 return dlopen ();
16690 ;
16691 return 0;
16692 }
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
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16702 fi
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. */
16717
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 ();
16725 int
16726 main ()
16727 {
16728 return dlopen ();
16729 ;
16730 return 0;
16731 }
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
16737 fi
16738 rm -f core conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16741 fi
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. */
16756
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 ();
16764 int
16765 main ()
16766 {
16767 return dld_link ();
16768 ;
16769 return 0;
16770 }
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
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16780 fi
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"
16785 fi
16786
16787
16788 fi
16789
16790
16791 fi
16792
16793
16794 fi
16795
16796
16797 fi
16798
16799
16800 fi
16801
16802 ;;
16803 esac
16804
16805 if test "x$lt_cv_dlopen" != xno; then
16806 enable_dlopen=yes
16807 else
16808 enable_dlopen=no
16809 fi
16810
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"
16815
16816 save_LDFLAGS="$LDFLAGS"
16817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16818
16819 save_LIBS="$LIBS"
16820 LIBS="$lt_cv_dlopen_libs $LIBS"
16821
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"
16835
16836 #if HAVE_DLFCN_H
16837 #include <dlfcn.h>
16838 #endif
16839
16840 #include <stdio.h>
16841
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
16851
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
16873
16874 void fnord() { int i=42;}
16875 int main ()
16876 {
16877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16878 int status = $lt_dlunknown;
16879
16880 if (self)
16881 {
16882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16884 /* dlclose (self); */
16885 }
16886 else
16887 puts (dlerror ());
16888
16889 return status;
16890 }
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
16907 fi
16908 fi
16909 rm -fr conftest*
16910
16911
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16914 $as_echo "$lt_cv_dlopen_self" >&6; }
16915
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"
16931
16932 #if HAVE_DLFCN_H
16933 #include <dlfcn.h>
16934 #endif
16935
16936 #include <stdio.h>
16937
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
16947
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
16969
16970 void fnord() { int i=42;}
16971 int main ()
16972 {
16973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16974 int status = $lt_dlunknown;
16975
16976 if (self)
16977 {
16978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16980 /* dlclose (self); */
16981 }
16982 else
16983 puts (dlerror ());
16984
16985 return status;
16986 }
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
17003 fi
17004 fi
17005 rm -fr conftest*
17006
17007
17008 fi
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17010 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17011 fi
17012
17013 CPPFLAGS="$save_CPPFLAGS"
17014 LDFLAGS="$save_LDFLAGS"
17015 LIBS="$save_LIBS"
17016 ;;
17017 esac
17018
17019 case $lt_cv_dlopen_self in
17020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17021 *) enable_dlopen_self=unknown ;;
17022 esac
17023
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
17028 fi
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
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; }
17067 fi
17068 ;;
17069 *)
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17072 ;;
17073 esac
17074 fi
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
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; }
17092
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
17096
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'
17105 fi
17106 ;;
17107
17108 aix[4-9]*)
17109 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17110 test "$enable_shared" = yes && enable_static=no
17111 fi
17112 ;;
17113 esac
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17115 $as_echo "$enable_shared" >&6; }
17116
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; }
17123
17124
17125
17126
17127 fi
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
17133
17134 CC="$lt_save_CC"
17135
17136
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
17142
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
17165
17166 # Source file extension for C++ test sources.
17167 ac_ext=cpp
17168
17169 # Object file extension for compiled C++ test sources.
17170 objext=o
17171 objext_CXX=$objext
17172
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;"
17180
17181 # Code to be used in simple link tests
17182 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17183
17184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17185
17186
17187
17188
17189
17190
17191 # If no C compiler was specified, use CC.
17192 LTCC=${LTCC-"$CC"}
17193
17194 # If no C compiler flags were specified, use CFLAGS.
17195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17196
17197 # Allow CC to be a program name with arguments.
17198 compiler=$CC
17199
17200
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*
17207
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*
17213
17214
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
17226 fi
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
17231 fi
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-%%"`
17245
17246
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=
17254 fi
17255
17256 if test "$GXX" = yes; then
17257 # Set up default GNU C++ configuration
17258
17259
17260
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
17266 fi
17267
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'` ;;
17277 *)
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"
17290 ;;
17291 "")
17292 # If it fails, then pretend we aren't using GCC.
17293 ac_prog=ld
17294 ;;
17295 *)
17296 # If it is relative, then search for the first ld in PATH.
17297 with_gnu_ld=unknown
17298 ;;
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; }
17306 fi
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
17323 ;;
17324 *)
17325 test "$with_gnu_ld" != yes && break
17326 ;;
17327 esac
17328 fi
17329 done
17330 IFS="$lt_save_ifs"
17331 else
17332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17333 fi
17334 fi
17335
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; }
17343 fi
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
17354 ;;
17355 *)
17356 lt_cv_prog_gnu_ld=no
17357 ;;
17358 esac
17359 fi
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
17363
17364
17365
17366
17367
17368
17369
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'
17375
17376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17378
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}'
17383
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=
17390 fi
17391 else
17392 with_gnu_ld=no
17393 wlarc=
17394
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'
17401 fi
17402
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"'
17407
17408 else
17409 GXX=no
17410 with_gnu_ld=no
17411 wlarc=
17412 fi
17413
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
17422 ;;
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
17432
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
17442 ;;
17443 esac
17444 done
17445 ;;
17446 esac
17447
17448 exp_sym_flag='-bexport'
17449 no_entry_flag='-bnoentry'
17450 fi
17451
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.
17457
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,'
17464
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
17474 :
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=
17484 fi
17485 esac
17486 shared_flag='-shared'
17487 if test "$aix_use_runtimelinking" = yes; then
17488 shared_flag="$shared_flag "'${wl}-G'
17489 fi
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'
17501 fi
17502 fi
17503 fi
17504
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. */
17518
17519 int
17520 main ()
17521 {
17522
17523 ;
17524 return 0;
17525 }
17526 _ACEOF
17527 if ac_fn_cxx_try_link "$LINENO"; then :
17528
17529 lt_aix_libpath_sed='
17530 /Import File Strings/,/^$/ {
17531 /^0/ {
17532 s/^0 *\(.*\)$/\1/
17533 p
17534 }
17535 }'
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"`
17540 fi
17541 fi
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
17545
17546 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17547
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. */
17559
17560 int
17561 main ()
17562 {
17563
17564 ;
17565 return 0;
17566 }
17567 _ACEOF
17568 if ac_fn_cxx_try_link "$LINENO"; then :
17569
17570 lt_aix_libpath_sed='
17571 /Import File Strings/,/^$/ {
17572 /^0/ {
17573 s/^0 *\(.*\)$/\1/
17574 p
17575 }
17576 }'
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"`
17581 fi
17582 fi
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
17586
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'
17598 fi
17599 fi
17600 ;;
17601
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
17610 fi
17611 ;;
17612
17613 chorus*)
17614 case $cc_basename in
17615 *)
17616 # FIXME: insert proper C++ library support
17617 ld_shlibs_CXX=no
17618 ;;
17619 esac
17620 ;;
17621
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
17629
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;
17639 fi~
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
17643 fi
17644 ;;
17645 darwin* | rhapsody*)
17646
17647
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}"
17668 fi
17669
17670 else
17671 ld_shlibs_CXX=no
17672 fi
17673
17674 ;;
17675
17676 dgux*)
17677 case $cc_basename in
17678 ec++*)
17679 # FIXME: insert proper C++ library support
17680 ld_shlibs_CXX=no
17681 ;;
17682 ghcx*)
17683 # Green Hills C++ Compiler
17684 # FIXME: insert proper C++ library support
17685 ld_shlibs_CXX=no
17686 ;;
17687 *)
17688 # FIXME: insert proper C++ library support
17689 ld_shlibs_CXX=no
17690 ;;
17691 esac
17692 ;;
17693
17694 freebsd[12]*)
17695 # C++ shared libraries reported to be fairly broken before
17696 # switch to ELF
17697 ld_shlibs_CXX=no
17698 ;;
17699
17700 freebsd-elf*)
17701 archive_cmds_need_lc_CXX=no
17702 ;;
17703
17704 freebsd* | dragonfly*)
17705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17706 # conventions
17707 ld_shlibs_CXX=yes
17708 ;;
17709
17710 gnu*)
17711 ;;
17712
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.
17721
17722 case $cc_basename in
17723 CC*)
17724 # FIXME: insert proper C++ library support
17725 ld_shlibs_CXX=no
17726 ;;
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.
17732 #
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'
17738 ;;
17739 *)
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
17745 fi
17746 ;;
17747 esac
17748 ;;
17749
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=:
17754
17755 case $host_cpu in
17756 hppa*64*|ia64*)
17757 ;;
17758 *)
17759 export_dynamic_flag_spec_CXX='${wl}-E'
17760 ;;
17761 esac
17762 fi
17763 case $host_cpu in
17764 hppa*64*|ia64*)
17765 hardcode_direct_CXX=no
17766 hardcode_shlibpath_var_CXX=no
17767 ;;
17768 *)
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.
17774 ;;
17775 esac
17776
17777 case $cc_basename in
17778 CC*)
17779 # FIXME: insert proper C++ library support
17780 ld_shlibs_CXX=no
17781 ;;
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'
17786 ;;
17787 ia64*)
17788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17789 ;;
17790 *)
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'
17792 ;;
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.
17797 #
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'
17803 ;;
17804 *)
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'
17810 ;;
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'
17813 ;;
17814 *)
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'
17816 ;;
17817 esac
17818 fi
17819 else
17820 # FIXME: insert proper C++ library support
17821 ld_shlibs_CXX=no
17822 fi
17823 ;;
17824 esac
17825 ;;
17826
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'
17840 ;;
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'
17846
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'
17852 ;;
17853 *)
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'
17859 fi
17860 fi
17861 link_all_deplibs_CXX=yes
17862 ;;
17863 esac
17864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_CXX=:
17866 inherit_rpath_CXX=yes
17867 ;;
17868
17869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17870 case $cc_basename in
17871 KCC*)
17872 # Kuck and Associates, Inc. (KAI) C++ Compiler
17873
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.
17882 #
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'
17888
17889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17891
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'
17895 ;;
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'
17906 ;;
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'
17914 ;;
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'
17920 ;;
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'
17942 ;;
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'
17946 ;;
17947 esac
17948
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'
17952 ;;
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'
17957
17958 runpath_var=LD_RUN_PATH
17959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17960 hardcode_libdir_separator_CXX=:
17961
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.
17965 #
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'
17971 ;;
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'
17982 fi
17983 ;;
17984 *)
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
17994
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'
17999
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'
18005 ;;
18006 esac
18007 ;;
18008 esac
18009 ;;
18010
18011 lynxos*)
18012 # FIXME: insert proper C++ library support
18013 ld_shlibs_CXX=no
18014 ;;
18015
18016 m88k*)
18017 # FIXME: insert proper C++ library support
18018 ld_shlibs_CXX=no
18019 ;;
18020
18021 mvs*)
18022 case $cc_basename in
18023 cxx*)
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18026 ;;
18027 *)
18028 # FIXME: insert proper C++ library support
18029 ld_shlibs_CXX=no
18030 ;;
18031 esac
18032 ;;
18033
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
18041 fi
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::"'
18044 ;;
18045
18046 *nto* | *qnx*)
18047 ld_shlibs_CXX=yes
18048 ;;
18049
18050 openbsd2*)
18051 # C++ shared libraries are fairly broken
18052 ld_shlibs_CXX=no
18053 ;;
18054
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'
18066 fi
18067 output_verbose_link_cmd=echo
18068 else
18069 ld_shlibs_CXX=no
18070 fi
18071 ;;
18072
18073 osf3* | osf4* | osf5*)
18074 case $cc_basename in
18075 KCC*)
18076 # Kuck and Associates, Inc. (KAI) C++ Compiler
18077
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'
18082
18083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18084 hardcode_libdir_separator_CXX=:
18085
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
18092 ;;
18093 RCC*)
18094 # Rational C++ 2.4.1
18095 # FIXME: insert proper C++ library support
18096 ld_shlibs_CXX=no
18097 ;;
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'
18104 ;;
18105 *)
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'
18113 ;;
18114 esac
18115
18116 hardcode_libdir_separator_CXX=:
18117
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.
18121 #
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'
18127 ;;
18128 *)
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'
18134 ;;
18135 *)
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'
18137 ;;
18138 esac
18139
18140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18141 hardcode_libdir_separator_CXX=:
18142
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"'
18147
18148 else
18149 # FIXME: insert proper C++ library support
18150 ld_shlibs_CXX=no
18151 fi
18152 ;;
18153 esac
18154 ;;
18155
18156 psos*)
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18159 ;;
18160
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
18167 ;;
18168 lcc*)
18169 # Lucid
18170 # FIXME: insert proper C++ library support
18171 ld_shlibs_CXX=no
18172 ;;
18173 *)
18174 # FIXME: insert proper C++ library support
18175 ld_shlibs_CXX=no
18176 ;;
18177 esac
18178 ;;
18179
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'
18189
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].*) ;;
18194 *)
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'
18199 ;;
18200 esac
18201 link_all_deplibs_CXX=yes
18202
18203 output_verbose_link_cmd='echo'
18204
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'
18210 ;;
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'
18214
18215 # The C++ compiler must be used to create the archive.
18216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18217 ;;
18218 *)
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'
18226
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'
18237
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"'
18242 fi
18243
18244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18245 case $host_os in
18246 solaris2.[0-5] | solaris2.[0-5].*) ;;
18247 *)
18248 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18249 ;;
18250 esac
18251 fi
18252 ;;
18253 esac
18254 ;;
18255
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'
18261
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'
18266 ;;
18267 *)
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'
18270 ;;
18271 esac
18272 ;;
18273
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'
18290
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'
18295 ;;
18296 *)
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'
18299 ;;
18300 esac
18301 ;;
18302
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
18309 ;;
18310 *)
18311 # FIXME: insert proper C++ library support
18312 ld_shlibs_CXX=no
18313 ;;
18314 esac
18315 ;;
18316
18317 vxworks*)
18318 # FIXME: insert proper C++ library support
18319 ld_shlibs_CXX=no
18320 ;;
18321
18322 *)
18323 # FIXME: insert proper C++ library support
18324 ld_shlibs_CXX=no
18325 ;;
18326 esac
18327
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
18331
18332 GCC_CXX="$GXX"
18333 LD_CXX="$LD"
18334
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=
18345
18346 cat > conftest.$ac_ext <<_LT_EOF
18347 class Foo
18348 {
18349 public:
18350 Foo (void) { a = 0; }
18351 private:
18352 int a;
18353 };
18354 _LT_EOF
18355
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.
18363
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
18367
18368 for p in `eval "$output_verbose_link_cmd"`; do
18369 case $p in
18370
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=
18380 fi
18381
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}"
18392 fi
18393 ;;
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}"
18402 fi
18403 fi
18404 ;;
18405
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
18412 fi
18413
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"
18419 fi
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"
18425 fi
18426 fi
18427 ;;
18428
18429 *) ;; # Ignore the rest.
18430
18431 esac
18432 done
18433
18434 # Clean up.
18435 rm -f a.out a.exe
18436 else
18437 echo "libtool.m4: error: problem compiling CXX test program"
18438 fi
18439
18440 $RM -f confest.$objext
18441
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=
18450 ;;
18451
18452 linux*)
18453 case `$CC -V 2>&1 | sed 5q` in
18454 *Sun\ C*)
18455 # Sun C++ 5.9
18456
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
18464 ;;
18465 esac
18466
18467 if test "$solaris_use_stlport4" != yes; then
18468 postdeps_CXX='-library=Cstd -library=Crun'
18469 fi
18470 ;;
18471 esac
18472 ;;
18473
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
18484 ;;
18485 esac
18486
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'
18492 fi
18493 ;;
18494 esac
18495 ;;
18496 esac
18497
18498
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!^ !!'`
18505 fi
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537 lt_prog_compiler_wl_CXX=
18538 lt_prog_compiler_pic_CXX=
18539 lt_prog_compiler_static_CXX=
18540
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; }
18543
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'
18548
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'
18555 fi
18556 ;;
18557
18558 amigaos*)
18559 case $host_cpu in
18560 powerpc)
18561 # see comment about AmigaOS4 .so support
18562 lt_prog_compiler_pic_CXX='-fPIC'
18563 ;;
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'
18569 ;;
18570 esac
18571 ;;
18572
18573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18574 # PIC is the default for these OSes.
18575 ;;
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'
18582 ;;
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'
18587 ;;
18588 *djgpp*)
18589 # DJGPP does not support shared libraries at all
18590 lt_prog_compiler_pic_CXX=
18591 ;;
18592 interix[3-9]*)
18593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18594 # Instead, we relocate shared libraries at runtime.
18595 ;;
18596 sysv4*MP*)
18597 if test -d /usr/nec; then
18598 lt_prog_compiler_pic_CXX=-Kconform_pic
18599 fi
18600 ;;
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*)
18607 ;;
18608 *)
18609 lt_prog_compiler_pic_CXX='-fPIC'
18610 ;;
18611 esac
18612 ;;
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'
18617 ;;
18618 *)
18619 lt_prog_compiler_pic_CXX='-fPIC'
18620 ;;
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'
18631 fi
18632 ;;
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"
18638 ;;
18639 esac
18640 ;;
18641 dgux*)
18642 case $cc_basename in
18643 ec++*)
18644 lt_prog_compiler_pic_CXX='-KPIC'
18645 ;;
18646 ghcx*)
18647 # Green Hills C++ Compiler
18648 lt_prog_compiler_pic_CXX='-pic'
18649 ;;
18650 *)
18651 ;;
18652 esac
18653 ;;
18654 freebsd* | dragonfly*)
18655 # FreeBSD uses GNU C++
18656 ;;
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'
18664 fi
18665 ;;
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
18672 ;;
18673 *)
18674 lt_prog_compiler_pic_CXX='+Z'
18675 ;;
18676 esac
18677 ;;
18678 *)
18679 ;;
18680 esac
18681 ;;
18682 interix*)
18683 # This is c89, which is MS Visual C++ (no shared libs)
18684 # Anyone wants to do a port?
18685 ;;
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.
18692 ;;
18693 *)
18694 ;;
18695 esac
18696 ;;
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'
18703 ;;
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'
18709 ;;
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'
18716 ;;
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'
18722 ;;
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'
18729 ;;
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'
18735 ;;
18736 *)
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 '
18743 ;;
18744 esac
18745 ;;
18746 esac
18747 ;;
18748 lynxos*)
18749 ;;
18750 m88k*)
18751 ;;
18752 mvs*)
18753 case $cc_basename in
18754 cxx*)
18755 lt_prog_compiler_pic_CXX='-W c,exportall'
18756 ;;
18757 *)
18758 ;;
18759 esac
18760 ;;
18761 netbsd*)
18762 ;;
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'
18767 ;;
18768 osf3* | osf4* | osf5*)
18769 case $cc_basename in
18770 KCC*)
18771 lt_prog_compiler_wl_CXX='--backend -Wl,'
18772 ;;
18773 RCC*)
18774 # Rational C++ 2.4.1
18775 lt_prog_compiler_pic_CXX='-pic'
18776 ;;
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'
18784 ;;
18785 *)
18786 ;;
18787 esac
18788 ;;
18789 psos*)
18790 ;;
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 '
18798 ;;
18799 gcx*)
18800 # Green Hills C++ Compiler
18801 lt_prog_compiler_pic_CXX='-PIC'
18802 ;;
18803 *)
18804 ;;
18805 esac
18806 ;;
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'
18813 ;;
18814 lcc*)
18815 # Lucid
18816 lt_prog_compiler_pic_CXX='-pic'
18817 ;;
18818 *)
18819 ;;
18820 esac
18821 ;;
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'
18828 ;;
18829 esac
18830 ;;
18831 tandem*)
18832 case $cc_basename in
18833 NCC*)
18834 # NonStop-UX NCC 3.20
18835 lt_prog_compiler_pic_CXX='-KPIC'
18836 ;;
18837 *)
18838 ;;
18839 esac
18840 ;;
18841 vxworks*)
18842 ;;
18843 *)
18844 lt_prog_compiler_can_build_shared_CXX=no
18845 ;;
18846 esac
18847 fi
18848
18849 case $host_os in
18850 # For platforms which do not support PIC, -DPIC is meaningless:
18851 *djgpp*)
18852 lt_prog_compiler_pic_CXX=
18853 ;;
18854 *)
18855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18856 ;;
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; }
18860
18861
18862
18863 #
18864 # Check to make sure the PIC flag actually works.
18865 #
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
18897 fi
18898 fi
18899 $RM conftest*
18900
18901 fi
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; }
18904
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
18913 fi
18914
18915 fi
18916
18917
18918
18919 #
18920 # Check to make sure the static flag actually works.
18921 #
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
18942 fi
18943 else
18944 lt_cv_prog_compiler_static_works_CXX=yes
18945 fi
18946 fi
18947 $RM -r conftest*
18948 LDFLAGS="$save_LDFLAGS"
18949
18950 fi
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; }
18953
18954 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18955 :
18956 else
18957 lt_prog_compiler_static_CXX=
18958 fi
18959
18960
18961
18962
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
18974
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
18997 fi
18998 fi
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*
19008
19009 fi
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; }
19012
19013
19014
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
19026
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
19049 fi
19050 fi
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*
19060
19061 fi
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; }
19064
19065
19066
19067
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
19085 fi
19086 else
19087 need_locks=no
19088 fi
19089
19090
19091
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; }
19094
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'
19104 fi
19105 ;;
19106 pw32*)
19107 export_symbols_cmds_CXX="$ltdll_cmds"
19108 ;;
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'
19111 ;;
19112 *)
19113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19114 ;;
19115 esac
19116 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19117
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
19121
19122 with_gnu_ld_CXX=$with_gnu_ld
19123
19124
19125
19126
19127
19128
19129 #
19130 # Do we need to explicitly link libc?
19131 #
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
19136
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.
19141 ;;
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
19153
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
19181 fi
19182 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19183 else
19184 cat conftest.err 1>&5
19185 fi
19186 $RM conftest*
19187
19188 fi
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
19192 ;;
19193 esac
19194 fi
19195 ;;
19196 esac
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19262 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19263
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
19279
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
19283
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
19289
19290 # AIX 3 has no versioning support, so we append a major version to the name.
19291 soname_spec='${libname}${release}${shared_ext}$major'
19292 ;;
19293
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
19314 :
19315 else
19316 can_build_shared=no
19317 fi
19318 ;;
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'
19333 fi
19334 shlibpath_var=LIBPATH
19335 fi
19336 ;;
19337
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}'
19344 ;;
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'
19349 ;;
19350 esac
19351 ;;
19352
19353 beos*)
19354 library_names_spec='${libname}${shared_ext}'
19355 dynamic_linker="$host_os ld.so"
19356 shlibpath_var=LIBRARY_PATH
19357 ;;
19358
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
19371 ;;
19372
19373 cygwin* | mingw* | pw32* | cegcc*)
19374 version_type=windows
19375 shrext_cmds=".dll"
19376 need_version=no
19377 need_lib_prefix=no
19378
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 \$?;
19391 fi'
19392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19393 dlpath=$dir/\$dldll~
19394 $RM \$dlpath'
19395 shlibpath_overrides_runpath=yes
19396
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"
19402 ;;
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"`
19417 fi
19418 ;;
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}'
19422 ;;
19423 esac
19424 ;;
19425
19426 *)
19427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19428 ;;
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
19433 ;;
19434
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`'
19445
19446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19447 ;;
19448
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
19456 ;;
19457
19458 freebsd1*)
19459 dynamic_linker=no
19460 ;;
19461
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
19472 fi
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
19479 ;;
19480 freebsd-*)
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19482 need_version=yes
19483 ;;
19484 esac
19485 shlibpath_var=LD_LIBRARY_PATH
19486 case $host_os in
19487 freebsd2*)
19488 shlibpath_overrides_runpath=yes
19489 ;;
19490 freebsd3.[01]* | freebsdelf3.[01]*)
19491 shlibpath_overrides_runpath=yes
19492 hardcode_into_libs=yes
19493 ;;
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
19498 ;;
19499 *) # from 4.6 on, and DragonFly
19500 shlibpath_overrides_runpath=yes
19501 hardcode_into_libs=yes
19502 ;;
19503 esac
19504 ;;
19505
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
19514 ;;
19515
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"
19535 fi
19536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19537 ;;
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
19548 ;;
19549 *)
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'
19556 ;;
19557 esac
19558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19559 postinstall_cmds='chmod 555 $lib'
19560 ;;
19561
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
19572 ;;
19573
19574 irix5* | irix6* | nonstopux*)
19575 case $host_os in
19576 nonstopux*) version_type=nonstopux ;;
19577 *)
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=
19591 ;;
19592 *)
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
19602 ;;
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
19609 ;;
19610
19611 # No shared lib support for Linux oldld, aout, or coff.
19612 linux*oldld* | linux*aout* | linux*coff*)
19613 dynamic_linker=no
19614 ;;
19615
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
19626
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. */
19638
19639 int
19640 main ()
19641 {
19642
19643 ;
19644 return 0;
19645 }
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
19650 fi
19651 fi
19652 rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LDFLAGS=$save_LDFLAGS
19655 libdir=$save_libdir
19656
19657 fi
19658
19659 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19660
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
19665
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"
19670 fi
19671
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'
19679 ;;
19680
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'
19693 fi
19694 shlibpath_var=LD_LIBRARY_PATH
19695 shlibpath_overrides_runpath=yes
19696 hardcode_into_libs=yes
19697 ;;
19698
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
19704 ;;
19705
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'
19716 ;;
19717
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
19734 ;;
19735 *)
19736 shlibpath_overrides_runpath=yes
19737 ;;
19738 esac
19739 else
19740 shlibpath_overrides_runpath=yes
19741 fi
19742 ;;
19743
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
19751 ;;
19752
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"
19762 ;;
19763
19764 rdos*)
19765 dynamic_linker=no
19766 ;;
19767
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'
19779 ;;
19780
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
19789 fi
19790 need_version=yes
19791 ;;
19792
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
19803 ;;
19804 siemens)
19805 need_lib_prefix=no
19806 ;;
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'
19812 ;;
19813 esac
19814 ;;
19815
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
19822 fi
19823 ;;
19824
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"
19841 ;;
19842 esac
19843 fi
19844 sys_lib_dlsearch_path_spec='/usr/lib'
19845 ;;
19846
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
19856 ;;
19857
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
19863 ;;
19864
19865 *)
19866 dynamic_linker=no
19867 ;;
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
19872
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"
19876 fi
19877
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"
19880 fi
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"
19883 fi
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
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
19926
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
19939 fi
19940 else
19941 # We cannot hardcode anything, or else we can only hardcode existing
19942 # directories.
19943 hardcode_action_CXX=unsupported
19944 fi
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19946 $as_echo "$hardcode_action_CXX" >&6; }
19947
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
19956 fi
19957
19958
19959
19960
19961
19962
19963
19964 fi # test -n "$compiler"
19965
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
19976
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
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998 # Only expand once:
19999
20000
20001
20002
20003
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.
20007 #
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
20014
20015 if test "${gcc_cv_as+set}" = set; then :
20016
20017 else
20018
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.
20041 ;;
20042 *)
20043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20044 for as_dir in $PATH
20045 do
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
20053 fi
20054 done
20055 done
20056 IFS=$as_save_IFS
20057
20058 ;;
20059 esac
20060 fi
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; }
20068 fi
20069
20070
20071 fi
20072 fi
20073
20074 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20075
20076 case "$ORIGINAL_AS_FOR_TARGET" in
20077 ./as | ./as$build_exeext) ;;
20078 *) ac_config_files="$ac_config_files as:exec-tool.in"
20079 ;;
20080 esac
20081
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
20099 fi
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`
20110
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
20117 fi
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
20122 fi
20123
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.
20127 #
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
20135
20136 if test "${gcc_cv_ld+set}" = set; then :
20137
20138 else
20139
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.
20162 ;;
20163 *)
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20166 do
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
20174 fi
20175 done
20176 done
20177 IFS=$as_save_IFS
20178
20179 ;;
20180 esac
20181 fi
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; }
20189 fi
20190
20191
20192 fi
20193 fi
20194
20195 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20196
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"
20200 ;;
20201 esac
20202
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
20217 fi
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
20219 do
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
20223 fi
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
20231 fi
20232
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 :
20236
20237 else
20238
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.
20258 ;;
20259 *)
20260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20262 do
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
20270 fi
20271 done
20272 done
20273 IFS=$as_save_IFS
20274
20275 ;;
20276 esac
20277 fi
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; }
20285 fi
20286
20287
20288 fi
20289 fi
20290
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
20302 fi
20303
20304 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20305
20306 case "$ORIGINAL_NM_FOR_TARGET" in
20307 ./nm | ./nm$build_exeext) ;;
20308 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20309 ;;
20310 esac
20311
20312
20313 # Figure out what objdump we will be using.
20314 if test "${gcc_cv_objdump+set}" = set; then :
20315
20316 else
20317
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.
20338 ;;
20339 *)
20340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341 for as_dir in $PATH
20342 do
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
20350 fi
20351 done
20352 done
20353 IFS=$as_save_IFS
20354
20355 ;;
20356 esac
20357 fi
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; }
20365 fi
20366
20367
20368 fi
20369 fi
20370
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; }
20383 fi
20384
20385 # Figure out what readelf we will be using.
20386 if test "${gcc_cv_readelf+set}" = set; then :
20387
20388 else
20389
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.
20408 ;;
20409 *)
20410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20411 for as_dir in $PATH
20412 do
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
20420 fi
20421 done
20422 done
20423 IFS=$as_save_IFS
20424
20425 ;;
20426 esac
20427 fi
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; }
20435 fi
20436
20437
20438 fi
20439 fi
20440
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; }
20453 fi
20454
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
20465 fi
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
20480 fi
20481 rm -f conftest.o conftest.s
20482 fi
20483 fi
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
20487
20488 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20489
20490 fi
20491
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
20501 fi
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
20515 fi
20516 rm -f conftest.o conftest.s
20517 fi
20518 fi
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
20522
20523 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20524
20525 fi
20526
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
20536 fi
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
20550 fi
20551 rm -f conftest.o conftest.s
20552 fi
20553 fi
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
20557
20558 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20559
20560 fi
20561
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
20572 fi
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
20591 fi
20592 rm -f conftest.nm1 conftest.nm2
20593 fi
20594 else
20595 echo "configure: failed program was" >&5
20596 cat conftest.s >&5
20597 fi
20598 rm -f conftest.o conftest.s
20599 fi
20600 fi
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
20604
20605 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
20606
20607 fi
20608
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
20618 fi
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
20632 fi
20633 rm -f conftest.o conftest.s
20634 fi
20635 fi
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
20639
20640 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
20641
20642 fi
20643
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
20653 fi
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
20667 fi
20668 rm -f conftest.o conftest.s
20669 fi
20670 fi
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
20674
20675 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
20676
20677 fi
20678
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
20688 fi
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
20703 fi
20704 rm -f conftest.o conftest.s
20705 fi
20706 fi
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
20710
20711 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
20712
20713 fi
20714
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
20732 fi
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
20747 fi
20748 rm -f conftest.o conftest.s
20749 fi
20750 fi
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
20752 $as_echo "$gcc_cv_as_hidden" >&6; }
20753
20754
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
20765 fi
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
20791 fi
20792 fi
20793 fi
20794 else
20795 case "${target}" in
20796 hppa64*-*-hpux* | ia64*-*-hpux*)
20797 gcc_cv_ld_hidden=yes
20798 ;;
20799 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
20800 gcc_cv_ld_hidden=yes
20801 ;;
20802 *)
20803 gcc_cv_ld_hidden=no
20804 ;;
20805 esac
20806 fi
20807 fi
20808 fi
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
20812
20813
20814 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20815 libgcc_visibility=yes
20816
20817 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
20818
20819 fi
20820
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
20828 fi
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
20847 fi
20848 fi
20849 fi
20850 rm -f conftest.* conftest[123].*
20851 fi
20852 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
20853
20854 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
20855
20856 fi
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; }
20859
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
20871 fi
20872 elif test x$gcc_cv_as != x; then
20873 echo ' .data
20874 .uleb128 L2 - L1
20875 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
20900 fi
20901 fi
20902 else
20903 echo "configure: failed program was" >&5
20904 cat conftest.s >&5
20905 fi
20906 rm -f conftest.o conftest.s
20907 fi
20908 fi
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
20912
20913 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
20914
20915 fi
20916
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
20951 fi
20952 else
20953 # no objdump, err on the side of caution
20954 gcc_cv_as_cfi_directive=no
20955 fi
20956 else
20957 gcc_cv_as_cfi_directive=yes
20958 fi
20959 ;;
20960 *-*-*)
20961 gcc_cv_as_cfi_directive=yes
20962 ;;
20963 esac
20964 else
20965 echo "configure: failed program was" >&5
20966 cat conftest.s >&5
20967 fi
20968 rm -f conftest.o conftest.s
20969 fi
20970 fi
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
20972 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
20973
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
20995
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
20999 fi
21000
21001 else
21002 echo "configure: failed program was" >&5
21003 cat conftest.s >&5
21004 fi
21005 rm -f conftest.o conftest.s
21006 fi
21007 fi
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; }
21010
21011 else
21012 # no readelf, err on the side of caution
21013 gcc_cv_as_cfi_advance_working=no
21014 fi
21015
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
21020
21021
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
21044 fi
21045 rm -f conftest.o conftest.s
21046 fi
21047 fi
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; }
21050
21051
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
21056
21057
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
21070 fi
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
21115 EOF
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
21120 EOF
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
21143 fi
21144 else
21145 echo "configure: failed program was" >&5
21146 cat conftest.s >&5
21147 fi
21148 rm -f conftest.o conftest.s
21149 fi
21150 fi
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21152 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21153
21154
21155 if test $gcc_cv_as_eh_frame = buggy; then
21156
21157 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21158
21159 fi
21160
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
21171 fi
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
21185 fi
21186 rm -f conftest.o conftest.s
21187 fi
21188 fi
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21190 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21191
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
21203 fi
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
21217 fi
21218 rm -f conftest.o conftest.s
21219 fi
21220 fi
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21222 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21223
21224 fi
21225
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
21229
21230
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
21241 fi
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
21255 fi
21256 rm -f conftest.o conftest.s
21257 fi
21258 fi
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21260 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21261
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
21275 fi
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
21289 fi
21290 rm -f conftest.o conftest.s
21291 fi
21292 fi
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; }
21295
21296 fi
21297 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21298 comdat_group=yes
21299 if test 0"$ld_date" -lt 20050308; then
21300 if test -n "$ld_date"; then
21301 # If there was date string, but was earlier than 2005-03-08, fail
21302 comdat_group=no
21303 elif test "$ld_vers_major" -lt 2; then
21304 comdat_group=no
21305 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21306 comdat_group=no
21307 fi
21308 fi
21309 else
21310 # assume linkers other than GNU ld don't support COMDAT group
21311 comdat_group=no
21312 fi
21313 if test $comdat_group = no; then
21314 gcc_cv_as_comdat_group=no
21315 gcc_cv_as_comdat_group_percent=no
21316 fi
21317
21318 cat >>confdefs.h <<_ACEOF
21319 #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`
21320 _ACEOF
21321
21322
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21324 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21325 if test "${gcc_cv_as_discriminator+set}" = set; then :
21326 $as_echo_n "(cached) " >&6
21327 else
21328 gcc_cv_as_discriminator=no
21329 if test $in_tree_gas = yes; then
21330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21331 then gcc_cv_as_discriminator=yes
21332 fi
21333 elif test x$gcc_cv_as != x; then
21334 echo ' .text
21335 .file 1 "conf.c"
21336 .loc 1 1 0 discriminator 1' > conftest.s
21337 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21342 test $ac_status = 0; }; }
21343 then
21344 gcc_cv_as_discriminator=yes
21345 else
21346 echo "configure: failed program was" >&5
21347 cat conftest.s >&5
21348 fi
21349 rm -f conftest.o conftest.s
21350 fi
21351 fi
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21353 $as_echo "$gcc_cv_as_discriminator" >&6; }
21354 if test $gcc_cv_as_discriminator = yes; then
21355
21356 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21357
21358 fi
21359
21360 # Thread-local storage - the check is heavily parameterized.
21361 conftest_s=
21362 tls_first_major=
21363 tls_first_minor=
21364 tls_as_opt=
21365 case "$target" in
21366 alpha*-*-*)
21367 conftest_s='
21368 .section ".tdata","awT",@progbits
21369 foo: .long 25
21370 .text
21371 ldq $27,__tls_get_addr($29) !literal!1
21372 lda $16,foo($29) !tlsgd!1
21373 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21374 ldq $27,__tls_get_addr($29) !literal!2
21375 lda $16,foo($29) !tlsldm!2
21376 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21377 ldq $1,foo($29) !gotdtprel
21378 ldah $2,foo($29) !dtprelhi
21379 lda $3,foo($2) !dtprello
21380 lda $4,foo($29) !dtprel
21381 ldq $1,foo($29) !gottprel
21382 ldah $2,foo($29) !tprelhi
21383 lda $3,foo($2) !tprello
21384 lda $4,foo($29) !tprel'
21385 tls_first_major=2
21386 tls_first_minor=13
21387 tls_as_opt=--fatal-warnings
21388 ;;
21389 cris-*-*|crisv32-*-*)
21390 conftest_s='
21391 .section ".tdata","awT",@progbits
21392 x: .long 25
21393 .text
21394 move.d x:IE,$r10
21395 nop'
21396 tls_first_major=2
21397 tls_first_minor=20
21398 tls_as_opt=--fatal-warnings
21399 ;;
21400 frv*-*-*)
21401 conftest_s='
21402 .section ".tdata","awT",@progbits
21403 x: .long 25
21404 .text
21405 call #gettlsoff(x)'
21406 tls_first_major=2
21407 tls_first_minor=14
21408 ;;
21409 hppa*-*-linux*)
21410 conftest_s='
21411 t1: .reg %r20
21412 t2: .reg %r21
21413 gp: .reg %r19
21414 .section ".tdata","awT",@progbits
21415 foo: .long 25
21416 .text
21417 .align 4
21418 addil LT%foo-$tls_gdidx$,gp
21419 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21420 b __tls_get_addr
21421 nop
21422 addil LT%foo-$tls_ldidx$,gp
21423 b __tls_get_addr
21424 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21425 addil LR%foo-$tls_dtpoff$,%ret0
21426 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21427 mfctl %cr27,%t1
21428 addil LT%foo-$tls_ieoff$,gp
21429 ldw RT%foo-$tls_ieoff$(%r1),%t2
21430 add %t1,%t2,%t3
21431 mfctl %cr27,%t1
21432 addil LR%foo-$tls_leoff$,%t1
21433 ldo RR%foo-$tls_leoff$(%r1),%t2'
21434 tls_first_major=2
21435 tls_first_minor=15
21436 tls_as_opt=--fatal-warnings
21437 ;;
21438 arm*-*-*)
21439 conftest_s='
21440 .section ".tdata","awT",%progbits
21441 foo: .long 25
21442 .text
21443 .word foo(gottpoff)
21444 .word foo(tpoff)
21445 .word foo(tlsgd)
21446 .word foo(tlsldm)
21447 .word foo(tlsldo)'
21448 tls_first_major=2
21449 tls_first_minor=17
21450 ;;
21451 i[34567]86-*-*)
21452 conftest_s='
21453 .section ".tdata","awT",@progbits
21454 foo: .long 25
21455 .text
21456 movl %gs:0, %eax
21457 leal foo@TLSGD(,%ebx,1), %eax
21458 leal foo@TLSLDM(%ebx), %eax
21459 leal foo@DTPOFF(%eax), %edx
21460 movl foo@GOTTPOFF(%ebx), %eax
21461 subl foo@GOTTPOFF(%ebx), %eax
21462 addl foo@GOTNTPOFF(%ebx), %eax
21463 movl foo@INDNTPOFF, %eax
21464 movl $foo@TPOFF, %eax
21465 subl $foo@TPOFF, %eax
21466 leal foo@NTPOFF(%ecx), %eax'
21467 tls_first_major=2
21468 tls_first_minor=14
21469 tls_as_opt=--fatal-warnings
21470 ;;
21471 x86_64-*-*)
21472 conftest_s='
21473 .section ".tdata","awT",@progbits
21474 foo: .long 25
21475 .text
21476 movq %fs:0, %rax
21477 leaq foo@TLSGD(%rip), %rdi
21478 leaq foo@TLSLD(%rip), %rdi
21479 leaq foo@DTPOFF(%rax), %rdx
21480 movq foo@GOTTPOFF(%rip), %rax
21481 movq $foo@TPOFF, %rax'
21482 tls_first_major=2
21483 tls_first_minor=14
21484 tls_as_opt=--fatal-warnings
21485 ;;
21486 ia64-*-*)
21487 conftest_s='
21488 .section ".tdata","awT",@progbits
21489 foo: data8 25
21490 .text
21491 addl r16 = @ltoff(@dtpmod(foo#)), gp
21492 addl r17 = @ltoff(@dtprel(foo#)), gp
21493 addl r18 = @ltoff(@tprel(foo#)), gp
21494 addl r19 = @dtprel(foo#), gp
21495 adds r21 = @dtprel(foo#), r13
21496 movl r23 = @dtprel(foo#)
21497 addl r20 = @tprel(foo#), gp
21498 adds r22 = @tprel(foo#), r13
21499 movl r24 = @tprel(foo#)'
21500 tls_first_major=2
21501 tls_first_minor=13
21502 tls_as_opt=--fatal-warnings
21503 ;;
21504 mips*-*-*)
21505 conftest_s='
21506 .section .tdata,"awT",@progbits
21507 x:
21508 .word 2
21509 .text
21510 addiu $4, $28, %tlsgd(x)
21511 addiu $4, $28, %tlsldm(x)
21512 lui $4, %dtprel_hi(x)
21513 addiu $4, $4, %dtprel_lo(x)
21514 lw $4, %gottprel(x)($28)
21515 lui $4, %tprel_hi(x)
21516 addiu $4, $4, %tprel_lo(x)'
21517 tls_first_major=2
21518 tls_first_minor=16
21519 tls_as_opt='-32 --fatal-warnings'
21520 ;;
21521 m68k-*-*)
21522 conftest_s='
21523 .section .tdata,"awT",@progbits
21524 x:
21525 .word 2
21526 .text
21527 foo:
21528 move.l x@TLSGD(%a5),%a0
21529 move.l x@TLSLDM(%a5),%a0
21530 move.l x@TLSLDO(%a5),%a0
21531 move.l x@TLSIE(%a5),%a0
21532 move.l x@TLSLE(%a5),%a0'
21533 tls_first_major=2
21534 tls_first_minor=19
21535 tls_as_opt='--fatal-warnings'
21536 ;;
21537 powerpc-*-*)
21538 conftest_s='
21539 .section ".tdata","awT",@progbits
21540 .align 2
21541 ld0: .space 4
21542 ld1: .space 4
21543 x1: .space 4
21544 x2: .space 4
21545 x3: .space 4
21546 .text
21547 addi 3,31,ld0@got@tlsgd
21548 bl __tls_get_addr
21549 addi 3,31,x1@got@tlsld
21550 bl __tls_get_addr
21551 addi 9,3,x1@dtprel
21552 addis 9,3,x2@dtprel@ha
21553 addi 9,9,x2@dtprel@l
21554 lwz 9,x3@got@tprel(31)
21555 add 9,9,x@tls
21556 addi 9,2,x1@tprel
21557 addis 9,2,x2@tprel@ha
21558 addi 9,9,x2@tprel@l'
21559 tls_first_major=2
21560 tls_first_minor=14
21561 tls_as_opt="-a32 --fatal-warnings"
21562 ;;
21563 powerpc64-*-*)
21564 conftest_s='
21565 .section ".tdata","awT",@progbits
21566 .align 3
21567 ld0: .space 8
21568 ld1: .space 8
21569 x1: .space 8
21570 x2: .space 8
21571 x3: .space 8
21572 .text
21573 addi 3,2,ld0@got@tlsgd
21574 bl .__tls_get_addr
21575 nop
21576 addi 3,2,ld1@toc
21577 bl .__tls_get_addr
21578 nop
21579 addi 3,2,x1@got@tlsld
21580 bl .__tls_get_addr
21581 nop
21582 addi 9,3,x1@dtprel
21583 bl .__tls_get_addr
21584 nop
21585 addis 9,3,x2@dtprel@ha
21586 addi 9,9,x2@dtprel@l
21587 bl .__tls_get_addr
21588 nop
21589 ld 9,x3@got@dtprel(2)
21590 add 9,9,3
21591 bl .__tls_get_addr
21592 nop'
21593 tls_first_major=2
21594 tls_first_minor=14
21595 tls_as_opt="-a64 --fatal-warnings"
21596 ;;
21597 s390-*-*)
21598 conftest_s='
21599 .section ".tdata","awT",@progbits
21600 foo: .long 25
21601 .text
21602 .long foo@TLSGD
21603 .long foo@TLSLDM
21604 .long foo@DTPOFF
21605 .long foo@NTPOFF
21606 .long foo@GOTNTPOFF
21607 .long foo@INDNTPOFF
21608 l %r1,foo@GOTNTPOFF(%r12)
21609 l %r1,0(%r1):tls_load:foo
21610 bas %r14,0(%r1,%r13):tls_gdcall:foo
21611 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21612 tls_first_major=2
21613 tls_first_minor=14
21614 tls_as_opt="-m31 --fatal-warnings"
21615 ;;
21616 s390x-*-*)
21617 conftest_s='
21618 .section ".tdata","awT",@progbits
21619 foo: .long 25
21620 .text
21621 .quad foo@TLSGD
21622 .quad foo@TLSLDM
21623 .quad foo@DTPOFF
21624 .quad foo@NTPOFF
21625 .quad foo@GOTNTPOFF
21626 lg %r1,foo@GOTNTPOFF(%r12)
21627 larl %r1,foo@INDNTPOFF
21628 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21629 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21630 tls_first_major=2
21631 tls_first_minor=14
21632 tls_as_opt="-m64 -Aesame --fatal-warnings"
21633 ;;
21634 sh-*-* | sh[34]-*-*)
21635 conftest_s='
21636 .section ".tdata","awT",@progbits
21637 foo: .long 25
21638 .text
21639 .long foo@TLSGD
21640 .long foo@TLSLDM
21641 .long foo@DTPOFF
21642 .long foo@GOTTPOFF
21643 .long foo@TPOFF'
21644 tls_first_major=2
21645 tls_first_minor=13
21646 tls_as_opt=--fatal-warnings
21647 ;;
21648 sparc*-*-*)
21649 case "$target" in
21650 sparc*-sun-solaris2.[56789]*)
21651 # TLS was introduced in the Solaris 9 4/04 release but
21652 # we do not enable it by default on Solaris 9 either.
21653 if test "x$enable_tls" = xyes ; then
21654 on_solaris=yes
21655 else
21656 enable_tls=no;
21657 fi
21658 ;;
21659 sparc*-sun-solaris2.*)
21660 on_solaris=yes
21661 ;;
21662 *)
21663 on_solaris=no
21664 ;;
21665 esac
21666 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21667 conftest_s='
21668 .section ".tdata",#alloc,#write,#tls
21669 foo: .long 25
21670 .text
21671 sethi %tgd_hi22(foo), %o0
21672 add %o0, %tgd_lo10(foo), %o1
21673 add %l7, %o1, %o0, %tgd_add(foo)
21674 call __tls_get_addr, %tgd_call(foo)
21675 sethi %tldm_hi22(foo), %l1
21676 add %l1, %tldm_lo10(foo), %l2
21677 add %l7, %l2, %o0, %tldm_add(foo)
21678 call __tls_get_addr, %tldm_call(foo)
21679 sethi %tldo_hix22(foo), %l3
21680 xor %l3, %tldo_lox10(foo), %l4
21681 add %o0, %l4, %l5, %tldo_add(foo)
21682 sethi %tie_hi22(foo), %o3
21683 add %o3, %tie_lo10(foo), %o3
21684 ld [%l7 + %o3], %o2, %tie_ld(foo)
21685 add %g7, %o2, %o4, %tie_add(foo)
21686 sethi %tle_hix22(foo), %l1
21687 xor %l1, %tle_lox10(foo), %o5
21688 ld [%g7 + %o5], %o1'
21689 tls_first_major=0
21690 tls_first_minor=0
21691 else
21692 conftest_s='
21693 .section ".tdata","awT",@progbits
21694 foo: .long 25
21695 .text
21696 sethi %tgd_hi22(foo), %o0
21697 add %o0, %tgd_lo10(foo), %o1
21698 add %l7, %o1, %o0, %tgd_add(foo)
21699 call __tls_get_addr, %tgd_call(foo)
21700 sethi %tldm_hi22(foo), %l1
21701 add %l1, %tldm_lo10(foo), %l2
21702 add %l7, %l2, %o0, %tldm_add(foo)
21703 call __tls_get_addr, %tldm_call(foo)
21704 sethi %tldo_hix22(foo), %l3
21705 xor %l3, %tldo_lox10(foo), %l4
21706 add %o0, %l4, %l5, %tldo_add(foo)
21707 sethi %tie_hi22(foo), %o3
21708 add %o3, %tie_lo10(foo), %o3
21709 ld [%l7 + %o3], %o2, %tie_ld(foo)
21710 add %g7, %o2, %o4, %tie_add(foo)
21711 sethi %tle_hix22(foo), %l1
21712 xor %l1, %tle_lox10(foo), %o5
21713 ld [%g7 + %o5], %o1'
21714 tls_first_major=2
21715 tls_first_minor=14
21716 tls_as_opt="-32 --fatal-warnings"
21717 fi
21718 ;;
21719 xtensa*-*-*)
21720 conftest_s='
21721 .section ".tdata","awT",@progbits
21722 foo: .long 25
21723 .text
21724 movi a8, foo@TLSFUNC
21725 movi a10, foo@TLSARG
21726 callx8.tls a8, foo@TLSCALL'
21727 tls_first_major=2
21728 tls_first_minor=19
21729 ;;
21730 esac
21731 set_have_as_tls=no
21732 if test "x$enable_tls" = xno ; then
21733 : # TLS explicitly disabled.
21734 elif test "x$enable_tls" = xyes ; then
21735 set_have_as_tls=yes # TLS explicitly enabled.
21736 elif test -z "$tls_first_major"; then
21737 : # If we don't have a check, assume no support.
21738 else
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
21740 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
21741 if test "${gcc_cv_as_tls+set}" = set; then :
21742 $as_echo_n "(cached) " >&6
21743 else
21744 gcc_cv_as_tls=no
21745 if test $in_tree_gas = yes; then
21746 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21747 then gcc_cv_as_tls=yes
21748 fi
21749 elif test x$gcc_cv_as != x; then
21750 echo "$conftest_s" > conftest.s
21751 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21753 (eval $ac_try) 2>&5
21754 ac_status=$?
21755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21756 test $ac_status = 0; }; }
21757 then
21758 gcc_cv_as_tls=yes
21759 else
21760 echo "configure: failed program was" >&5
21761 cat conftest.s >&5
21762 fi
21763 rm -f conftest.o conftest.s
21764 fi
21765 fi
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
21767 $as_echo "$gcc_cv_as_tls" >&6; }
21768 if test $gcc_cv_as_tls = yes; then
21769 set_have_as_tls=yes
21770 fi
21771 fi
21772 if test $set_have_as_tls = yes ; then
21773
21774 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
21775
21776 fi
21777
21778 # Target-specific assembler checks.
21779
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
21781 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
21782 gcc_cv_ld_static_dynamic=no
21783 if test $in_tree_ld = yes ; then
21784 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
21785 gcc_cv_ld_static_dynamic=yes
21786 fi
21787 elif test x$gcc_cv_ld != x; then
21788 # Check if linker supports -Bstatic/-Bdynamic option
21789 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21790 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21791 gcc_cv_ld_static_dynamic=yes
21792 fi
21793 fi
21794 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21795
21796 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
21797
21798 fi
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
21800 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
21801
21802 if test x"$demangler_in_ld" = xyes; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
21804 $as_echo_n "checking linker --demangle support... " >&6; }
21805 gcc_cv_ld_demangle=no
21806 if test $in_tree_ld = yes; then
21807 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 \
21808 gcc_cv_ld_demangle=yes
21809 fi
21810 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21811 # Check if the GNU linker supports --demangle option
21812 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21813 gcc_cv_ld_demangle=yes
21814 fi
21815 fi
21816 if test x"$gcc_cv_ld_demangle" = xyes; then
21817
21818 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
21819
21820 fi
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
21822 $as_echo "$gcc_cv_ld_demangle" >&6; }
21823 fi
21824
21825 case "$target" in
21826 # All TARGET_ABI_OSF targets.
21827 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
21829 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
21830 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
21831 $as_echo_n "(cached) " >&6
21832 else
21833 gcc_cv_as_alpha_explicit_relocs=no
21834 if test $in_tree_gas = yes; then
21835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21836 then gcc_cv_as_alpha_explicit_relocs=yes
21837 fi
21838 elif test x$gcc_cv_as != x; then
21839 echo ' .set nomacro
21840 .text
21841 extbl $3, $2, $3 !lituse_bytoff!1
21842 ldq $2, a($29) !literal!1
21843 ldq $4, b($29) !literal!2
21844 ldq_u $3, 0($2) !lituse_base!1
21845 ldq $27, f($29) !literal!5
21846 jsr $26, ($27), f !lituse_jsr!5
21847 ldah $29, 0($26) !gpdisp!3
21848 lda $0, c($29) !gprel
21849 ldah $1, d($29) !gprelhigh
21850 lda $1, d($1) !gprellow
21851 lda $29, 0($29) !gpdisp!3' > conftest.s
21852 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21854 (eval $ac_try) 2>&5
21855 ac_status=$?
21856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21857 test $ac_status = 0; }; }
21858 then
21859 gcc_cv_as_alpha_explicit_relocs=yes
21860 else
21861 echo "configure: failed program was" >&5
21862 cat conftest.s >&5
21863 fi
21864 rm -f conftest.o conftest.s
21865 fi
21866 fi
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21868 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
21869 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21870
21871 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
21872
21873 fi
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
21875 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
21876 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
21878 else
21879 gcc_cv_as_alpha_jsrdirect_relocs=no
21880 if test $in_tree_gas = yes; then
21881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21882 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21883 fi
21884 elif test x$gcc_cv_as != x; then
21885 echo ' .set nomacro
21886 .text
21887 ldq $27, a($29) !literal!1
21888 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21889 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21894 test $ac_status = 0; }; }
21895 then
21896 gcc_cv_as_alpha_jsrdirect_relocs=yes
21897 else
21898 echo "configure: failed program was" >&5
21899 cat conftest.s >&5
21900 fi
21901 rm -f conftest.o conftest.s
21902 fi
21903 fi
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21905 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
21906 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21907
21908 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
21909
21910 fi
21911 ;;
21912
21913 cris-*-*)
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
21915 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
21916 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21918 else
21919 gcc_cv_as_cris_no_mul_bug=no
21920 if test $in_tree_gas = yes; then
21921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21922 then gcc_cv_as_cris_no_mul_bug=yes
21923 fi
21924 elif test x$gcc_cv_as != x; then
21925 echo '.text' > conftest.s
21926 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21928 (eval $ac_try) 2>&5
21929 ac_status=$?
21930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931 test $ac_status = 0; }; }
21932 then
21933 gcc_cv_as_cris_no_mul_bug=yes
21934 else
21935 echo "configure: failed program was" >&5
21936 cat conftest.s >&5
21937 fi
21938 rm -f conftest.o conftest.s
21939 fi
21940 fi
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
21942 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
21943 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21944
21945 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
21946
21947 fi
21948 ;;
21949
21950 sparc*-*-*)
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
21952 $as_echo_n "checking assembler for .register... " >&6; }
21953 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
21954 $as_echo_n "(cached) " >&6
21955 else
21956 gcc_cv_as_sparc_register_op=no
21957 if test x$gcc_cv_as != x; then
21958 echo '.register %g2, #scratch' > conftest.s
21959 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964 test $ac_status = 0; }; }
21965 then
21966 gcc_cv_as_sparc_register_op=yes
21967 else
21968 echo "configure: failed program was" >&5
21969 cat conftest.s >&5
21970 fi
21971 rm -f conftest.o conftest.s
21972 fi
21973 fi
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
21975 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
21976 if test $gcc_cv_as_sparc_register_op = yes; then
21977
21978 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
21979
21980 fi
21981
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
21983 $as_echo_n "checking assembler for -relax option... " >&6; }
21984 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21987 gcc_cv_as_sparc_relax=no
21988 if test x$gcc_cv_as != x; then
21989 echo '.text' > conftest.s
21990 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21996 then
21997 gcc_cv_as_sparc_relax=yes
21998 else
21999 echo "configure: failed program was" >&5
22000 cat conftest.s >&5
22001 fi
22002 rm -f conftest.o conftest.s
22003 fi
22004 fi
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22006 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22007 if test $gcc_cv_as_sparc_relax = yes; then
22008
22009 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22010
22011 fi
22012
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22014 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22015 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22018 gcc_cv_as_sparc_ua_pcrel=no
22019 if test x$gcc_cv_as != x; then
22020 echo '.text
22021 foo:
22022 nop
22023 .data
22024 .align 4
22025 .byte 0
22026 .uaword %r_disp32(foo)' > conftest.s
22027 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22032 test $ac_status = 0; }; }
22033 then
22034 if test x$gcc_cv_ld != x \
22035 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22036 gcc_cv_as_sparc_ua_pcrel=yes
22037 fi
22038 rm -f conftest
22039 else
22040 echo "configure: failed program was" >&5
22041 cat conftest.s >&5
22042 fi
22043 rm -f conftest.o conftest.s
22044 fi
22045 fi
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22047 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22048 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22049
22050 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22051
22052
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22054 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22055 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22056 $as_echo_n "(cached) " >&6
22057 else
22058 gcc_cv_as_sparc_ua_pcrel_hidden=no
22059 if test x$gcc_cv_as != x; then
22060 echo '.data
22061 .align 4
22062 .byte 0x31
22063 .uaword %r_disp32(foo)
22064 .byte 0x32, 0x33, 0x34
22065 .global foo
22066 .hidden foo
22067 foo:
22068 .skip 4' > conftest.s
22069 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22074 test $ac_status = 0; }; }
22075 then
22076 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22077 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22078 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22079 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22080 if $gcc_cv_objdump -R conftest 2> /dev/null \
22081 | grep 'DISP32' > /dev/null 2>&1; then
22082 :
22083 else
22084 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22085 fi
22086 fi
22087 rm -f conftest
22088 else
22089 echo "configure: failed program was" >&5
22090 cat conftest.s >&5
22091 fi
22092 rm -f conftest.o conftest.s
22093 fi
22094 fi
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22096 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22097 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22098
22099 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22100
22101 fi
22102
22103 fi # unaligned pcrel relocs
22104
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22106 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22107 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22108 $as_echo_n "(cached) " >&6
22109 else
22110 gcc_cv_as_sparc_offsetable_lo10=no
22111 if test x$gcc_cv_as != x; then
22112 echo '.text
22113 or %g1, %lo(ab) + 12, %g1
22114 or %g1, %lo(ab + 12), %g1' > conftest.s
22115 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22121 then
22122 if test x$gcc_cv_objdump != x \
22123 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22124 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22125 gcc_cv_as_sparc_offsetable_lo10=yes
22126 fi
22127 else
22128 echo "configure: failed program was" >&5
22129 cat conftest.s >&5
22130 fi
22131 rm -f conftest.o conftest.s
22132 fi
22133 fi
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22135 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22136 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22137
22138 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22139
22140 fi
22141 ;;
22142
22143 i[34567]86-*-* | x86_64-*-*)
22144 case $target_os in
22145 cygwin* | pe | mingw32*)
22146 # Recent binutils allows the three-operand form of ".comm" on PE. This
22147 # definition is used unconditionally to initialise the default state of
22148 # the target option variable that governs usage of the feature.
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22150 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22151 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22152 $as_echo_n "(cached) " >&6
22153 else
22154 gcc_cv_as_comm_has_align=no
22155 if test $in_tree_gas = yes; then
22156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22157 then gcc_cv_as_comm_has_align=yes
22158 fi
22159 elif test x$gcc_cv_as != x; then
22160 echo '.comm foo,1,32' > conftest.s
22161 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22163 (eval $ac_try) 2>&5
22164 ac_status=$?
22165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22166 test $ac_status = 0; }; }
22167 then
22168 gcc_cv_as_comm_has_align=yes
22169 else
22170 echo "configure: failed program was" >&5
22171 cat conftest.s >&5
22172 fi
22173 rm -f conftest.o conftest.s
22174 fi
22175 fi
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22177 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22178
22179
22180 cat >>confdefs.h <<_ACEOF
22181 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22182 _ACEOF
22183
22184 # Used for DWARF 2 in PE
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22186 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22187 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22188 $as_echo_n "(cached) " >&6
22189 else
22190 gcc_cv_as_ix86_pe_secrel32=no
22191 if test $in_tree_gas = yes; then
22192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22193 then gcc_cv_as_ix86_pe_secrel32=yes
22194 fi
22195 elif test x$gcc_cv_as != x; then
22196 echo '.text
22197 foo: nop
22198 .data
22199 .secrel32 foo' > conftest.s
22200 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22205 test $ac_status = 0; }; }
22206 then
22207 if test x$gcc_cv_ld != x \
22208 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22209 gcc_cv_as_ix86_pe_secrel32=yes
22210 fi
22211 rm -f conftest
22212 else
22213 echo "configure: failed program was" >&5
22214 cat conftest.s >&5
22215 fi
22216 rm -f conftest.o conftest.s
22217 fi
22218 fi
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22220 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22221 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22222
22223 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22224
22225 fi
22226 ;;
22227 esac
22228
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22230 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22231 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22232 $as_echo_n "(cached) " >&6
22233 else
22234 gcc_cv_as_ix86_filds=no
22235 if test x$gcc_cv_as != x; then
22236 echo 'filds mem; fists mem' > conftest.s
22237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22239 (eval $ac_try) 2>&5
22240 ac_status=$?
22241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22242 test $ac_status = 0; }; }
22243 then
22244 gcc_cv_as_ix86_filds=yes
22245 else
22246 echo "configure: failed program was" >&5
22247 cat conftest.s >&5
22248 fi
22249 rm -f conftest.o conftest.s
22250 fi
22251 fi
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22253 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22254 if test $gcc_cv_as_ix86_filds = yes; then
22255
22256 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22257
22258 fi
22259
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22261 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22262 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22263 $as_echo_n "(cached) " >&6
22264 else
22265 gcc_cv_as_ix86_fildq=no
22266 if test x$gcc_cv_as != x; then
22267 echo 'fildq mem; fistpq mem' > conftest.s
22268 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22270 (eval $ac_try) 2>&5
22271 ac_status=$?
22272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22273 test $ac_status = 0; }; }
22274 then
22275 gcc_cv_as_ix86_fildq=yes
22276 else
22277 echo "configure: failed program was" >&5
22278 cat conftest.s >&5
22279 fi
22280 rm -f conftest.o conftest.s
22281 fi
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22284 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22285 if test $gcc_cv_as_ix86_fildq = yes; then
22286
22287 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22288
22289 fi
22290
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22292 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22293 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22294 $as_echo_n "(cached) " >&6
22295 else
22296 gcc_cv_as_ix86_cmov_sun_syntax=no
22297 if test x$gcc_cv_as != x; then
22298 echo 'cmovl.l %edx, %eax' > conftest.s
22299 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22304 test $ac_status = 0; }; }
22305 then
22306 gcc_cv_as_ix86_cmov_sun_syntax=yes
22307 else
22308 echo "configure: failed program was" >&5
22309 cat conftest.s >&5
22310 fi
22311 rm -f conftest.o conftest.s
22312 fi
22313 fi
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22315 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22316 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22317
22318 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22319
22320 fi
22321
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22323 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22324 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22326 else
22327 gcc_cv_as_ix86_ffreep=no
22328 if test x$gcc_cv_as != x; then
22329 echo 'ffreep %st(1)' > conftest.s
22330 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22332 (eval $ac_try) 2>&5
22333 ac_status=$?
22334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22335 test $ac_status = 0; }; }
22336 then
22337 gcc_cv_as_ix86_ffreep=yes
22338 else
22339 echo "configure: failed program was" >&5
22340 cat conftest.s >&5
22341 fi
22342 rm -f conftest.o conftest.s
22343 fi
22344 fi
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22346 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22347 if test $gcc_cv_as_ix86_ffreep = yes; then
22348
22349 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22350
22351 fi
22352
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22354 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22355 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22356 $as_echo_n "(cached) " >&6
22357 else
22358 gcc_cv_as_ix86_sahf=no
22359 if test x$gcc_cv_as != x; then
22360 echo 'sahf' > conftest.s
22361 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22366 test $ac_status = 0; }; }
22367 then
22368 gcc_cv_as_ix86_sahf=yes
22369 else
22370 echo "configure: failed program was" >&5
22371 cat conftest.s >&5
22372 fi
22373 rm -f conftest.o conftest.s
22374 fi
22375 fi
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22377 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22378 if test $gcc_cv_as_ix86_sahf = yes; then
22379
22380 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22381
22382 fi
22383
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22385 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22386 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22387 $as_echo_n "(cached) " >&6
22388 else
22389 gcc_cv_as_ix86_diff_sect_delta=no
22390 if test x$gcc_cv_as != x; then
22391 echo '.section .rodata
22392 .L1:
22393 .long .L2-.L1
22394 .long .L3-.L1
22395 .text
22396 .L3: nop
22397 .L2: nop' > conftest.s
22398 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; }
22404 then
22405 gcc_cv_as_ix86_diff_sect_delta=yes
22406 else
22407 echo "configure: failed program was" >&5
22408 cat conftest.s >&5
22409 fi
22410 rm -f conftest.o conftest.s
22411 fi
22412 fi
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22414 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22415 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22416
22417 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22418
22419 fi
22420
22421 # This one is used unconditionally by i386.[ch]; it is to be defined
22422 # to 1 if the feature is present, 0 otherwise.
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22424 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22425 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 gcc_cv_as_ix86_gotoff_in_data=no
22429 if test $in_tree_gas = yes; then
22430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22431 then gcc_cv_as_ix86_gotoff_in_data=yes
22432 fi
22433 elif test x$gcc_cv_as != x; then
22434 echo ' .text
22435 .L0:
22436 nop
22437 .data
22438 .long .L0@GOTOFF' > conftest.s
22439 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22445 then
22446 gcc_cv_as_ix86_gotoff_in_data=yes
22447 else
22448 echo "configure: failed program was" >&5
22449 cat conftest.s >&5
22450 fi
22451 rm -f conftest.o conftest.s
22452 fi
22453 fi
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22455 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22456
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22460 _ACEOF
22461
22462 ;;
22463
22464 ia64*-*-*)
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22466 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22467 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22470 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22471 if test $in_tree_gas = yes; then
22472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22473 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22474 fi
22475 elif test x$gcc_cv_as != x; then
22476 echo ' .text
22477 addl r15 = @ltoffx(x#), gp
22478 ;;
22479 ld8.mov r16 = [r15], x#' > conftest.s
22480 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22485 test $ac_status = 0; }; }
22486 then
22487 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22488 else
22489 echo "configure: failed program was" >&5
22490 cat conftest.s >&5
22491 fi
22492 rm -f conftest.o conftest.s
22493 fi
22494 fi
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22496 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22497 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22498
22499 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
22500
22501 fi
22502
22503 ;;
22504
22505 powerpc*-*-*)
22506 case $target in
22507 *-*-aix*) conftest_s=' .machine "pwr5"
22508 .csect .text[PR]
22509 mfcr 3,128';;
22510 *-*-darwin*)
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
22512 $as_echo_n "checking assembler for .machine directive support... " >&6; }
22513 if test "${gcc_cv_as_machine_directive+set}" = set; then :
22514 $as_echo_n "(cached) " >&6
22515 else
22516 gcc_cv_as_machine_directive=no
22517 if test x$gcc_cv_as != x; then
22518 echo ' .machine ppc7400' > conftest.s
22519 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22525 then
22526 gcc_cv_as_machine_directive=yes
22527 else
22528 echo "configure: failed program was" >&5
22529 cat conftest.s >&5
22530 fi
22531 rm -f conftest.o conftest.s
22532 fi
22533 fi
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
22535 $as_echo "$gcc_cv_as_machine_directive" >&6; }
22536
22537 if test x$gcc_cv_as_machine_directive != xyes; then
22538 echo "*** This target requires an assembler supporting \".machine\"" >&2
22539 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22540 test x$build = x$target && exit 1
22541 fi
22542 conftest_s=' .text
22543 mfcr r3,128';;
22544 *) conftest_s=' .machine power4
22545 .text
22546 mfcr 3,128';;
22547 esac
22548
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
22550 $as_echo_n "checking assembler for mfcr field support... " >&6; }
22551 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 gcc_cv_as_powerpc_mfcrf=no
22555 if test $in_tree_gas = yes; then
22556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22557 then gcc_cv_as_powerpc_mfcrf=yes
22558 fi
22559 elif test x$gcc_cv_as != x; then
22560 echo "$conftest_s" > conftest.s
22561 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; }
22567 then
22568 gcc_cv_as_powerpc_mfcrf=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22572 fi
22573 rm -f conftest.o conftest.s
22574 fi
22575 fi
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
22577 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
22578 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22579
22580 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
22581
22582 fi
22583
22584 case $target in
22585 *-*-aix*) conftest_s=' .machine "pwr5"
22586 .csect .text[PR]
22587 popcntb 3,3';;
22588 *) conftest_s=' .machine power5
22589 .text
22590 popcntb 3,3';;
22591 esac
22592
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
22594 $as_echo_n "checking assembler for popcntb support... " >&6; }
22595 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
22596 $as_echo_n "(cached) " >&6
22597 else
22598 gcc_cv_as_powerpc_popcntb=no
22599 if test $in_tree_gas = yes; then
22600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22601 then gcc_cv_as_powerpc_popcntb=yes
22602 fi
22603 elif test x$gcc_cv_as != x; then
22604 echo "$conftest_s" > conftest.s
22605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22610 test $ac_status = 0; }; }
22611 then
22612 gcc_cv_as_powerpc_popcntb=yes
22613 else
22614 echo "configure: failed program was" >&5
22615 cat conftest.s >&5
22616 fi
22617 rm -f conftest.o conftest.s
22618 fi
22619 fi
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
22621 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
22622 if test $gcc_cv_as_powerpc_popcntb = yes; then
22623
22624 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
22625
22626 fi
22627
22628 case $target in
22629 *-*-aix*) conftest_s=' .machine "pwr5x"
22630 .csect .text[PR]
22631 frin 1,1';;
22632 *) conftest_s=' .machine power5
22633 .text
22634 frin 1,1';;
22635 esac
22636
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
22638 $as_echo_n "checking assembler for fp round support... " >&6; }
22639 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 gcc_cv_as_powerpc_fprnd=no
22643 if test $in_tree_gas = yes; then
22644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22645 then gcc_cv_as_powerpc_fprnd=yes
22646 fi
22647 elif test x$gcc_cv_as != x; then
22648 echo "$conftest_s" > conftest.s
22649 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22651 (eval $ac_try) 2>&5
22652 ac_status=$?
22653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22654 test $ac_status = 0; }; }
22655 then
22656 gcc_cv_as_powerpc_fprnd=yes
22657 else
22658 echo "configure: failed program was" >&5
22659 cat conftest.s >&5
22660 fi
22661 rm -f conftest.o conftest.s
22662 fi
22663 fi
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
22665 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
22666 if test $gcc_cv_as_powerpc_fprnd = yes; then
22667
22668 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
22669
22670 fi
22671
22672 case $target in
22673 *-*-aix*) conftest_s=' .machine "pwr6"
22674 .csect .text[PR]
22675 mffgpr 1,3';;
22676 *) conftest_s=' .machine power6
22677 .text
22678 mffgpr 1,3';;
22679 esac
22680
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
22682 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
22683 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
22684 $as_echo_n "(cached) " >&6
22685 else
22686 gcc_cv_as_powerpc_mfpgpr=no
22687 if test $in_tree_gas = yes; then
22688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22689 then gcc_cv_as_powerpc_mfpgpr=yes
22690 fi
22691 elif test x$gcc_cv_as != x; then
22692 echo "$conftest_s" > conftest.s
22693 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698 test $ac_status = 0; }; }
22699 then
22700 gcc_cv_as_powerpc_mfpgpr=yes
22701 else
22702 echo "configure: failed program was" >&5
22703 cat conftest.s >&5
22704 fi
22705 rm -f conftest.o conftest.s
22706 fi
22707 fi
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22709 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
22710 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22711
22712 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
22713
22714 fi
22715
22716 case $target in
22717 *-*-aix*) conftest_s=' .csect .text[PR]
22718 LCF..0:
22719 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22720 *-*-darwin*)
22721 conftest_s=' .text
22722 LCF0:
22723 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22724 *) conftest_s=' .text
22725 .LCF0:
22726 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22727 esac
22728
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
22730 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
22731 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
22732 $as_echo_n "(cached) " >&6
22733 else
22734 gcc_cv_as_powerpc_rel16=no
22735 if test $in_tree_gas = yes; then
22736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22737 then gcc_cv_as_powerpc_rel16=yes
22738 fi
22739 elif test x$gcc_cv_as != x; then
22740 echo "$conftest_s" > conftest.s
22741 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22743 (eval $ac_try) 2>&5
22744 ac_status=$?
22745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22746 test $ac_status = 0; }; }
22747 then
22748 gcc_cv_as_powerpc_rel16=yes
22749 else
22750 echo "configure: failed program was" >&5
22751 cat conftest.s >&5
22752 fi
22753 rm -f conftest.o conftest.s
22754 fi
22755 fi
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
22757 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
22758 if test $gcc_cv_as_powerpc_rel16 = yes; then
22759
22760 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
22761
22762 fi
22763
22764 case $target in
22765 *-*-aix*) conftest_s=' .machine "pwr6"
22766 .csect .text[PR]
22767 cmpb 3,4,5';;
22768 *) conftest_s=' .machine power6
22769 .text
22770 cmpb 3,4,5';;
22771 esac
22772
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
22774 $as_echo_n "checking assembler for compare bytes support... " >&6; }
22775 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
22776 $as_echo_n "(cached) " >&6
22777 else
22778 gcc_cv_as_powerpc_cmpb=no
22779 if test $in_tree_gas = yes; then
22780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22781 then gcc_cv_as_powerpc_cmpb=yes
22782 fi
22783 elif test x$gcc_cv_as != x; then
22784 echo "$conftest_s" > conftest.s
22785 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787 (eval $ac_try) 2>&5
22788 ac_status=$?
22789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790 test $ac_status = 0; }; }
22791 then
22792 gcc_cv_as_powerpc_cmpb=yes
22793 else
22794 echo "configure: failed program was" >&5
22795 cat conftest.s >&5
22796 fi
22797 rm -f conftest.o conftest.s
22798 fi
22799 fi
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
22801 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
22802 if test $gcc_cv_as_powerpc_cmpb = yes; then
22803
22804 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
22805
22806 fi
22807
22808 case $target in
22809 *-*-aix*) conftest_s=' .machine "pwr6"
22810 .csect .text[PR]
22811 dadd 1,2,3';;
22812 *) conftest_s=' .machine power6
22813 .text
22814 dadd 1,2,3';;
22815 esac
22816
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
22818 $as_echo_n "checking assembler for decimal float support... " >&6; }
22819 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22821 else
22822 gcc_cv_as_powerpc_dfp=no
22823 if test $in_tree_gas = yes; then
22824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22825 then gcc_cv_as_powerpc_dfp=yes
22826 fi
22827 elif test x$gcc_cv_as != x; then
22828 echo "$conftest_s" > conftest.s
22829 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22835 then
22836 gcc_cv_as_powerpc_dfp=yes
22837 else
22838 echo "configure: failed program was" >&5
22839 cat conftest.s >&5
22840 fi
22841 rm -f conftest.o conftest.s
22842 fi
22843 fi
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
22845 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
22846 if test $gcc_cv_as_powerpc_dfp = yes; then
22847
22848 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
22849
22850 fi
22851
22852 case $target in
22853 *-*-aix*) conftest_s=' .machine "pwr7"
22854 .csect .text[PR]
22855 lxvd2x 1,2,3';;
22856 *) conftest_s=' .machine power7
22857 .text
22858 lxvd2x 1,2,3';;
22859 esac
22860
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
22862 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
22863 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
22864 $as_echo_n "(cached) " >&6
22865 else
22866 gcc_cv_as_powerpc_vsx=no
22867 if test $in_tree_gas = yes; then
22868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22869 then gcc_cv_as_powerpc_vsx=yes
22870 fi
22871 elif test x$gcc_cv_as != x; then
22872 echo "$conftest_s" > conftest.s
22873 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22878 test $ac_status = 0; }; }
22879 then
22880 gcc_cv_as_powerpc_vsx=yes
22881 else
22882 echo "configure: failed program was" >&5
22883 cat conftest.s >&5
22884 fi
22885 rm -f conftest.o conftest.s
22886 fi
22887 fi
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
22889 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
22890 if test $gcc_cv_as_powerpc_vsx = yes; then
22891
22892 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
22893
22894 fi
22895
22896 case $target in
22897 *-*-aix*) conftest_s=' .machine "pwr7"
22898 .csect .text[PR]
22899 popcntd 3,3';;
22900 *) conftest_s=' .machine power7
22901 .text
22902 popcntd 3,3';;
22903 esac
22904
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
22906 $as_echo_n "checking assembler for popcntd support... " >&6; }
22907 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
22908 $as_echo_n "(cached) " >&6
22909 else
22910 gcc_cv_as_powerpc_popcntd=no
22911 if test $in_tree_gas = yes; then
22912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22913 then gcc_cv_as_powerpc_popcntd=yes
22914 fi
22915 elif test x$gcc_cv_as != x; then
22916 echo "$conftest_s" > conftest.s
22917 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22922 test $ac_status = 0; }; }
22923 then
22924 gcc_cv_as_powerpc_popcntd=yes
22925 else
22926 echo "configure: failed program was" >&5
22927 cat conftest.s >&5
22928 fi
22929 rm -f conftest.o conftest.s
22930 fi
22931 fi
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
22933 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
22934 if test $gcc_cv_as_powerpc_popcntd = yes; then
22935
22936 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
22937
22938 fi
22939
22940 case $target in
22941 *-*-aix*) conftest_s=' .csect .text[PR]
22942 lwsync';;
22943 *) conftest_s=' .text
22944 lwsync';;
22945 esac
22946
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
22948 $as_echo_n "checking assembler for lwsync support... " >&6; }
22949 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22951 else
22952 gcc_cv_as_powerpc_lwsync=no
22953 if test $in_tree_gas = yes; then
22954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22955 then gcc_cv_as_powerpc_lwsync=yes
22956 fi
22957 elif test x$gcc_cv_as != x; then
22958 echo "$conftest_s" > conftest.s
22959 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22964 test $ac_status = 0; }; }
22965 then
22966 gcc_cv_as_powerpc_lwsync=yes
22967 else
22968 echo "configure: failed program was" >&5
22969 cat conftest.s >&5
22970 fi
22971 rm -f conftest.o conftest.s
22972 fi
22973 fi
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
22975 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
22976 if test $gcc_cv_as_powerpc_lwsync = yes; then
22977
22978 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
22979
22980 fi
22981
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
22983 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
22984 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
22985 $as_echo_n "(cached) " >&6
22986 else
22987 gcc_cv_as_powerpc_gnu_attribute=no
22988 if test $in_tree_gas = yes; then
22989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22990 then gcc_cv_as_powerpc_gnu_attribute=yes
22991 fi
22992 elif test x$gcc_cv_as != x; then
22993 echo '.gnu_attribute 4,1' > conftest.s
22994 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }; }
23000 then
23001 gcc_cv_as_powerpc_gnu_attribute=yes
23002 else
23003 echo "configure: failed program was" >&5
23004 cat conftest.s >&5
23005 fi
23006 rm -f conftest.o conftest.s
23007 fi
23008 fi
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23010 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23011 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23012
23013 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23014
23015 fi
23016
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23018 $as_echo_n "checking assembler for tls marker support... " >&6; }
23019 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23020 $as_echo_n "(cached) " >&6
23021 else
23022 gcc_cv_as_powerpc_tls_markers=no
23023 if test $in_tree_gas = yes; then
23024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23025 then gcc_cv_as_powerpc_tls_markers=yes
23026 fi
23027 elif test x$gcc_cv_as != x; then
23028 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23029 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23034 test $ac_status = 0; }; }
23035 then
23036 gcc_cv_as_powerpc_tls_markers=yes
23037 else
23038 echo "configure: failed program was" >&5
23039 cat conftest.s >&5
23040 fi
23041 rm -f conftest.o conftest.s
23042 fi
23043 fi
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23045 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23046 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23047
23048 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23049
23050 fi
23051 ;;
23052
23053 mips*-*-*)
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23055 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23056 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23058 else
23059 gcc_cv_as_mips_explicit_relocs=no
23060 if test $in_tree_gas = yes; then
23061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23062 then gcc_cv_as_mips_explicit_relocs=yes
23063 fi
23064 elif test x$gcc_cv_as != x; then
23065 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23066 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23068 (eval $ac_try) 2>&5
23069 ac_status=$?
23070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23071 test $ac_status = 0; }; }
23072 then
23073 gcc_cv_as_mips_explicit_relocs=yes
23074 else
23075 echo "configure: failed program was" >&5
23076 cat conftest.s >&5
23077 fi
23078 rm -f conftest.o conftest.s
23079 fi
23080 fi
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23082 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23083 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23084 if test x$target_cpu_default = x
23085 then target_cpu_default=MASK_EXPLICIT_RELOCS
23086 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23087 fi
23088 fi
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23090 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23091 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23092 $as_echo_n "(cached) " >&6
23093 else
23094 gcc_cv_as_mips_no_shared=no
23095 if test $in_tree_gas = yes; then
23096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23097 then gcc_cv_as_mips_no_shared=yes
23098 fi
23099 elif test x$gcc_cv_as != x; then
23100 echo 'nop' > conftest.s
23101 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23106 test $ac_status = 0; }; }
23107 then
23108 gcc_cv_as_mips_no_shared=yes
23109 else
23110 echo "configure: failed program was" >&5
23111 cat conftest.s >&5
23112 fi
23113 rm -f conftest.o conftest.s
23114 fi
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23117 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23118 if test $gcc_cv_as_mips_no_shared = yes; then
23119
23120 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23121
23122 fi
23123
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23125 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23126 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23128 else
23129 gcc_cv_as_mips_gnu_attribute=no
23130 if test $in_tree_gas = yes; then
23131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23132 then gcc_cv_as_mips_gnu_attribute=yes
23133 fi
23134 elif test x$gcc_cv_as != x; then
23135 echo '.gnu_attribute 4,1' > conftest.s
23136 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23142 then
23143 gcc_cv_as_mips_gnu_attribute=yes
23144 else
23145 echo "configure: failed program was" >&5
23146 cat conftest.s >&5
23147 fi
23148 rm -f conftest.o conftest.s
23149 fi
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23152 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23153 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23154
23155 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23156
23157 fi
23158
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23160 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23161 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 gcc_cv_as_mips_dtprelword=no
23165 if test $in_tree_gas = yes; then
23166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23167 then gcc_cv_as_mips_dtprelword=yes
23168 fi
23169 elif test x$gcc_cv_as != x; then
23170 echo '.section .tdata,"awT",@progbits
23171 x:
23172 .word 2
23173 .text
23174 .dtprelword x+0x8000' > conftest.s
23175 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23180 test $ac_status = 0; }; }
23181 then
23182 gcc_cv_as_mips_dtprelword=yes
23183 else
23184 echo "configure: failed program was" >&5
23185 cat conftest.s >&5
23186 fi
23187 rm -f conftest.o conftest.s
23188 fi
23189 fi
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23191 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23192 if test $gcc_cv_as_mips_dtprelword = yes; then
23193
23194 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23195
23196 fi
23197 ;;
23198 esac
23199
23200 # Mips and HP-UX need the GNU assembler.
23201 # Linux on IA64 might be able to use the Intel assembler.
23202
23203 case "$target" in
23204 mips*-*-* | *-*-hpux* )
23205 if test x$gas_flag = xyes \
23206 || test x"$host" != x"$build" \
23207 || test ! -x "$gcc_cv_as" \
23208 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23209 :
23210 else
23211 echo "*** This configuration requires the GNU assembler" >&2
23212 exit 1
23213 fi
23214 ;;
23215 esac
23216
23217 # ??? Not all targets support dwarf2 debug_line, even within a version
23218 # of gas. Moreover, we need to emit a valid instruction to trigger any
23219 # info to the output file. So, as supported targets are added to gas 2.11,
23220 # add some instruction here to (also) show we expect this might work.
23221 # ??? Once 2.11 is released, probably need to add first known working
23222 # version to the per-target configury.
23223 case "$target" in
23224 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23225 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23226 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23227 | spu-*-* | fido*-*-* | m32c-*-*)
23228 insn="nop"
23229 ;;
23230 ia64*-*-* | s390*-*-*)
23231 insn="nop 0"
23232 ;;
23233 mmix-*-*)
23234 insn="swym 0"
23235 ;;
23236 esac
23237 if test x"$insn" != x; then
23238 conftest_s="\
23239 .file 1 \"conftest.s\"
23240 .loc 1 3 0
23241 $insn"
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23243 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23244 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 gcc_cv_as_dwarf2_debug_line=no
23248 if test $in_tree_gas = yes; then
23249 if test $in_tree_gas_is_elf = yes \
23250 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23251 then gcc_cv_as_dwarf2_debug_line=yes
23252 fi
23253 elif test x$gcc_cv_as != x; then
23254 echo "$conftest_s" > conftest.s
23255 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23260 test $ac_status = 0; }; }
23261 then
23262 if test x$gcc_cv_objdump != x \
23263 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23264 | grep debug_line > /dev/null 2>&1; then
23265 gcc_cv_as_dwarf2_debug_line=yes
23266 fi
23267 else
23268 echo "configure: failed program was" >&5
23269 cat conftest.s >&5
23270 fi
23271 rm -f conftest.o conftest.s
23272 fi
23273 fi
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23275 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23276
23277
23278 # The .debug_line file table must be in the exact order that
23279 # we specified the files, since these indices are also used
23280 # by DW_AT_decl_file. Approximate this test by testing if
23281 # the assembler bitches if the same index is assigned twice.
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23283 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23284 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23285 $as_echo_n "(cached) " >&6
23286 else
23287 gcc_cv_as_dwarf2_file_buggy=no
23288 if test x$gcc_cv_as != x; then
23289 echo ' .file 1 "foo.s"
23290 .file 1 "bar.s"' > conftest.s
23291 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23296 test $ac_status = 0; }; }
23297 then
23298 gcc_cv_as_dwarf2_file_buggy=yes
23299 else
23300 echo "configure: failed program was" >&5
23301 cat conftest.s >&5
23302 fi
23303 rm -f conftest.o conftest.s
23304 fi
23305 fi
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23307 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23308
23309
23310 if test $gcc_cv_as_dwarf2_debug_line = yes \
23311 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23312
23313 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23314
23315 fi
23316
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23318 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23319 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23320 $as_echo_n "(cached) " >&6
23321 else
23322 gcc_cv_as_gdwarf2_flag=no
23323 if test $in_tree_gas = yes; then
23324 if test $in_tree_gas_is_elf = yes \
23325 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23326 then gcc_cv_as_gdwarf2_flag=yes
23327 fi
23328 elif test x$gcc_cv_as != x; then
23329 echo "$insn" > conftest.s
23330 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23332 (eval $ac_try) 2>&5
23333 ac_status=$?
23334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23335 test $ac_status = 0; }; }
23336 then
23337 gcc_cv_as_gdwarf2_flag=yes
23338 else
23339 echo "configure: failed program was" >&5
23340 cat conftest.s >&5
23341 fi
23342 rm -f conftest.o conftest.s
23343 fi
23344 fi
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23346 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23347 if test $gcc_cv_as_gdwarf2_flag = yes; then
23348
23349 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23350
23351 fi
23352
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23354 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23355 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358 gcc_cv_as_gstabs_flag=no
23359 if test $in_tree_gas = yes; then
23360 if test $in_tree_gas_is_elf = yes \
23361 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23362 then gcc_cv_as_gstabs_flag=yes
23363 fi
23364 elif test x$gcc_cv_as != x; then
23365 echo "$insn" > conftest.s
23366 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23368 (eval $ac_try) 2>&5
23369 ac_status=$?
23370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23371 test $ac_status = 0; }; }
23372 then
23373 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23374 # and warns about it, but still exits successfully. So check for
23375 # this.
23376 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23381 test $ac_status = 0; }; }
23382 then :
23383 else gcc_cv_as_gstabs_flag=yes
23384 fi
23385 else
23386 echo "configure: failed program was" >&5
23387 cat conftest.s >&5
23388 fi
23389 rm -f conftest.o conftest.s
23390 fi
23391 fi
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
23393 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
23394 if test $gcc_cv_as_gstabs_flag = yes; then
23395
23396 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
23397
23398 fi
23399
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
23401 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
23402 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23404 else
23405 gcc_cv_as_debug_prefix_map_flag=no
23406 if test $in_tree_gas = yes; then
23407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23408 then gcc_cv_as_debug_prefix_map_flag=yes
23409 fi
23410 elif test x$gcc_cv_as != x; then
23411 echo "$insn" > conftest.s
23412 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; }
23418 then
23419 gcc_cv_as_debug_prefix_map_flag=yes
23420 else
23421 echo "configure: failed program was" >&5
23422 cat conftest.s >&5
23423 fi
23424 rm -f conftest.o conftest.s
23425 fi
23426 fi
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23428 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
23429 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23430
23431 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
23432
23433 fi
23434 fi
23435
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
23437 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
23438 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
23439 $as_echo_n "(cached) " >&6
23440 else
23441 gcc_cv_as_lcomm_with_alignment=no
23442 if test x$gcc_cv_as != x; then
23443 echo '.lcomm bar,4,16' > conftest.s
23444 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23446 (eval $ac_try) 2>&5
23447 ac_status=$?
23448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23449 test $ac_status = 0; }; }
23450 then
23451 gcc_cv_as_lcomm_with_alignment=yes
23452 else
23453 echo "configure: failed program was" >&5
23454 cat conftest.s >&5
23455 fi
23456 rm -f conftest.o conftest.s
23457 fi
23458 fi
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
23460 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
23461 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23462
23463 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
23464
23465 fi
23466
23467 # Check whether --enable-gnu-unique-object was given.
23468 if test "${enable_gnu_unique_object+set}" = set; then :
23469 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
23470 yes | no) ;;
23471 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
23472 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23473 esac
23474 else
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
23476 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
23477 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
23478 $as_echo_n "(cached) " >&6
23479 else
23480 gcc_cv_as_gnu_unique_object=no
23481 if test $in_tree_gas = yes; then
23482 if test $in_tree_gas_is_elf = yes \
23483 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23484 then gcc_cv_as_gnu_unique_object=yes
23485 fi
23486 elif test x$gcc_cv_as != x; then
23487 echo '.type foo, @gnu_unique_object' > conftest.s
23488 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23493 test $ac_status = 0; }; }
23494 then
23495 # Also check for ld.so support, i.e. glibc 2.11 or higher.
23496 if test x$host = x$build -a x$host = x$target &&
23497 glibcver=`ldd --version 2>/dev/null`; then
23498 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
23499 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
23500 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
23501 if test "$glibcnum" -ge 2011 ; then
23502 gcc_cv_as_gnu_unique_object=yes
23503 fi
23504 fi
23505 else
23506 echo "configure: failed program was" >&5
23507 cat conftest.s >&5
23508 fi
23509 rm -f conftest.o conftest.s
23510 fi
23511 fi
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
23513 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
23514 if test $gcc_cv_as_gnu_unique_object = yes; then
23515 enable_gnu_unique_object=yes
23516 fi
23517 fi
23518
23519 if test x$enable_gnu_unique_object = xyes; then
23520
23521 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
23522
23523 fi
23524
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
23526 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
23527 if test "${gcc_cv_as_line_zero+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 gcc_cv_as_line_zero=no
23531 if test $in_tree_gas = yes; then
23532 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23533 then gcc_cv_as_line_zero=yes
23534 fi
23535 elif test "x$gcc_cv_as" != x; then
23536 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23537 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23542 test $ac_status = 0; }; } &&
23543 test "x`cat conftest.out`" = x
23544 then
23545 gcc_cv_as_line_zero=yes
23546 else
23547 echo "configure: failed program was" >&5
23548 cat conftest.s >&5
23549 echo "configure: error output was" >&5
23550 cat conftest.out >&5
23551 fi
23552 rm -f conftest.o conftest.s conftest.out
23553 fi
23554 fi
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
23556 $as_echo "$gcc_cv_as_line_zero" >&6; }
23557 if test "x$gcc_cv_as_line_zero" = xyes; then
23558
23559 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
23560
23561 fi
23562
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
23564 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
23565 gcc_cv_ld_eh_frame_hdr=no
23566 if test $in_tree_ld = yes ; then
23567 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 \
23568 && test $in_tree_ld_is_elf = yes; then
23569 gcc_cv_ld_eh_frame_hdr=yes
23570 fi
23571 elif test x$gcc_cv_ld != x; then
23572 # Check if linker supports --eh-frame-hdr option
23573 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23574 gcc_cv_ld_eh_frame_hdr=yes
23575 fi
23576 fi
23577
23578 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23579
23580 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
23581
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
23584 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
23585
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
23587 $as_echo_n "checking linker position independent executable support... " >&6; }
23588 gcc_cv_ld_pie=no
23589 if test $in_tree_ld = yes ; then
23590 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 \
23591 && test $in_tree_ld_is_elf = yes; then
23592 gcc_cv_ld_pie=yes
23593 fi
23594 elif test x$gcc_cv_ld != x; then
23595 # Check if linker supports -pie option
23596 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23597 gcc_cv_ld_pie=yes
23598 fi
23599 fi
23600 if test x"$gcc_cv_ld_pie" = xyes; then
23601
23602 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
23603
23604 fi
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
23606 $as_echo "$gcc_cv_ld_pie" >&6; }
23607
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
23609 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
23610 gcc_cv_ld_eh_gc_sections=no
23611 if test $in_tree_ld = yes ; then
23612 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 \
23613 && test $in_tree_ld_is_elf = yes; then
23614 gcc_cv_ld_eh_gc_sections=yes
23615 fi
23616 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23617 cat > conftest.s <<EOF
23618 .section .text
23619 .globl _start
23620 .type _start, @function
23621 _start:
23622 .long foo
23623 .size _start, .-_start
23624 .section .text.foo,"ax",@progbits
23625 .type foo, @function
23626 foo:
23627 .long 0
23628 .size foo, .-foo
23629 .section .gcc_except_table.foo,"a",@progbits
23630 .L0:
23631 .long 0
23632 .section .eh_frame,"a",@progbits
23633 .long .L0
23634 EOF
23635 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23636 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23637 | grep "gc-sections option ignored" > /dev/null; then
23638 gcc_cv_ld_eh_gc_sections=no
23639 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23640 gcc_cv_ld_eh_gc_sections=yes
23641 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23642 if test x$gcc_cv_as_comdat_group != xyes; then
23643 gcc_cv_ld_eh_gc_sections=no
23644 cat > conftest.s <<EOF
23645 .section .text
23646 .globl _start
23647 .type _start, @function
23648 _start:
23649 .long foo
23650 .size _start, .-_start
23651 .section .gnu.linkonce.t.foo,"ax",@progbits
23652 .type foo, @function
23653 foo:
23654 .long 0
23655 .size foo, .-foo
23656 .section .gcc_except_table.foo,"a",@progbits
23657 .L0:
23658 .long 0
23659 .section .eh_frame,"a",@progbits
23660 .long .L0
23661 EOF
23662 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23663 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23664 | grep "gc-sections option ignored" > /dev/null; then
23665 gcc_cv_ld_eh_gc_sections=no
23666 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23667 gcc_cv_ld_eh_gc_sections=yes
23668 fi
23669 fi
23670 fi
23671 fi
23672 fi
23673 rm -f conftest.s conftest.o conftest
23674 fi
23675 case "$target" in
23676 hppa*-*-linux*)
23677 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23678 gcc_cv_ld_eh_gc_sections=no
23679 ;;
23680 esac
23681 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23682
23683 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
23684
23685 fi
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
23687 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
23688
23689 # --------
23690 # UNSORTED
23691 # --------
23692
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
23694 $as_echo_n "checking linker --as-needed support... " >&6; }
23695 if test "${gcc_cv_ld_as_needed+set}" = set; then :
23696 $as_echo_n "(cached) " >&6
23697 else
23698 gcc_cv_ld_as_needed=no
23699 if test $in_tree_ld = yes ; then
23700 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 \
23701 && test $in_tree_ld_is_elf = yes; then
23702 gcc_cv_ld_as_needed=yes
23703 fi
23704 elif test x$gcc_cv_ld != x; then
23705 # Check if linker supports --as-needed and --no-as-needed options
23706 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23707 gcc_cv_ld_as_needed=yes
23708 fi
23709 fi
23710
23711 fi
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
23713 $as_echo "$gcc_cv_ld_as_needed" >&6; }
23714 if test x"$gcc_cv_ld_as_needed" = xyes; then
23715
23716 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
23717
23718 fi
23719
23720 case "$target:$tm_file" in
23721 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
23723 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
23724 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 gcc_cv_ld_no_dot_syms=no
23728 if test $in_tree_ld = yes ; then
23729 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
23730 gcc_cv_ld_no_dot_syms=yes
23731 fi
23732 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23733 cat > conftest1.s <<EOF
23734 .text
23735 bl .foo
23736 EOF
23737 cat > conftest2.s <<EOF
23738 .section ".opd","aw"
23739 .align 3
23740 .globl foo
23741 .type foo,@function
23742 foo:
23743 .quad .LEfoo,.TOC.@tocbase,0
23744 .text
23745 .LEfoo:
23746 blr
23747 .size foo,.-.LEfoo
23748 EOF
23749 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23750 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23751 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23752 gcc_cv_ld_no_dot_syms=yes
23753 fi
23754 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23755 fi
23756
23757 fi
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
23759 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
23760 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23761
23762 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
23763
23764 fi
23765 ;;
23766 esac
23767
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
23769 $as_echo_n "checking linker --build-id support... " >&6; }
23770 if test "${gcc_cv_ld_buildid+set}" = set; then :
23771 $as_echo_n "(cached) " >&6
23772 else
23773 gcc_cv_ld_buildid=no
23774 if test $in_tree_ld = yes ; then
23775 if test "$gcc_cv_gld_major_version" -eq 2 -a \
23776 "$gcc_cv_gld_minor_version" -ge 18 -o \
23777 "$gcc_cv_gld_major_version" -gt 2 \
23778 && test $in_tree_ld_is_elf = yes; then
23779 gcc_cv_ld_buildid=yes
23780 fi
23781 elif test x$gcc_cv_ld != x; then
23782 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
23783 gcc_cv_ld_buildid=yes
23784 fi
23785 fi
23786 fi
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
23788 $as_echo "$gcc_cv_ld_buildid" >&6; }
23789 if test x"$gcc_cv_ld_buildid" = xyes; then
23790
23791 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
23792
23793 fi
23794
23795 # Check whether --enable-linker-build-id was given.
23796 if test "${enable_linker_build_id+set}" = set; then :
23797 enableval=$enable_linker_build_id;
23798 else
23799 enable_linker_build_id=no
23800 fi
23801
23802
23803 if test x"$enable_linker_build_id" = xyes; then
23804 if test x"$gcc_cv_ld_buildid" = xyes; then
23805
23806 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
23807
23808 else
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
23810 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
23811 fi
23812 fi
23813
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
23815 $as_echo_n "checking linker --sysroot support... " >&6; }
23816 if test "${gcc_cv_ld_sysroot+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23818 else
23819 gcc_cv_ld_sysroot=no
23820 if test $in_tree_ld = yes ; then
23821 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
23822 gcc_cv_ld_sysroot=yes
23823 fi
23824 elif test x$gcc_cv_ld != x; then
23825 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23826 gcc_cv_ld_sysroot=yes
23827 fi
23828 fi
23829 fi
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
23831 $as_echo "$gcc_cv_ld_sysroot" >&6; }
23832 if test x"$gcc_cv_ld_sysroot" = xyes; then
23833
23834 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
23835
23836 fi
23837
23838 if test x$with_sysroot = x && test x$host = x$target \
23839 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23840 && test "$prefix" != "NONE"; then
23841
23842 cat >>confdefs.h <<_ACEOF
23843 #define PREFIX_INCLUDE_DIR "$prefix/include"
23844 _ACEOF
23845
23846 fi
23847
23848 # Test for stack protector support in target C library.
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
23850 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
23851 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
23852 $as_echo_n "(cached) " >&6
23853 else
23854 gcc_cv_libc_provides_ssp=no
23855 case "$target" in
23856 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
23857 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23858 if test "x$with_sysroot" = x; then
23859 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23860 elif test "x$with_build_sysroot" != "x"; then
23861 glibc_header_dir="${with_build_sysroot}/usr/include"
23862 elif test "x$with_sysroot" = xyes; then
23863 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23864 else
23865 glibc_header_dir="${with_sysroot}/usr/include"
23866 fi
23867 else
23868 glibc_header_dir=/usr/include
23869 fi
23870 # glibc 2.4 and later provides __stack_chk_fail and
23871 # either __stack_chk_guard, or TLS access to stack guard canary.
23872 if test -f $glibc_header_dir/features.h \
23873 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23874 $glibc_header_dir/features.h > /dev/null; then
23875 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23876 $glibc_header_dir/features.h > /dev/null; then
23877 gcc_cv_libc_provides_ssp=yes
23878 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23879 $glibc_header_dir/features.h > /dev/null \
23880 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23881 $glibc_header_dir/features.h > /dev/null; then
23882 gcc_cv_libc_provides_ssp=yes
23883 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23884 $glibc_header_dir/features.h > /dev/null && \
23885 test -f $glibc_header_dir/bits/uClibc_config.h && \
23886 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23887 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23888 gcc_cv_libc_provides_ssp=yes
23889 fi
23890 fi
23891 ;;
23892 *-*-gnu*)
23893 # Avoid complicated tests (see
23894 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
23895 # simply assert that glibc does provide this, which is true for all
23896 # realistically usable GNU/Hurd configurations.
23897 gcc_cv_libc_provides_ssp=yes;;
23898 *-*-darwin*)
23899 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
23900 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
23901 gcc_cv_libc_provides_ssp=yes
23902 else
23903 echo "no __stack_chk_fail on this target"
23904 fi
23905
23906 ;;
23907 *) gcc_cv_libc_provides_ssp=no ;;
23908 esac
23909 fi
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
23911 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
23912
23913 if test x$gcc_cv_libc_provides_ssp = xyes; then
23914
23915 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
23916
23917 fi
23918
23919 # Check if TFmode long double should be used by default or not.
23920 # Some glibc targets used DFmode long double, but with glibc 2.4
23921 # and later they can use TFmode.
23922 case "$target" in
23923 powerpc*-*-linux* | \
23924 powerpc*-*-gnu* | \
23925 sparc*-*-linux* | \
23926 s390*-*-linux* | \
23927 alpha*-*-linux*)
23928
23929 # Check whether --with-long-double-128 was given.
23930 if test "${with_long_double_128+set}" = set; then :
23931 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
23932 else
23933 gcc_cv_target_ldbl128=no
23934 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23935 if test "x$with_sysroot" = x; then
23936 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23937 elif test "x$with_build_sysroot" != "x"; then
23938 glibc_header_dir="${with_build_sysroot}/usr/include"
23939 elif test "x$with_sysroot" = xyes; then
23940 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23941 else
23942 glibc_header_dir="${with_sysroot}/usr/include"
23943 fi
23944 else
23945 glibc_header_dir=/usr/include
23946 fi
23947 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23948 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23949 && gcc_cv_target_ldbl128=yes
23950
23951 fi
23952
23953 ;;
23954 esac
23955 if test x$gcc_cv_target_ldbl128 = xyes; then
23956
23957 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
23958
23959 fi
23960
23961 # Find out what GC implementation we want, or may, use.
23962
23963 # Check whether --with-gc was given.
23964 if test "${with_gc+set}" = set; then :
23965 withval=$with_gc; case "$withval" in
23966 page)
23967 GGC=ggc-$withval
23968 ;;
23969 zone)
23970 GGC=ggc-$withval
23971
23972 $as_echo "#define GGC_ZONE 1" >>confdefs.h
23973
23974 ;;
23975 *)
23976 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
23977 ;;
23978 esac
23979 else
23980 GGC=ggc-page
23981 fi
23982
23983
23984 echo "Using $GGC for garbage collection."
23985
23986 # Libraries to use on the host. This will normally be set by the top
23987 # level Makefile. Here we simply capture the value for our Makefile.
23988 if test -z "${HOST_LIBS+set}"; then
23989 HOST_LIBS=
23990 fi
23991
23992
23993 # Use the system's zlib library.
23994 zlibdir=-L../zlib
23995 zlibinc="-I\$(srcdir)/../zlib"
23996
23997 # Check whether --with-system-zlib was given.
23998 if test "${with_system_zlib+set}" = set; then :
23999 withval=$with_system_zlib; zlibdir=
24000 zlibinc=
24001
24002 fi
24003
24004
24005
24006
24007
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24010 # Check whether --enable-maintainer-mode was given.
24011 if test "${enable_maintainer_mode+set}" = set; then :
24012 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24013 else
24014 maintainer_mode=no
24015 fi
24016
24017
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24019 $as_echo "$maintainer_mode" >&6; }
24020
24021 if test "$maintainer_mode" = "yes"; then
24022 MAINT=''
24023 else
24024 MAINT='#'
24025 fi
24026
24027 # --------------
24028 # Language hooks
24029 # --------------
24030
24031 # Make empty files to contain the specs and options for each language.
24032 # Then add #include lines to for a compiler that has specs and/or options.
24033
24034 subdirs=
24035 lang_opt_files=
24036 lang_specs_files=
24037 lang_tree_files=
24038 # These (without "all_") are set in each config-lang.in.
24039 # `language' must be a single word so is spelled singularly.
24040 all_languages=
24041 all_compilers=
24042 all_outputs='Makefile gccbug'
24043 # List of language makefile fragments.
24044 all_lang_makefrags=
24045 # List of language subdirectory makefiles. Deprecated.
24046 all_lang_makefiles=
24047 # Additional files for gengtype
24048 all_gtfiles="$target_gtfiles"
24049
24050 # These are the languages that are set in --enable-languages,
24051 # and are available in the GCC tree.
24052 all_selected_languages=
24053
24054 # Add the language fragments.
24055 # Languages are added via two mechanisms. Some information must be
24056 # recorded in makefile variables, these are defined in config-lang.in.
24057 # We accumulate them and plug them into the main Makefile.
24058 # The other mechanism is a set of hooks for each of the main targets
24059 # like `clean', `install', etc.
24060
24061 language_hooks="Make-hooks"
24062
24063 for lang in ${srcdir}/*/config-lang.in
24064 do
24065 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24066
24067 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24068 if test "x$lang_alias" = x
24069 then
24070 echo "$lang doesn't set \$language." 1>&2
24071 exit 1
24072 fi
24073 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24074 subdirs="$subdirs $subdir"
24075
24076 # $gcc_subdir is where the gcc integration files are to be found
24077 # for a language, both for internal compiler purposes (compiler
24078 # sources implementing front-end to GCC tree converters), and for
24079 # build infrastructure purposes (Make-lang.in, etc.)
24080 #
24081 # This will be <subdir> (relative to $srcdir) if a line like
24082 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24083 # is found in <langdir>/config-lang.in, and will remain <langdir>
24084 # otherwise.
24085 #
24086 # Except for the language alias (fetched above), the regular
24087 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24088 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24089 # only this and the language alias.
24090
24091 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24092 if [ "$gcc_subdir" = "" ]; then
24093 gcc_subdir="$subdir"
24094 fi
24095
24096 case ",$enable_languages," in
24097 *,$lang_alias,*)
24098 all_selected_languages="$all_selected_languages $lang_alias"
24099 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24100 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24101 fi
24102 ;;
24103 esac
24104
24105 language=
24106 boot_language=
24107 compilers=
24108 outputs=
24109 gtfiles=
24110 subdir_requires=
24111 . ${srcdir}/$gcc_subdir/config-lang.in
24112 if test "x$language" = x
24113 then
24114 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24115 exit 1
24116 fi
24117
24118 ok=:
24119 case ",$enable_languages," in
24120 *,$lang_alias,*) ;;
24121 *)
24122 for i in $subdir_requires; do
24123 test -f "${srcdir}/$i/config-lang.in" && continue
24124 ok=false
24125 break
24126 done
24127 ;;
24128 esac
24129 $ok || continue
24130
24131 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24132 if test -f $srcdir/$gcc_subdir/lang.opt; then
24133 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24134 fi
24135 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24136 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24137 fi
24138 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24139 then all_lang_makefiles="$gcc_subdir/Makefile"
24140 fi
24141 all_languages="$all_languages $language"
24142 all_compilers="$all_compilers $compilers"
24143 all_outputs="$all_outputs $outputs"
24144 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24145 done
24146
24147 # Pick up gtfiles for c
24148 gtfiles=
24149 . ${srcdir}/c-config-lang.in
24150 all_gtfiles="$all_gtfiles [c] $gtfiles"
24151
24152 check_languages=
24153 for language in $all_selected_languages
24154 do
24155 check_languages="$check_languages check-$language"
24156 done
24157
24158 # We link each language in with a set of hooks, reached indirectly via
24159 # lang.${target}. Only do so for selected languages.
24160
24161 rm -f Make-hooks
24162 touch Make-hooks
24163 target_list="all.cross start.encap rest.encap tags \
24164 install-common install-man install-info install-pdf dvi pdf \
24165 html uninstall info man srcextra srcman srcinfo \
24166 mostlyclean clean distclean maintainer-clean install-plugin"
24167
24168 for t in $target_list
24169 do
24170 x=
24171 for lang in $all_selected_languages
24172 do
24173 x="$x $lang.$t"
24174 done
24175 echo "lang.$t: $x" >> Make-hooks
24176 done
24177
24178 # --------
24179 # UNSORTED
24180 # --------
24181
24182 # Create .gdbinit.
24183
24184 echo "dir ." > .gdbinit
24185 echo "dir ${srcdir}" >> .gdbinit
24186 if test x$gdb_needs_out_file_path = xyes
24187 then
24188 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24189 fi
24190 if test "x$subdirs" != x; then
24191 for s in $subdirs
24192 do
24193 echo "dir ${srcdir}/$s" >> .gdbinit
24194 done
24195 fi
24196 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24197
24198 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24199
24200
24201
24202 # Find a directory in which to install a shared libgcc.
24203
24204 # Check whether --enable-version-specific-runtime-libs was given.
24205 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24206 enableval=$enable_version_specific_runtime_libs;
24207 fi
24208
24209
24210
24211 # Check whether --with-slibdir was given.
24212 if test "${with_slibdir+set}" = set; then :
24213 withval=$with_slibdir; slibdir="$with_slibdir"
24214 else
24215 if test "${enable_version_specific_runtime_libs+set}" = set; then
24216 slibdir='$(libsubdir)'
24217 elif test "$host" != "$target"; then
24218 slibdir='$(build_tooldir)/lib'
24219 else
24220 slibdir='$(libdir)'
24221 fi
24222 fi
24223
24224
24225
24226 # Substitute configuration variables
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288 # Echo link setup.
24289 if test x${build} = x${host} ; then
24290 if test x${host} = x${target} ; then
24291 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24292 else
24293 echo "Links are now set up to build a cross-compiler" 1>&2
24294 echo " from ${host} to ${target}." 1>&2
24295 fi
24296 else
24297 if test x${host} = x${target} ; then
24298 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24299 echo " for ${target}." 1>&2
24300 else
24301 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24302 echo " from ${host} to ${target}." 1>&2
24303 fi
24304 fi
24305
24306
24307
24308
24309 case "${GMPLIBS}" in
24310 *-lmpc*)
24311 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24312 ;;
24313 esac
24314
24315
24316
24317
24318
24319
24320 if test "x${CLOOGLIBS}" != "x" ; then
24321
24322 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24323
24324 fi
24325
24326 # Check for plugin support
24327 # Check whether --enable-plugin was given.
24328 if test "${enable_plugin+set}" = set; then :
24329 enableval=$enable_plugin; enable_plugin=$enableval
24330 else
24331 enable_plugin=yes; default_plugin=yes
24332 fi
24333
24334
24335 pluginlibs=
24336 if test x"$enable_plugin" = x"yes"; then
24337 # Check that the host supports -rdynamic and -ldl
24338 have_rdynamic=no
24339 have_dl=no
24340 saved_LDFLAGS="$LDFLAGS"
24341 saved_LIBS="$LIBS"
24342 LIBS=
24343
24344 # Check -rdynamic
24345 LDFLAGS="$LDFLAGS -rdynamic"
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24347 $as_echo_n "checking for -rdynamic... " >&6; }
24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349 /* end confdefs.h. */
24350
24351 int
24352 main ()
24353 {
24354 return 0;
24355 ;
24356 return 0;
24357 }
24358 _ACEOF
24359 if ac_fn_c_try_link "$LINENO"; then :
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24361 $as_echo "yes" >&6; }; have_rdynamic=yes
24362 else
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 $as_echo "no" >&6; }
24365 fi
24366 rm -f core conftest.err conftest.$ac_objext \
24367 conftest$ac_exeext conftest.$ac_ext
24368 if test x"$have_rdynamic" = x"yes" ; then
24369 pluginlibs="-rdynamic"
24370 fi
24371
24372 # Check -ldl
24373 LDFLAGS="$LDFLAGS -ldl"
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24375 $as_echo_n "checking for -ldl... " >&6; }
24376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h. */
24378 #include <dlfcn.h>
24379 int
24380 main ()
24381 {
24382 volatile int f = 0; if (f) dlopen ("dummy", 0);
24383 ;
24384 return 0;
24385 }
24386 _ACEOF
24387 if ac_fn_c_try_link "$LINENO"; then :
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24389 $as_echo "yes" >&6; }; have_dl=yes
24390 else
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392 $as_echo "no" >&6; }
24393 fi
24394 rm -f core conftest.err conftest.$ac_objext \
24395 conftest$ac_exeext conftest.$ac_ext
24396 if test x"$have_dl" = x"yes"; then
24397 pluginlibs="$pluginlibs -ldl"
24398 fi
24399
24400 # Check that we can build shared objects with -fPIC -shared
24401 LDFLAGS="$LDFLAGS -fPIC -shared"
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
24403 $as_echo_n "checking for -fPIC -shared... " >&6; }
24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24405 /* end confdefs.h. */
24406 extern int X;
24407 int
24408 main ()
24409 {
24410 return X == 0;
24411 ;
24412 return 0;
24413 }
24414 _ACEOF
24415 if ac_fn_c_try_link "$LINENO"; then :
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24417 $as_echo "yes" >&6; }; have_pic_shared=yes
24418 else
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24420 $as_echo "no" >&6; }; have_pic_shared=no
24421 fi
24422 rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
24424 if test x"$have_pic_shared" != x"yes"; then
24425 pluginlibs=
24426 enable_plugin=no
24427 fi
24428
24429 # If plugin support had been requested but not available, fail.
24430 if test x"$enable_plugin" = x"no" ; then
24431 if test x"$default_plugin" != x"yes"; then
24432 as_fn_error "
24433 Building GCC with plugin support requires a host that supports
24434 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
24435 fi
24436 fi
24437
24438 LDFLAGS="$saved_LDFLAGS"
24439 LIBS="$saved_LIBS"
24440 fi
24441
24442
24443
24444 if test x"$enable_plugin" = x"yes"; then
24445
24446 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
24447
24448 fi
24449
24450 # Configure the subdirectories
24451 # AC_CONFIG_SUBDIRS($subdirs)
24452
24453 # Create the Makefile
24454 # and configure language subdirectories
24455 ac_config_files="$ac_config_files $all_outputs"
24456
24457
24458 ac_config_commands="$ac_config_commands default"
24459
24460 cat >confcache <<\_ACEOF
24461 # This file is a shell script that caches the results of configure
24462 # tests run on this system so they can be shared between configure
24463 # scripts and configure runs, see configure's option --config-cache.
24464 # It is not useful on other systems. If it contains results you don't
24465 # want to keep, you may remove or edit it.
24466 #
24467 # config.status only pays attention to the cache file if you give it
24468 # the --recheck option to rerun configure.
24469 #
24470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24472 # following values.
24473
24474 _ACEOF
24475
24476 # The following way of writing the cache mishandles newlines in values,
24477 # but we know of no workaround that is simple, portable, and efficient.
24478 # So, we kill variables containing newlines.
24479 # Ultrix sh set writes to stderr and can't be redirected directly,
24480 # and sets the high bit in the cache file unless we assign to the vars.
24481 (
24482 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24483 eval ac_val=\$$ac_var
24484 case $ac_val in #(
24485 *${as_nl}*)
24486 case $ac_var in #(
24487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24489 esac
24490 case $ac_var in #(
24491 _ | IFS | as_nl) ;; #(
24492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24493 *) { eval $ac_var=; unset $ac_var;} ;;
24494 esac ;;
24495 esac
24496 done
24497
24498 (set) 2>&1 |
24499 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24500 *${as_nl}ac_space=\ *)
24501 # `set' does not quote correctly, so add quotes: double-quote
24502 # substitution turns \\\\ into \\, and sed turns \\ into \.
24503 sed -n \
24504 "s/'/'\\\\''/g;
24505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24506 ;; #(
24507 *)
24508 # `set' quotes correctly as required by POSIX, so do not add quotes.
24509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24510 ;;
24511 esac |
24512 sort
24513 ) |
24514 sed '
24515 /^ac_cv_env_/b end
24516 t clear
24517 :clear
24518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24519 t end
24520 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24521 :end' >>confcache
24522 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24523 if test -w "$cache_file"; then
24524 test "x$cache_file" != "x/dev/null" &&
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24526 $as_echo "$as_me: updating cache $cache_file" >&6;}
24527 cat confcache >$cache_file
24528 else
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24531 fi
24532 fi
24533 rm -f confcache
24534
24535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24536 # Let make expand exec_prefix.
24537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24538
24539 DEFS=-DHAVE_CONFIG_H
24540
24541 ac_libobjs=
24542 ac_ltlibobjs=
24543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24544 # 1. Remove the extension, and $U if already installed.
24545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24548 # will be set to the directory where LIBOBJS objects are built.
24549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24551 done
24552 LIBOBJS=$ac_libobjs
24553
24554 LTLIBOBJS=$ac_ltlibobjs
24555
24556
24557
24558
24559 : ${CONFIG_STATUS=./config.status}
24560 ac_write_fail=0
24561 ac_clean_files_save=$ac_clean_files
24562 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24564 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24565 as_write_fail=0
24566 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24567 #! $SHELL
24568 # Generated by $as_me.
24569 # Run this file to recreate the current configuration.
24570 # Compiler output produced by configure, useful for debugging
24571 # configure, is in config.log if it exists.
24572
24573 debug=false
24574 ac_cs_recheck=false
24575 ac_cs_silent=false
24576
24577 SHELL=\${CONFIG_SHELL-$SHELL}
24578 export SHELL
24579 _ASEOF
24580 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24581 ## -------------------- ##
24582 ## M4sh Initialization. ##
24583 ## -------------------- ##
24584
24585 # Be more Bourne compatible
24586 DUALCASE=1; export DUALCASE # for MKS sh
24587 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24588 emulate sh
24589 NULLCMD=:
24590 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24591 # is contrary to our usage. Disable this feature.
24592 alias -g '${1+"$@"}'='"$@"'
24593 setopt NO_GLOB_SUBST
24594 else
24595 case `(set -o) 2>/dev/null` in #(
24596 *posix*) :
24597 set -o posix ;; #(
24598 *) :
24599 ;;
24600 esac
24601 fi
24602
24603
24604 as_nl='
24605 '
24606 export as_nl
24607 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24608 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24611 # Prefer a ksh shell builtin over an external printf program on Solaris,
24612 # but without wasting forks for bash or zsh.
24613 if test -z "$BASH_VERSION$ZSH_VERSION" \
24614 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24615 as_echo='print -r --'
24616 as_echo_n='print -rn --'
24617 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24618 as_echo='printf %s\n'
24619 as_echo_n='printf %s'
24620 else
24621 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24622 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24623 as_echo_n='/usr/ucb/echo -n'
24624 else
24625 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24626 as_echo_n_body='eval
24627 arg=$1;
24628 case $arg in #(
24629 *"$as_nl"*)
24630 expr "X$arg" : "X\\(.*\\)$as_nl";
24631 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24632 esac;
24633 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24634 '
24635 export as_echo_n_body
24636 as_echo_n='sh -c $as_echo_n_body as_echo'
24637 fi
24638 export as_echo_body
24639 as_echo='sh -c $as_echo_body as_echo'
24640 fi
24641
24642 # The user is always right.
24643 if test "${PATH_SEPARATOR+set}" != set; then
24644 PATH_SEPARATOR=:
24645 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24646 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24647 PATH_SEPARATOR=';'
24648 }
24649 fi
24650
24651
24652 # IFS
24653 # We need space, tab and new line, in precisely that order. Quoting is
24654 # there to prevent editors from complaining about space-tab.
24655 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24656 # splitting by setting IFS to empty value.)
24657 IFS=" "" $as_nl"
24658
24659 # Find who we are. Look in the path if we contain no directory separator.
24660 case $0 in #((
24661 *[\\/]* ) as_myself=$0 ;;
24662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24663 for as_dir in $PATH
24664 do
24665 IFS=$as_save_IFS
24666 test -z "$as_dir" && as_dir=.
24667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24668 done
24669 IFS=$as_save_IFS
24670
24671 ;;
24672 esac
24673 # We did not find ourselves, most probably we were run as `sh COMMAND'
24674 # in which case we are not to be found in the path.
24675 if test "x$as_myself" = x; then
24676 as_myself=$0
24677 fi
24678 if test ! -f "$as_myself"; then
24679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24680 exit 1
24681 fi
24682
24683 # Unset variables that we do not need and which cause bugs (e.g. in
24684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24685 # suppresses any "Segmentation fault" message there. '((' could
24686 # trigger a bug in pdksh 5.2.14.
24687 for as_var in BASH_ENV ENV MAIL MAILPATH
24688 do eval test x\${$as_var+set} = xset \
24689 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24690 done
24691 PS1='$ '
24692 PS2='> '
24693 PS4='+ '
24694
24695 # NLS nuisances.
24696 LC_ALL=C
24697 export LC_ALL
24698 LANGUAGE=C
24699 export LANGUAGE
24700
24701 # CDPATH.
24702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24703
24704
24705 # as_fn_error ERROR [LINENO LOG_FD]
24706 # ---------------------------------
24707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24709 # script with status $?, using 1 if that was 0.
24710 as_fn_error ()
24711 {
24712 as_status=$?; test $as_status -eq 0 && as_status=1
24713 if test "$3"; then
24714 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24716 fi
24717 $as_echo "$as_me: error: $1" >&2
24718 as_fn_exit $as_status
24719 } # as_fn_error
24720
24721
24722 # as_fn_set_status STATUS
24723 # -----------------------
24724 # Set $? to STATUS, without forking.
24725 as_fn_set_status ()
24726 {
24727 return $1
24728 } # as_fn_set_status
24729
24730 # as_fn_exit STATUS
24731 # -----------------
24732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24733 as_fn_exit ()
24734 {
24735 set +e
24736 as_fn_set_status $1
24737 exit $1
24738 } # as_fn_exit
24739
24740 # as_fn_unset VAR
24741 # ---------------
24742 # Portably unset VAR.
24743 as_fn_unset ()
24744 {
24745 { eval $1=; unset $1;}
24746 }
24747 as_unset=as_fn_unset
24748 # as_fn_append VAR VALUE
24749 # ----------------------
24750 # Append the text in VALUE to the end of the definition contained in VAR. Take
24751 # advantage of any shell optimizations that allow amortized linear growth over
24752 # repeated appends, instead of the typical quadratic growth present in naive
24753 # implementations.
24754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24755 eval 'as_fn_append ()
24756 {
24757 eval $1+=\$2
24758 }'
24759 else
24760 as_fn_append ()
24761 {
24762 eval $1=\$$1\$2
24763 }
24764 fi # as_fn_append
24765
24766 # as_fn_arith ARG...
24767 # ------------------
24768 # Perform arithmetic evaluation on the ARGs, and store the result in the
24769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24770 # must be portable across $(()) and expr.
24771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24772 eval 'as_fn_arith ()
24773 {
24774 as_val=$(( $* ))
24775 }'
24776 else
24777 as_fn_arith ()
24778 {
24779 as_val=`expr "$@" || test $? -eq 1`
24780 }
24781 fi # as_fn_arith
24782
24783
24784 if expr a : '\(a\)' >/dev/null 2>&1 &&
24785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24786 as_expr=expr
24787 else
24788 as_expr=false
24789 fi
24790
24791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24792 as_basename=basename
24793 else
24794 as_basename=false
24795 fi
24796
24797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24798 as_dirname=dirname
24799 else
24800 as_dirname=false
24801 fi
24802
24803 as_me=`$as_basename -- "$0" ||
24804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24805 X"$0" : 'X\(//\)$' \| \
24806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24807 $as_echo X/"$0" |
24808 sed '/^.*\/\([^/][^/]*\)\/*$/{
24809 s//\1/
24810 q
24811 }
24812 /^X\/\(\/\/\)$/{
24813 s//\1/
24814 q
24815 }
24816 /^X\/\(\/\).*/{
24817 s//\1/
24818 q
24819 }
24820 s/.*/./; q'`
24821
24822 # Avoid depending upon Character Ranges.
24823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24826 as_cr_digits='0123456789'
24827 as_cr_alnum=$as_cr_Letters$as_cr_digits
24828
24829 ECHO_C= ECHO_N= ECHO_T=
24830 case `echo -n x` in #(((((
24831 -n*)
24832 case `echo 'xy\c'` in
24833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24834 xy) ECHO_C='\c';;
24835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24836 ECHO_T=' ';;
24837 esac;;
24838 *)
24839 ECHO_N='-n';;
24840 esac
24841
24842 rm -f conf$$ conf$$.exe conf$$.file
24843 if test -d conf$$.dir; then
24844 rm -f conf$$.dir/conf$$.file
24845 else
24846 rm -f conf$$.dir
24847 mkdir conf$$.dir 2>/dev/null
24848 fi
24849 if (echo >conf$$.file) 2>/dev/null; then
24850 if ln -s conf$$.file conf$$ 2>/dev/null; then
24851 as_ln_s='ln -s'
24852 # ... but there are two gotchas:
24853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24855 # In both cases, we have to default to `cp -p'.
24856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24857 as_ln_s='cp -p'
24858 elif ln conf$$.file conf$$ 2>/dev/null; then
24859 as_ln_s=ln
24860 else
24861 as_ln_s='cp -p'
24862 fi
24863 else
24864 as_ln_s='cp -p'
24865 fi
24866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24867 rmdir conf$$.dir 2>/dev/null
24868
24869
24870 # as_fn_mkdir_p
24871 # -------------
24872 # Create "$as_dir" as a directory, including parents if necessary.
24873 as_fn_mkdir_p ()
24874 {
24875
24876 case $as_dir in #(
24877 -*) as_dir=./$as_dir;;
24878 esac
24879 test -d "$as_dir" || eval $as_mkdir_p || {
24880 as_dirs=
24881 while :; do
24882 case $as_dir in #(
24883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24884 *) as_qdir=$as_dir;;
24885 esac
24886 as_dirs="'$as_qdir' $as_dirs"
24887 as_dir=`$as_dirname -- "$as_dir" ||
24888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889 X"$as_dir" : 'X\(//\)[^/]' \| \
24890 X"$as_dir" : 'X\(//\)$' \| \
24891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24892 $as_echo X"$as_dir" |
24893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24894 s//\1/
24895 q
24896 }
24897 /^X\(\/\/\)[^/].*/{
24898 s//\1/
24899 q
24900 }
24901 /^X\(\/\/\)$/{
24902 s//\1/
24903 q
24904 }
24905 /^X\(\/\).*/{
24906 s//\1/
24907 q
24908 }
24909 s/.*/./; q'`
24910 test -d "$as_dir" && break
24911 done
24912 test -z "$as_dirs" || eval "mkdir $as_dirs"
24913 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24914
24915
24916 } # as_fn_mkdir_p
24917 if mkdir -p . 2>/dev/null; then
24918 as_mkdir_p='mkdir -p "$as_dir"'
24919 else
24920 test -d ./-p && rmdir ./-p
24921 as_mkdir_p=false
24922 fi
24923
24924 if test -x / >/dev/null 2>&1; then
24925 as_test_x='test -x'
24926 else
24927 if ls -dL / >/dev/null 2>&1; then
24928 as_ls_L_option=L
24929 else
24930 as_ls_L_option=
24931 fi
24932 as_test_x='
24933 eval sh -c '\''
24934 if test -d "$1"; then
24935 test -d "$1/.";
24936 else
24937 case $1 in #(
24938 -*)set "./$1";;
24939 esac;
24940 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24941 ???[sx]*):;;*)false;;esac;fi
24942 '\'' sh
24943 '
24944 fi
24945 as_executable_p=$as_test_x
24946
24947 # Sed expression to map a string onto a valid CPP name.
24948 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24949
24950 # Sed expression to map a string onto a valid variable name.
24951 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24952
24953
24954 exec 6>&1
24955 ## ----------------------------------- ##
24956 ## Main body of $CONFIG_STATUS script. ##
24957 ## ----------------------------------- ##
24958 _ASEOF
24959 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24960
24961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24962 # Save the log message, to keep $0 and so on meaningful, and to
24963 # report actual input values of CONFIG_FILES etc. instead of their
24964 # values after options handling.
24965 ac_log="
24966 This file was extended by $as_me, which was
24967 generated by GNU Autoconf 2.64. Invocation command line was
24968
24969 CONFIG_FILES = $CONFIG_FILES
24970 CONFIG_HEADERS = $CONFIG_HEADERS
24971 CONFIG_LINKS = $CONFIG_LINKS
24972 CONFIG_COMMANDS = $CONFIG_COMMANDS
24973 $ $0 $@
24974
24975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24976 "
24977
24978 _ACEOF
24979
24980 case $ac_config_files in *"
24981 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24982 esac
24983
24984 case $ac_config_headers in *"
24985 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24986 esac
24987
24988
24989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24990 # Files that config.status was made for.
24991 config_files="$ac_config_files"
24992 config_headers="$ac_config_headers"
24993 config_commands="$ac_config_commands"
24994
24995 _ACEOF
24996
24997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24998 ac_cs_usage="\
24999 \`$as_me' instantiates files and other configuration actions
25000 from templates according to the current configuration. Unless the files
25001 and actions are specified as TAGs, all are instantiated by default.
25002
25003 Usage: $0 [OPTION]... [TAG]...
25004
25005 -h, --help print this help, then exit
25006 -V, --version print version number and configuration settings, then exit
25007 -q, --quiet, --silent
25008 do not print progress messages
25009 -d, --debug don't remove temporary files
25010 --recheck update $as_me by reconfiguring in the same conditions
25011 --file=FILE[:TEMPLATE]
25012 instantiate the configuration file FILE
25013 --header=FILE[:TEMPLATE]
25014 instantiate the configuration header FILE
25015
25016 Configuration files:
25017 $config_files
25018
25019 Configuration headers:
25020 $config_headers
25021
25022 Configuration commands:
25023 $config_commands
25024
25025 Report bugs to the package provider."
25026
25027 _ACEOF
25028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25029 ac_cs_version="\\
25030 config.status
25031 configured by $0, generated by GNU Autoconf 2.64,
25032 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25033
25034 Copyright (C) 2009 Free Software Foundation, Inc.
25035 This config.status script is free software; the Free Software Foundation
25036 gives unlimited permission to copy, distribute and modify it."
25037
25038 ac_pwd='$ac_pwd'
25039 srcdir='$srcdir'
25040 AWK='$AWK'
25041 test -n "\$AWK" || AWK=awk
25042 _ACEOF
25043
25044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25045 # The default lists apply if the user does not specify any file.
25046 ac_need_defaults=:
25047 while test $# != 0
25048 do
25049 case $1 in
25050 --*=*)
25051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25052 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25053 ac_shift=:
25054 ;;
25055 *)
25056 ac_option=$1
25057 ac_optarg=$2
25058 ac_shift=shift
25059 ;;
25060 esac
25061
25062 case $ac_option in
25063 # Handling of the options.
25064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25065 ac_cs_recheck=: ;;
25066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25067 $as_echo "$ac_cs_version"; exit ;;
25068 --debug | --debu | --deb | --de | --d | -d )
25069 debug=: ;;
25070 --file | --fil | --fi | --f )
25071 $ac_shift
25072 case $ac_optarg in
25073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25074 esac
25075 as_fn_append CONFIG_FILES " '$ac_optarg'"
25076 ac_need_defaults=false;;
25077 --header | --heade | --head | --hea )
25078 $ac_shift
25079 case $ac_optarg in
25080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25081 esac
25082 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25083 ac_need_defaults=false;;
25084 --he | --h)
25085 # Conflict between --help and --header
25086 as_fn_error "ambiguous option: \`$1'
25087 Try \`$0 --help' for more information.";;
25088 --help | --hel | -h )
25089 $as_echo "$ac_cs_usage"; exit ;;
25090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25092 ac_cs_silent=: ;;
25093
25094 # This is an error.
25095 -*) as_fn_error "unrecognized option: \`$1'
25096 Try \`$0 --help' for more information." ;;
25097
25098 *) as_fn_append ac_config_targets " $1"
25099 ac_need_defaults=false ;;
25100
25101 esac
25102 shift
25103 done
25104
25105 ac_configure_extra_args=
25106
25107 if $ac_cs_silent; then
25108 exec 6>/dev/null
25109 ac_configure_extra_args="$ac_configure_extra_args --silent"
25110 fi
25111
25112 _ACEOF
25113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25114 if \$ac_cs_recheck; then
25115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25116 shift
25117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25118 CONFIG_SHELL='$SHELL'
25119 export CONFIG_SHELL
25120 exec "\$@"
25121 fi
25122
25123 _ACEOF
25124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25125 exec 5>>config.log
25126 {
25127 echo
25128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25129 ## Running $as_me. ##
25130 _ASBOX
25131 $as_echo "$ac_log"
25132 } >&5
25133
25134 _ACEOF
25135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25136 #
25137 # INIT-COMMANDS
25138 #
25139 subdirs='$subdirs'
25140
25141 _ACEOF
25142
25143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25144
25145 # Handling of arguments.
25146 for ac_config_target in $ac_config_targets
25147 do
25148 case $ac_config_target in
25149 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25150 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25151 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25152 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25153 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25154 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25155
25156 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25157 esac
25158 done
25159
25160
25161 # If the user did not use the arguments to specify the items to instantiate,
25162 # then the envvar interface is used. Set only those that are not.
25163 # We use the long form for the default assignment because of an extremely
25164 # bizarre bug on SunOS 4.1.3.
25165 if $ac_need_defaults; then
25166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25169 fi
25170
25171 # Have a temporary directory for convenience. Make it in the build tree
25172 # simply because there is no reason against having it here, and in addition,
25173 # creating and moving files from /tmp can sometimes cause problems.
25174 # Hook for its removal unless debugging.
25175 # Note that there is a small window in which the directory will not be cleaned:
25176 # after its creation but before its name has been assigned to `$tmp'.
25177 $debug ||
25178 {
25179 tmp=
25180 trap 'exit_status=$?
25181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25182 ' 0
25183 trap 'as_fn_exit 1' 1 2 13 15
25184 }
25185 # Create a (secure) tmp directory for tmp files.
25186
25187 {
25188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25189 test -n "$tmp" && test -d "$tmp"
25190 } ||
25191 {
25192 tmp=./conf$$-$RANDOM
25193 (umask 077 && mkdir "$tmp")
25194 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25195
25196 # Set up the scripts for CONFIG_FILES section.
25197 # No need to generate them if there are no CONFIG_FILES.
25198 # This happens for instance with `./config.status config.h'.
25199 if test -n "$CONFIG_FILES"; then
25200
25201 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25202 ac_cs_awk_getline=:
25203 ac_cs_awk_pipe_init=
25204 ac_cs_awk_read_file='
25205 while ((getline aline < (F[key])) > 0)
25206 print(aline)
25207 close(F[key])'
25208 ac_cs_awk_pipe_fini=
25209 else
25210 ac_cs_awk_getline=false
25211 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25212 ac_cs_awk_read_file='
25213 print "|#_!!_#|"
25214 print "cat " F[key] " &&"
25215 '$ac_cs_awk_pipe_init
25216 # The final `:' finishes the AND list.
25217 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25218 fi
25219 ac_cr=`echo X | tr X '\015'`
25220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25221 # But we know of no other shell where ac_cr would be empty at this
25222 # point, so we can use a bashism as a fallback.
25223 if test "x$ac_cr" = x; then
25224 eval ac_cr=\$\'\\r\'
25225 fi
25226 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25228 ac_cs_awk_cr='\r'
25229 else
25230 ac_cs_awk_cr=$ac_cr
25231 fi
25232
25233 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25234 _ACEOF
25235
25236 # Create commands to substitute file output variables.
25237 {
25238 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25239 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25240 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25241 echo "_ACAWK" &&
25242 echo "_ACEOF"
25243 } >conf$$files.sh &&
25244 . ./conf$$files.sh ||
25245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25246 rm -f conf$$files.sh
25247
25248 {
25249 echo "cat >conf$$subs.awk <<_ACEOF" &&
25250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25251 echo "_ACEOF"
25252 } >conf$$subs.sh ||
25253 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25255 ac_delim='%!_!# '
25256 for ac_last_try in false false false false false :; do
25257 . ./conf$$subs.sh ||
25258 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25259
25260 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25261 if test $ac_delim_n = $ac_delim_num; then
25262 break
25263 elif $ac_last_try; then
25264 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25265 else
25266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25267 fi
25268 done
25269 rm -f conf$$subs.sh
25270
25271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25272 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25273 _ACEOF
25274 sed -n '
25275 h
25276 s/^/S["/; s/!.*/"]=/
25277 p
25278 g
25279 s/^[^!]*!//
25280 :repl
25281 t repl
25282 s/'"$ac_delim"'$//
25283 t delim
25284 :nl
25285 h
25286 s/\(.\{148\}\).*/\1/
25287 t more1
25288 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25289 p
25290 n
25291 b repl
25292 :more1
25293 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25294 p
25295 g
25296 s/.\{148\}//
25297 t nl
25298 :delim
25299 h
25300 s/\(.\{148\}\).*/\1/
25301 t more2
25302 s/["\\]/\\&/g; s/^/"/; s/$/"/
25303 p
25304 b
25305 :more2
25306 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25307 p
25308 g
25309 s/.\{148\}//
25310 t delim
25311 ' <conf$$subs.awk | sed '
25312 /^[^""]/{
25313 N
25314 s/\n//
25315 }
25316 ' >>$CONFIG_STATUS || ac_write_fail=1
25317 rm -f conf$$subs.awk
25318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25319 _ACAWK
25320 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25321 for (key in S) S_is_set[key] = 1
25322 FS = "\a"
25323 \$ac_cs_awk_pipe_init
25324 }
25325 {
25326 line = $ 0
25327 nfields = split(line, field, "@")
25328 substed = 0
25329 len = length(field[1])
25330 for (i = 2; i < nfields; i++) {
25331 key = field[i]
25332 keylen = length(key)
25333 if (S_is_set[key]) {
25334 value = S[key]
25335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25336 len += length(value) + length(field[++i])
25337 substed = 1
25338 } else
25339 len += 1 + keylen
25340 }
25341 if (nfields == 3 && !substed) {
25342 key = field[2]
25343 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25344 \$ac_cs_awk_read_file
25345 next
25346 }
25347 }
25348 print line
25349 }
25350 \$ac_cs_awk_pipe_fini
25351 _ACAWK
25352 _ACEOF
25353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25356 else
25357 cat
25358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25359 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25360 _ACEOF
25361
25362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25364 # trailing colons and then remove the whole line if VPATH becomes empty
25365 # (actually we leave an empty line to preserve line numbers).
25366 if test "x$srcdir" = x.; then
25367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25368 s/:*\$(srcdir):*/:/
25369 s/:*\${srcdir}:*/:/
25370 s/:*@srcdir@:*/:/
25371 s/^\([^=]*=[ ]*\):*/\1/
25372 s/:*$//
25373 s/^[^=]*=[ ]*$//
25374 }'
25375 fi
25376
25377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25378 fi # test -n "$CONFIG_FILES"
25379
25380 # Set up the scripts for CONFIG_HEADERS section.
25381 # No need to generate them if there are no CONFIG_HEADERS.
25382 # This happens for instance with `./config.status Makefile'.
25383 if test -n "$CONFIG_HEADERS"; then
25384 cat >"$tmp/defines.awk" <<\_ACAWK ||
25385 BEGIN {
25386 _ACEOF
25387
25388 # Transform confdefs.h into an awk script `defines.awk', embedded as
25389 # here-document in config.status, that substitutes the proper values into
25390 # config.h.in to produce config.h.
25391
25392 # Create a delimiter string that does not exist in confdefs.h, to ease
25393 # handling of long lines.
25394 ac_delim='%!_!# '
25395 for ac_last_try in false false :; do
25396 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25397 if test -z "$ac_t"; then
25398 break
25399 elif $ac_last_try; then
25400 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25401 else
25402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25403 fi
25404 done
25405
25406 # For the awk script, D is an array of macro values keyed by name,
25407 # likewise P contains macro parameters if any. Preserve backslash
25408 # newline sequences.
25409
25410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25411 sed -n '
25412 s/.\{148\}/&'"$ac_delim"'/g
25413 t rset
25414 :rset
25415 s/^[ ]*#[ ]*define[ ][ ]*/ /
25416 t def
25417 d
25418 :def
25419 s/\\$//
25420 t bsnl
25421 s/["\\]/\\&/g
25422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25423 D["\1"]=" \3"/p
25424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25425 d
25426 :bsnl
25427 s/["\\]/\\&/g
25428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25429 D["\1"]=" \3\\\\\\n"\\/p
25430 t cont
25431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25432 t cont
25433 d
25434 :cont
25435 n
25436 s/.\{148\}/&'"$ac_delim"'/g
25437 t clear
25438 :clear
25439 s/\\$//
25440 t bsnlc
25441 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25442 d
25443 :bsnlc
25444 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25445 b cont
25446 ' <confdefs.h | sed '
25447 s/'"$ac_delim"'/"\\\
25448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25449
25450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25451 for (key in D) D_is_set[key] = 1
25452 FS = "\a"
25453 }
25454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25455 line = \$ 0
25456 split(line, arg, " ")
25457 if (arg[1] == "#") {
25458 defundef = arg[2]
25459 mac1 = arg[3]
25460 } else {
25461 defundef = substr(arg[1], 2)
25462 mac1 = arg[2]
25463 }
25464 split(mac1, mac2, "(") #)
25465 macro = mac2[1]
25466 prefix = substr(line, 1, index(line, defundef) - 1)
25467 if (D_is_set[macro]) {
25468 # Preserve the white space surrounding the "#".
25469 print prefix "define", macro P[macro] D[macro]
25470 next
25471 } else {
25472 # Replace #undef with comments. This is necessary, for example,
25473 # in the case of _POSIX_SOURCE, which is predefined and required
25474 # on some systems where configure will not decide to define it.
25475 if (defundef == "undef") {
25476 print "/*", prefix defundef, macro, "*/"
25477 next
25478 }
25479 }
25480 }
25481 { print }
25482 _ACAWK
25483 _ACEOF
25484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25485 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25486 fi # test -n "$CONFIG_HEADERS"
25487
25488
25489 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25490 shift
25491 for ac_tag
25492 do
25493 case $ac_tag in
25494 :[FHLC]) ac_mode=$ac_tag; continue;;
25495 esac
25496 case $ac_mode$ac_tag in
25497 :[FHL]*:*);;
25498 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25499 :[FH]-) ac_tag=-:-;;
25500 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25501 esac
25502 ac_save_IFS=$IFS
25503 IFS=:
25504 set x $ac_tag
25505 IFS=$ac_save_IFS
25506 shift
25507 ac_file=$1
25508 shift
25509
25510 case $ac_mode in
25511 :L) ac_source=$1;;
25512 :[FH])
25513 ac_file_inputs=
25514 for ac_f
25515 do
25516 case $ac_f in
25517 -) ac_f="$tmp/stdin";;
25518 *) # Look for the file first in the build tree, then in the source tree
25519 # (if the path is not absolute). The absolute path cannot be DOS-style,
25520 # because $ac_f cannot contain `:'.
25521 test -f "$ac_f" ||
25522 case $ac_f in
25523 [\\/$]*) false;;
25524 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25525 esac ||
25526 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25527 esac
25528 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25529 as_fn_append ac_file_inputs " '$ac_f'"
25530 done
25531
25532 # Let's still pretend it is `configure' which instantiates (i.e., don't
25533 # use $as_me), people would be surprised to read:
25534 # /* config.h. Generated by config.status. */
25535 configure_input='Generated from '`
25536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25537 `' by configure.'
25538 if test x"$ac_file" != x-; then
25539 configure_input="$ac_file. $configure_input"
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25541 $as_echo "$as_me: creating $ac_file" >&6;}
25542 fi
25543 # Neutralize special characters interpreted by sed in replacement strings.
25544 case $configure_input in #(
25545 *\&* | *\|* | *\\* )
25546 ac_sed_conf_input=`$as_echo "$configure_input" |
25547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25548 *) ac_sed_conf_input=$configure_input;;
25549 esac
25550
25551 case $ac_tag in
25552 *:-:* | *:-) cat >"$tmp/stdin" \
25553 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25554 esac
25555 ;;
25556 esac
25557
25558 ac_dir=`$as_dirname -- "$ac_file" ||
25559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25560 X"$ac_file" : 'X\(//\)[^/]' \| \
25561 X"$ac_file" : 'X\(//\)$' \| \
25562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25563 $as_echo X"$ac_file" |
25564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25565 s//\1/
25566 q
25567 }
25568 /^X\(\/\/\)[^/].*/{
25569 s//\1/
25570 q
25571 }
25572 /^X\(\/\/\)$/{
25573 s//\1/
25574 q
25575 }
25576 /^X\(\/\).*/{
25577 s//\1/
25578 q
25579 }
25580 s/.*/./; q'`
25581 as_dir="$ac_dir"; as_fn_mkdir_p
25582 ac_builddir=.
25583
25584 case "$ac_dir" in
25585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25586 *)
25587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25588 # A ".." for each directory in $ac_dir_suffix.
25589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25590 case $ac_top_builddir_sub in
25591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25593 esac ;;
25594 esac
25595 ac_abs_top_builddir=$ac_pwd
25596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25597 # for backward compatibility:
25598 ac_top_builddir=$ac_top_build_prefix
25599
25600 case $srcdir in
25601 .) # We are building in place.
25602 ac_srcdir=.
25603 ac_top_srcdir=$ac_top_builddir_sub
25604 ac_abs_top_srcdir=$ac_pwd ;;
25605 [\\/]* | ?:[\\/]* ) # Absolute name.
25606 ac_srcdir=$srcdir$ac_dir_suffix;
25607 ac_top_srcdir=$srcdir
25608 ac_abs_top_srcdir=$srcdir ;;
25609 *) # Relative name.
25610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25611 ac_top_srcdir=$ac_top_build_prefix$srcdir
25612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25613 esac
25614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25615
25616
25617 case $ac_mode in
25618 :F)
25619 #
25620 # CONFIG_FILE
25621 #
25622
25623 _ACEOF
25624
25625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25626 # If the template does not know about datarootdir, expand it.
25627 # FIXME: This hack should be removed a few years after 2.60.
25628 ac_datarootdir_hack=; ac_datarootdir_seen=
25629 ac_sed_dataroot='
25630 /datarootdir/ {
25631 p
25632 q
25633 }
25634 /@datadir@/p
25635 /@docdir@/p
25636 /@infodir@/p
25637 /@localedir@/p
25638 /@mandir@/p'
25639 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25640 *datarootdir*) ac_datarootdir_seen=yes;;
25641 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25643 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25644 _ACEOF
25645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25646 ac_datarootdir_hack='
25647 s&@datadir@&$datadir&g
25648 s&@docdir@&$docdir&g
25649 s&@infodir@&$infodir&g
25650 s&@localedir@&$localedir&g
25651 s&@mandir@&$mandir&g
25652 s&\\\${datarootdir}&$datarootdir&g' ;;
25653 esac
25654 _ACEOF
25655
25656 # Neutralize VPATH when `$srcdir' = `.'.
25657 # Shell code in configure.ac might set extrasub.
25658 # FIXME: do we really want to maintain this feature?
25659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25660 ac_sed_extra="$ac_vpsub
25661 $extrasub
25662 _ACEOF
25663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25664 :t
25665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25666 s|@configure_input@|$ac_sed_conf_input|;t t
25667 s&@top_builddir@&$ac_top_builddir_sub&;t t
25668 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25669 s&@srcdir@&$ac_srcdir&;t t
25670 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25671 s&@top_srcdir@&$ac_top_srcdir&;t t
25672 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25673 s&@builddir@&$ac_builddir&;t t
25674 s&@abs_builddir@&$ac_abs_builddir&;t t
25675 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25676 $ac_datarootdir_hack
25677 "
25678 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25679 if $ac_cs_awk_getline; then
25680 $AWK -f "$tmp/subs.awk"
25681 else
25682 $AWK -f "$tmp/subs.awk" | $SHELL
25683 fi >$tmp/out \
25684 || as_fn_error "could not create $ac_file" "$LINENO" 5
25685
25686 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25687 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25688 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25690 which seems to be undefined. Please make sure it is defined." >&5
25691 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25692 which seems to be undefined. Please make sure it is defined." >&2;}
25693
25694 rm -f "$tmp/stdin"
25695 case $ac_file in
25696 -) cat "$tmp/out" && rm -f "$tmp/out";;
25697 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25698 esac \
25699 || as_fn_error "could not create $ac_file" "$LINENO" 5
25700 ;;
25701 :H)
25702 #
25703 # CONFIG_HEADER
25704 #
25705 if test x"$ac_file" != x-; then
25706 {
25707 $as_echo "/* $configure_input */" \
25708 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25709 } >"$tmp/config.h" \
25710 || as_fn_error "could not create $ac_file" "$LINENO" 5
25711 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25713 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25714 else
25715 rm -f "$ac_file"
25716 mv "$tmp/config.h" "$ac_file" \
25717 || as_fn_error "could not create $ac_file" "$LINENO" 5
25718 fi
25719 else
25720 $as_echo "/* $configure_input */" \
25721 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25722 || as_fn_error "could not create -" "$LINENO" 5
25723 fi
25724 ;;
25725
25726 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25727 $as_echo "$as_me: executing $ac_file commands" >&6;}
25728 ;;
25729 esac
25730
25731
25732 case $ac_file$ac_mode in
25733 "as":F) chmod +x as ;;
25734 "collect-ld":F) chmod +x collect-ld ;;
25735 "nm":F) chmod +x nm ;;
25736 "default":C)
25737 case ${CONFIG_HEADERS} in
25738 *auto-host.h:config.in*)
25739 echo > cstamp-h ;;
25740 esac
25741 # Make sure all the subdirs exist.
25742 for d in $subdirs doc build
25743 do
25744 test -d $d || mkdir $d
25745 done
25746 ;;
25747
25748 esac
25749 done # for ac_tag
25750
25751
25752 as_fn_exit 0
25753 _ACEOF
25754 ac_clean_files=$ac_clean_files_save
25755
25756 test $ac_write_fail = 0 ||
25757 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25758
25759
25760 # configure is writing to config.log, and then calls config.status.
25761 # config.status does its own redirection, appending to config.log.
25762 # Unfortunately, on DOS this fails, as config.log is still kept open
25763 # by configure, so config.status won't be able to write to it; its
25764 # output is simply discarded. So we exec the FD to /dev/null,
25765 # effectively closing config.log, so it can be properly (re)opened and
25766 # appended to by config.status. When coming back to configure, we
25767 # need to make the FD available again.
25768 if test "$no_create" != yes; then
25769 ac_cs_success=:
25770 ac_config_status_args=
25771 test "$silent" = yes &&
25772 ac_config_status_args="$ac_config_status_args --quiet"
25773 exec 5>/dev/null
25774 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25775 exec 5>>config.log
25776 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25777 # would make configure fail if this is the last instruction.
25778 $ac_cs_success || as_fn_exit $?
25779 fi
25780 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25782 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25783 fi
25784