config:
[binutils.git] / bfd / configure
blobfbd7c863d7e291ad79739f49ea11065ef14d8535
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
576 done
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
600 done
601 IFS="$lt_save_ifs"
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
649 prev="$cmd"
650 done
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684 # Initializations.
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
703 ac_unique_file="libbfd.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 tdefaults
745 bfd_ufile_ptr
746 bfd_file_ptr
747 supports_plugins
748 bfd_default_target_size
749 bfd_machines
750 bfd_backends
751 all_backends
752 bfd64_libs
753 wordsize
754 TDEFINES
755 SHARED_LIBADD
756 SHARED_LDFLAGS
757 LIBM
758 COREFLAG
759 COREFILE
760 EXEEXT_FOR_BUILD
761 CC_FOR_BUILD
762 BFD_HOSTPTR_T
763 BFD_HOST_U_64_BIT
764 BFD_HOST_64_BIT
765 BFD_HOST_64_BIT_DEFINED
766 BFD_HOST_64BIT_LONG_LONG
767 BFD_HOST_64BIT_LONG
768 HDEFINES
769 MSGMERGE
770 MSGFMT
771 MKINSTALLDIRS
772 CATOBJEXT
773 GENCAT
774 INSTOBJEXT
775 DATADIRNAME
776 CATALOGS
777 POSUB
778 GMSGFMT
779 XGETTEXT
780 INCINTL
781 LIBINTL_DEP
782 LIBINTL
783 USE_NLS
784 bfdincludedir
785 bfdlibdir
786 target_noncanonical
787 host_noncanonical
788 INSTALL_LIBBFD_FALSE
789 INSTALL_LIBBFD_TRUE
790 GENINSRC_NEVER_FALSE
791 GENINSRC_NEVER_TRUE
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 NO_WERROR
796 WARN_CFLAGS
797 REPORT_BUGS_TEXI
798 REPORT_BUGS_TO
799 PKGVERSION
800 DEBUGDIR
801 PLUGINS_FALSE
802 PLUGINS_TRUE
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 OBJDUMP
810 LN_S
812 ac_ct_DUMPBIN
813 DUMPBIN
815 FGREP
817 LIBTOOL
818 EGREP
819 GREP
821 RANLIB
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 am__untar
833 am__tar
834 AMTAR
835 am__leading_dot
836 SET_MAKE
838 mkdir_p
839 MKDIR_P
840 INSTALL_STRIP_PROGRAM
841 STRIP
842 install_sh
843 MAKEINFO
844 AUTOHEADER
845 AUTOMAKE
846 AUTOCONF
847 ACLOCAL
848 VERSION
849 PACKAGE
850 CYGPATH_W
851 am__isrc
852 INSTALL_DATA
853 INSTALL_SCRIPT
854 INSTALL_PROGRAM
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
862 target_os
863 target_vendor
864 target_cpu
865 target
866 host_os
867 host_vendor
868 host_cpu
869 host
870 build_os
871 build_vendor
872 build_cpu
873 build
874 target_alias
875 host_alias
876 build_alias
877 LIBS
878 ECHO_T
879 ECHO_N
880 ECHO_C
881 DEFS
882 mandir
883 localedir
884 libdir
885 psdir
886 pdfdir
887 dvidir
888 htmldir
889 infodir
890 docdir
891 oldincludedir
892 includedir
893 localstatedir
894 sharedstatedir
895 sysconfdir
896 datadir
897 datarootdir
898 libexecdir
899 sbindir
900 bindir
901 program_transform_name
902 prefix
903 exec_prefix
904 PACKAGE_URL
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_dependency_tracking
916 enable_shared
917 enable_static
918 with_pic
919 enable_fast_install
920 with_gnu_ld
921 enable_libtool_lock
922 enable_plugins
923 enable_largefile
924 enable_64_bit_bfd
925 enable_targets
926 with_mmap
927 enable_secureplt
928 with_separate_debug_dir
929 enable_elf_stt_common
930 with_pkgversion
931 with_bugurl
932 enable_werror
933 enable_build_warnings
934 enable_maintainer_mode
935 enable_install_libbfd
936 enable_nls
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --disable-dependency-tracking speeds up one-time build
1566 --enable-dependency-tracking do not reject slow dependency extractors
1567 --enable-shared[=PKGS] build shared libraries [default=no]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-plugins Enable support for plugins (defaults no)
1573 --disable-largefile omit support for large files
1574 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1575 --enable-targets alternative target configurations
1576 --enable-secureplt Default to creating read-only plt entries
1577 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1578 --enable-werror treat compile warnings as errors
1579 --enable-build-warnings enable build-time compiler warnings
1580 --enable-maintainer-mode enable make rules and dependencies not useful
1581 (and sometimes confusing) to the casual installer
1582 --enable-install-libbfd controls installation of libbfd and related headers
1583 --disable-nls do not use Native Language Support
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1591 --with-mmap try using mmap for BFD input files if available
1592 --with-separate-debug-dir=DIR
1593 Look for global separate debug info in DIR
1594 [default=LIBDIR/debug]
1595 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1596 Binutils"
1597 --with-bugurl=URL Direct users to URL to report a bug
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1607 CPP C preprocessor
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1612 Report bugs to the package provider.
1613 _ACEOF
1614 ac_status=$?
1617 if test "$ac_init_help" = "recursive"; then
1618 # If there are subdirs, report their specific --help.
1619 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1620 test -d "$ac_dir" ||
1621 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1622 continue
1623 ac_builddir=.
1625 case "$ac_dir" in
1626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1629 # A ".." for each directory in $ac_dir_suffix.
1630 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1631 case $ac_top_builddir_sub in
1632 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634 esac ;;
1635 esac
1636 ac_abs_top_builddir=$ac_pwd
1637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638 # for backward compatibility:
1639 ac_top_builddir=$ac_top_build_prefix
1641 case $srcdir in
1642 .) # We are building in place.
1643 ac_srcdir=.
1644 ac_top_srcdir=$ac_top_builddir_sub
1645 ac_abs_top_srcdir=$ac_pwd ;;
1646 [\\/]* | ?:[\\/]* ) # Absolute name.
1647 ac_srcdir=$srcdir$ac_dir_suffix;
1648 ac_top_srcdir=$srcdir
1649 ac_abs_top_srcdir=$srcdir ;;
1650 *) # Relative name.
1651 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652 ac_top_srcdir=$ac_top_build_prefix$srcdir
1653 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654 esac
1655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657 cd "$ac_dir" || { ac_status=$?; continue; }
1658 # Check for guested configure.
1659 if test -f "$ac_srcdir/configure.gnu"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662 elif test -f "$ac_srcdir/configure"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure" --help=recursive
1665 else
1666 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 fi || ac_status=$?
1668 cd "$ac_pwd" || { ac_status=$?; break; }
1669 done
1672 test -n "$ac_init_help" && exit $ac_status
1673 if $ac_init_version; then
1674 cat <<\_ACEOF
1675 configure
1676 generated by GNU Autoconf 2.64
1678 Copyright (C) 2009 Free Software Foundation, Inc.
1679 This configure script is free software; the Free Software Foundation
1680 gives unlimited permission to copy, distribute and modify it.
1681 _ACEOF
1682 exit
1685 ## ------------------------ ##
1686 ## Autoconf initialization. ##
1687 ## ------------------------ ##
1689 # ac_fn_c_try_compile LINENO
1690 # --------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_compile ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext
1696 if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
1725 } # ac_fn_c_try_compile
1727 # ac_fn_c_try_link LINENO
1728 # -----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_link ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 rm -f conftest.$ac_objext conftest$ac_exeext
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && {
1750 test -z "$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 } && test -s conftest$ac_exeext && {
1753 test "$cross_compiling" = yes ||
1754 $as_test_x conftest$ac_exeext
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1764 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1765 # interfere with the next link command; also delete a directory that is
1766 # left behind by Apple's compiler. We do this before executing the actions.
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1771 } # ac_fn_c_try_link
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_cpp ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } >/dev/null && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=1
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 return $ac_retval
1808 } # ac_fn_c_try_cpp
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838 else
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854 else
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=\$ac_header_compiler"
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 return $ac_retval
1937 } # ac_fn_c_try_run
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_check_func LINENO FUNC VAR
1971 # ----------------------------------
1972 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1973 ac_fn_c_check_func ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1985 #define $2 innocuous_$2
1987 /* System header to define __stub macros and hopefully few prototypes,
1988 which can conflict with char $2 (); below.
1989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1990 <limits.h> exists even on freestanding compilers. */
1992 #ifdef __STDC__
1993 # include <limits.h>
1994 #else
1995 # include <assert.h>
1996 #endif
1998 #undef $2
2000 /* Override any GCC internal prototype to avoid an error.
2001 Use char because int might match the return type of a GCC
2002 builtin and then its argument prototype would still apply. */
2003 #ifdef __cplusplus
2004 extern "C"
2005 #endif
2006 char $2 ();
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined __stub_$2 || defined __stub___$2
2011 choke me
2012 #endif
2015 main ()
2017 return $2 ();
2019 return 0;
2021 _ACEOF
2022 if ac_fn_c_try_link "$LINENO"; then :
2023 eval "$3=yes"
2024 else
2025 eval "$3=no"
2027 rm -f core conftest.err conftest.$ac_objext \
2028 conftest$ac_exeext conftest.$ac_ext
2030 eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 } # ac_fn_c_check_func
2037 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038 # --------------------------------------------
2039 # Tries to find the compile-time value of EXPR in a program that includes
2040 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2041 # computed
2042 ac_fn_c_compute_int ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if test "$cross_compiling" = yes; then
2046 # Depending upon the size, compute the lo and hi bounds.
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) >= 0)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=0 ac_mid=0
2062 while :; do
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 test_array [0] = 0
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid; break
2078 else
2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2080 if test $ac_lo -le $ac_mid; then
2081 ac_lo= ac_hi=
2082 break
2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 done
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) < 0)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=-1 ac_mid=-1
2104 while :; do
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112 test_array [0] = 0
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_lo=$ac_mid; break
2120 else
2121 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2122 if test $ac_mid -le $ac_hi; then
2123 ac_lo= ac_hi=
2124 break
2126 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 done
2130 else
2131 ac_lo= ac_hi=
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 # Binary search between lo and hi bounds.
2137 while test "x$ac_lo" != "x$ac_hi"; do
2138 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid
2154 else
2155 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 case $ac_lo in #((
2160 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2161 '') ac_retval=1 ;;
2162 esac
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 static long int longval () { return $2; }
2168 static unsigned long int ulongval () { return $2; }
2169 #include <stdio.h>
2170 #include <stdlib.h>
2172 main ()
2175 FILE *f = fopen ("conftest.val", "w");
2176 if (! f)
2177 return 1;
2178 if (($2) < 0)
2180 long int i = longval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%ld", i);
2185 else
2187 unsigned long int i = ulongval ();
2188 if (i != ($2))
2189 return 1;
2190 fprintf (f, "%lu", i);
2192 /* Do not output a trailing newline, as this causes \r\n confusion
2193 on some platforms. */
2194 return ferror (f) || fclose (f) != 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_run "$LINENO"; then :
2201 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2202 else
2203 ac_retval=1
2205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2206 conftest.$ac_objext conftest.beam conftest.$ac_ext
2207 rm -f conftest.val
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
2213 } # ac_fn_c_compute_int
2215 # ac_fn_c_find_intX_t LINENO BITS VAR
2216 # -----------------------------------
2217 # Finds a signed integer type with width BITS, setting cache variable VAR
2218 # accordingly.
2219 ac_fn_c_find_intX_t ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2223 $as_echo_n "checking for int$2_t... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=no"
2228 for ac_type in int$2_t 'int' 'long int' \
2229 'long long int' 'short int' 'signed char'; do
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $ac_includes_default
2234 main ()
2236 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2237 test_array [0] = 0
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $ac_includes_default
2248 main ()
2250 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2251 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2252 test_array [0] = 0
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2260 else
2261 case $ac_type in #(
2262 int$2_t) :
2263 eval "$3=yes" ;; #(
2264 *) :
2265 eval "$3=\$ac_type" ;;
2266 esac
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 eval as_val=\$$3
2272 if test "x$as_val" = x""no; then :
2274 else
2275 break
2277 done
2279 eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 } # ac_fn_c_find_intX_t
2286 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2287 # -------------------------------------------
2288 # Tests whether TYPE exists after having included INCLUDES, setting cache
2289 # variable VAR accordingly.
2290 ac_fn_c_check_type ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 eval "$3=no"
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 main ()
2305 if (sizeof ($2))
2306 return 0;
2308 return 0;
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2316 main ()
2318 if (sizeof (($2)))
2319 return 0;
2321 return 0;
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2326 else
2327 eval "$3=yes"
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 } # ac_fn_c_check_type
2340 # ac_fn_c_find_uintX_t LINENO BITS VAR
2341 # ------------------------------------
2342 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2343 # accordingly.
2344 ac_fn_c_find_uintX_t ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2348 $as_echo_n "checking for uint$2_t... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 eval "$3=no"
2353 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2354 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2357 $ac_includes_default
2359 main ()
2361 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2362 test_array [0] = 0
2365 return 0;
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369 case $ac_type in #(
2370 uint$2_t) :
2371 eval "$3=yes" ;; #(
2372 *) :
2373 eval "$3=\$ac_type" ;;
2374 esac
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 eval as_val=\$$3
2378 if test "x$as_val" = x""no; then :
2380 else
2381 break
2383 done
2385 eval ac_res=\$$3
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 } # ac_fn_c_find_uintX_t
2392 # ac_fn_c_check_decl LINENO SYMBOL VAR
2393 # ------------------------------------
2394 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2395 ac_fn_c_check_decl ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2399 $as_echo_n "checking whether $2 is declared... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2407 main ()
2409 #ifndef $2
2410 (void) $2;
2411 #endif
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 eval "$3=yes"
2419 else
2420 eval "$3=no"
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 eval ac_res=\$$3
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2427 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 } # ac_fn_c_check_decl
2430 cat >config.log <<_ACEOF
2431 This file contains any messages produced by compilers while
2432 running configure, to aid debugging if configure makes a mistake.
2434 It was created by $as_me, which was
2435 generated by GNU Autoconf 2.64. Invocation command line was
2437 $ $0 $@
2439 _ACEOF
2440 exec 5>>config.log
2442 cat <<_ASUNAME
2443 ## --------- ##
2444 ## Platform. ##
2445 ## --------- ##
2447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2464 _ASUNAME
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 $as_echo "PATH: $as_dir"
2472 done
2473 IFS=$as_save_IFS
2475 } >&5
2477 cat >&5 <<_ACEOF
2480 ## ----------- ##
2481 ## Core tests. ##
2482 ## ----------- ##
2484 _ACEOF
2487 # Keep a trace of the command line.
2488 # Strip out --no-create and --no-recursion so they do not pile up.
2489 # Strip out --silent because we don't want to record it for future runs.
2490 # Also quote any args containing shell meta-characters.
2491 # Make two passes to allow for proper duplicate-argument suppression.
2492 ac_configure_args=
2493 ac_configure_args0=
2494 ac_configure_args1=
2495 ac_must_keep_next=false
2496 for ac_pass in 1 2
2498 for ac_arg
2500 case $ac_arg in
2501 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2503 | -silent | --silent | --silen | --sile | --sil)
2504 continue ;;
2505 *\'*)
2506 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2507 esac
2508 case $ac_pass in
2509 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2511 as_fn_append ac_configure_args1 " '$ac_arg'"
2512 if test $ac_must_keep_next = true; then
2513 ac_must_keep_next=false # Got value, back to normal.
2514 else
2515 case $ac_arg in
2516 *=* | --config-cache | -C | -disable-* | --disable-* \
2517 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2518 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2519 | -with-* | --with-* | -without-* | --without-* | --x)
2520 case "$ac_configure_args0 " in
2521 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2522 esac
2524 -* ) ac_must_keep_next=true ;;
2525 esac
2527 as_fn_append ac_configure_args " '$ac_arg'"
2529 esac
2530 done
2531 done
2532 { ac_configure_args0=; unset ac_configure_args0;}
2533 { ac_configure_args1=; unset ac_configure_args1;}
2535 # When interrupted or exit'd, cleanup temporary files, and complete
2536 # config.log. We remove comments because anyway the quotes in there
2537 # would cause problems or look ugly.
2538 # WARNING: Use '\'' to represent an apostrophe within the trap.
2539 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2540 trap 'exit_status=$?
2541 # Save into config.log some information that might help in debugging.
2543 echo
2545 cat <<\_ASBOX
2546 ## ---------------- ##
2547 ## Cache variables. ##
2548 ## ---------------- ##
2549 _ASBOX
2550 echo
2551 # The following way of writing the cache mishandles newlines in values,
2553 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2554 eval ac_val=\$$ac_var
2555 case $ac_val in #(
2556 *${as_nl}*)
2557 case $ac_var in #(
2558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2559 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2560 esac
2561 case $ac_var in #(
2562 _ | IFS | as_nl) ;; #(
2563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2564 *) { eval $ac_var=; unset $ac_var;} ;;
2565 esac ;;
2566 esac
2567 done
2568 (set) 2>&1 |
2569 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2570 *${as_nl}ac_space=\ *)
2571 sed -n \
2572 "s/'\''/'\''\\\\'\'''\''/g;
2573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2574 ;; #(
2576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2578 esac |
2579 sort
2581 echo
2583 cat <<\_ASBOX
2584 ## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##
2587 _ASBOX
2588 echo
2589 for ac_var in $ac_subst_vars
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 $as_echo "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2599 if test -n "$ac_subst_files"; then
2600 cat <<\_ASBOX
2601 ## ------------------- ##
2602 ## File substitutions. ##
2603 ## ------------------- ##
2604 _ASBOX
2605 echo
2606 for ac_var in $ac_subst_files
2608 eval ac_val=\$$ac_var
2609 case $ac_val in
2610 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611 esac
2612 $as_echo "$ac_var='\''$ac_val'\''"
2613 done | sort
2614 echo
2617 if test -s confdefs.h; then
2618 cat <<\_ASBOX
2619 ## ----------- ##
2620 ## confdefs.h. ##
2621 ## ----------- ##
2622 _ASBOX
2623 echo
2624 cat confdefs.h
2625 echo
2627 test "$ac_signal" != 0 &&
2628 $as_echo "$as_me: caught signal $ac_signal"
2629 $as_echo "$as_me: exit $exit_status"
2630 } >&5
2631 rm -f core *.core core.conftest.* &&
2632 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2633 exit $exit_status
2635 for ac_signal in 1 2 13 15; do
2636 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2637 done
2638 ac_signal=0
2640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2641 rm -f -r conftest* confdefs.h
2643 $as_echo "/* confdefs.h */" > confdefs.h
2645 # Predefined preprocessor variables.
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_NAME "$PACKAGE_NAME"
2649 _ACEOF
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2653 _ACEOF
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2657 _ACEOF
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_STRING "$PACKAGE_STRING"
2661 _ACEOF
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2665 _ACEOF
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_URL "$PACKAGE_URL"
2669 _ACEOF
2672 # Let the site file select an alternate cache file if it wants to.
2673 # Prefer an explicitly selected file to automatically selected ones.
2674 ac_site_file1=NONE
2675 ac_site_file2=NONE
2676 if test -n "$CONFIG_SITE"; then
2677 ac_site_file1=$CONFIG_SITE
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2681 else
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 test "x$ac_site_file" = xNONE && continue
2688 if test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2692 . "$ac_site_file"
2694 done
2696 if test -r "$cache_file"; then
2697 # Some versions of bash will fail to source /dev/null (special
2698 # files actually), so we avoid doing that.
2699 if test -f "$cache_file"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701 $as_echo "$as_me: loading cache $cache_file" >&6;}
2702 case $cache_file in
2703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704 *) . "./$cache_file";;
2705 esac
2707 else
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709 $as_echo "$as_me: creating cache $cache_file" >&6;}
2710 >$cache_file
2713 # Check that the precious variables saved in the cache have kept the same
2714 # value.
2715 ac_cache_corrupted=false
2716 for ac_var in $ac_precious_vars; do
2717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2718 eval ac_new_set=\$ac_env_${ac_var}_set
2719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2720 eval ac_new_val=\$ac_env_${ac_var}_value
2721 case $ac_old_set,$ac_new_set in
2722 set,)
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2724 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2725 ac_cache_corrupted=: ;;
2726 ,set)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2728 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2729 ac_cache_corrupted=: ;;
2730 ,);;
2732 if test "x$ac_old_val" != "x$ac_new_val"; then
2733 # differences in whitespace do not lead to failure.
2734 ac_old_val_w=`echo x $ac_old_val`
2735 ac_new_val_w=`echo x $ac_new_val`
2736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2738 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2739 ac_cache_corrupted=:
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2742 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2743 eval $ac_var=\$ac_old_val
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2746 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2748 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2749 fi;;
2750 esac
2751 # Pass precious variables to config.status.
2752 if test "$ac_new_set" = set; then
2753 case $ac_new_val in
2754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2755 *) ac_arg=$ac_var=$ac_new_val ;;
2756 esac
2757 case " $ac_configure_args " in
2758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2759 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 esac
2762 done
2763 if $ac_cache_corrupted; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2767 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2768 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2770 ## -------------------- ##
2771 ## Main body of script. ##
2772 ## -------------------- ##
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786 ac_aux_dir=
2787 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2788 for ac_t in install-sh install.sh shtool; do
2789 if test -f "$ac_dir/$ac_t"; then
2790 ac_aux_dir=$ac_dir
2791 ac_install_sh="$ac_aux_dir/$ac_t -c"
2792 break 2
2794 done
2795 done
2796 if test -z "$ac_aux_dir"; then
2797 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2800 # These three variables are undocumented and unsupported,
2801 # and are intended to be withdrawn in a future Autoconf release.
2802 # They can cause serious problems if a builder's source tree is in a directory
2803 # whose full name contains unusual characters.
2804 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2805 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2806 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2809 # Make sure we can run config.sub.
2810 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2811 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2814 $as_echo_n "checking build system type... " >&6; }
2815 if test "${ac_cv_build+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 ac_build_alias=$build_alias
2819 test "x$ac_build_alias" = x &&
2820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2821 test "x$ac_build_alias" = x &&
2822 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2823 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2824 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2828 $as_echo "$ac_cv_build" >&6; }
2829 case $ac_cv_build in
2830 *-*-*) ;;
2831 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2832 esac
2833 build=$ac_cv_build
2834 ac_save_IFS=$IFS; IFS='-'
2835 set x $ac_cv_build
2836 shift
2837 build_cpu=$1
2838 build_vendor=$2
2839 shift; shift
2840 # Remember, the first character of IFS is used to create $*,
2841 # except with old shells:
2842 build_os=$*
2843 IFS=$ac_save_IFS
2844 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2848 $as_echo_n "checking host system type... " >&6; }
2849 if test "${ac_cv_host+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test "x$host_alias" = x; then
2853 ac_cv_host=$ac_cv_build
2854 else
2855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2856 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2861 $as_echo "$ac_cv_host" >&6; }
2862 case $ac_cv_host in
2863 *-*-*) ;;
2864 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2865 esac
2866 host=$ac_cv_host
2867 ac_save_IFS=$IFS; IFS='-'
2868 set x $ac_cv_host
2869 shift
2870 host_cpu=$1
2871 host_vendor=$2
2872 shift; shift
2873 # Remember, the first character of IFS is used to create $*,
2874 # except with old shells:
2875 host_os=$*
2876 IFS=$ac_save_IFS
2877 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2881 $as_echo_n "checking target system type... " >&6; }
2882 if test "${ac_cv_target+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test "x$target_alias" = x; then
2886 ac_cv_target=$ac_cv_host
2887 else
2888 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2889 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2894 $as_echo "$ac_cv_target" >&6; }
2895 case $ac_cv_target in
2896 *-*-*) ;;
2897 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2898 esac
2899 target=$ac_cv_target
2900 ac_save_IFS=$IFS; IFS='-'
2901 set x $ac_cv_target
2902 shift
2903 target_cpu=$1
2904 target_vendor=$2
2905 shift; shift
2906 # Remember, the first character of IFS is used to create $*,
2907 # except with old shells:
2908 target_os=$*
2909 IFS=$ac_save_IFS
2910 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2913 # The aliases save the names the user supplied, while $host etc.
2914 # will get canonicalized.
2915 test -n "$target_alias" &&
2916 test "$program_prefix$program_suffix$program_transform_name" = \
2917 NONENONEs,x,x, &&
2918 program_prefix=${target_alias}-
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 CC=$ac_cv_prog_CC
2953 if test -n "$CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2955 $as_echo "$CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$ac_cv_prog_CC"; then
2964 ac_ct_CC=$CC
2965 # Extract the first word of "gcc", so it can be a program name with args.
2966 set dummy gcc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="gcc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3012 else
3013 CC="$ac_cv_prog_CC"
3016 if test -z "$CC"; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="${ac_tool_prefix}cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3039 done
3040 done
3041 IFS=$as_save_IFS
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_CC+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$CC"; then
3066 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 ac_prog_rejected=no
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3077 ac_prog_rejected=yes
3078 continue
3080 ac_cv_prog_CC="cc"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3088 if test $ac_prog_rejected = yes; then
3089 # We found a bogon in the path, so make sure we never use it.
3090 set dummy $ac_cv_prog_CC
3091 shift
3092 if test $# != 0; then
3093 # We chose a different compiler from the bogus one.
3094 # However, it has the same basename, so the bogon will be chosen
3095 # first if we set CC to just the basename; use the full file name.
3096 shift
3097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 for ac_prog in cl.exe
3117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if test "${ac_cv_prog_CC+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3138 done
3139 done
3140 IFS=$as_save_IFS
3144 CC=$ac_cv_prog_CC
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3154 test -n "$CC" && break
3155 done
3157 if test -z "$CC"; then
3158 ac_ct_CC=$CC
3159 for ac_prog in cl.exe
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3184 IFS=$as_save_IFS
3188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3198 test -n "$ac_ct_CC" && break
3199 done
3201 if test "x$ac_ct_CC" = x; then
3202 CC=""
3203 else
3204 case $cross_compiling:$ac_tool_warned in
3205 yes:)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned=yes ;;
3209 esac
3210 CC=$ac_ct_CC
3217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." "$LINENO" 5; }
3222 # Provide some information about the compiler.
3223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 set X $ac_compile
3225 ac_compiler=$2
3226 for ac_option in --version -v -V -qversion; do
3227 { { ac_try="$ac_compiler $ac_option >&5"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3235 ac_status=$?
3236 if test -s conftest.err; then
3237 sed '10a\
3238 ... rest of stderr output deleted ...
3239 10q' conftest.err >conftest.er1
3240 cat conftest.er1 >&5
3241 rm -f conftest.er1 conftest.err
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 done
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 ac_clean_files_save=$ac_clean_files
3259 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3260 # Try to create an executable without -o first, disregard a.out.
3261 # It will help us diagnose broken compilers, and finding out an intuition
3262 # of exeext.
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3267 # The possible output files:
3268 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3270 ac_rmfiles=
3271 for ac_file in $ac_files
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3276 esac
3277 done
3278 rm -f $ac_rmfiles
3280 if { { ac_try="$ac_link_default"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link_default") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3293 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3294 # so that the user can short-circuit this test for compilers unknown to
3295 # Autoconf.
3296 for ac_file in $ac_files ''
3298 test -f "$ac_file" || continue
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3302 [ab].out )
3303 # We found the default executable, but exeext='' is most
3304 # certainly right.
3305 break;;
3306 *.* )
3307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3308 then :; else
3309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311 # We set ac_cv_exeext here because the later test for it is not
3312 # safe: cross compilers may not add the suffix if given an `-o'
3313 # argument, so we may need to know it at that point already.
3314 # Even if this section looks crufty: it has the advantage of
3315 # actually working.
3316 break;;
3318 break;;
3319 esac
3320 done
3321 test "$ac_cv_exeext" = no && ac_cv_exeext=
3323 else
3324 ac_file=''
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327 $as_echo "$ac_file" >&6; }
3328 if test -z "$ac_file"; then :
3329 $as_echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 { as_fn_set_status 77
3335 as_fn_error "C compiler cannot create executables
3336 See \`config.log' for more details." "$LINENO" 5; }; }
3338 ac_exeext=$ac_cv_exeext
3340 # Check that the compiler produces executables we can run. If not, either
3341 # the compiler is broken, or we cross compile.
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3343 $as_echo_n "checking whether the C compiler works... " >&6; }
3344 # If not cross compiling, check that we can run a simple program.
3345 if test "$cross_compiling" != yes; then
3346 if { ac_try='./$ac_file'
3347 { { case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; }; then
3357 cross_compiling=no
3358 else
3359 if test "$cross_compiling" = maybe; then
3360 cross_compiling=yes
3361 else
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error "cannot run C compiled programs.
3365 If you meant to cross compile, use \`--host'.
3366 See \`config.log' for more details." "$LINENO" 5; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3374 ac_clean_files=$ac_clean_files_save
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3378 $as_echo_n "checking whether we are cross compiling... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3383 $as_echo_n "checking for suffix of executables... " >&6; }
3384 if { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3397 # work properly (i.e., refer to `conftest.exe'), while it won't with
3398 # `rm'.
3399 for ac_file in conftest.exe conftest conftest.*; do
3400 test -f "$ac_file" || continue
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3404 break;;
3405 * ) break;;
3406 esac
3407 done
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error "cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details." "$LINENO" 5; }
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3430 main ()
3434 return 0;
3436 _ACEOF
3437 rm -f conftest.o conftest.obj
3438 if { { ac_try="$ac_compile"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compile") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3451 case $ac_file in
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3454 break;;
3455 esac
3456 done
3457 else
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error "cannot compute suffix of object files: cannot compile
3464 See \`config.log' for more details." "$LINENO" 5; }
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 main ()
3483 #ifndef __GNUC__
3484 choke me
3485 #endif
3488 return 0;
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_compiler_gnu=yes
3493 else
3494 ac_compiler_gnu=no
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3503 GCC=yes
3504 else
3505 GCC=
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3511 if test "${ac_cv_prog_cc_g+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3516 ac_cv_prog_cc_g=no
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3522 main ()
3526 return 0;
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 else
3532 CFLAGS=""
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 main ()
3541 return 0;
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3546 else
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3557 return 0;
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3576 CFLAGS="-g -O2"
3577 else
3578 CFLAGS="-g"
3580 else
3581 if test "$GCC" = yes; then
3582 CFLAGS="-O2"
3583 else
3584 CFLAGS=
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 ac_cv_prog_cc_c89=no
3593 ac_save_CC=$CC
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596 #include <stdarg.h>
3597 #include <stdio.h>
3598 #include <sys/types.h>
3599 #include <sys/stat.h>
3600 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3601 struct buf { int x; };
3602 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3603 static char *e (p, i)
3604 char **p;
3605 int i;
3607 return p[i];
3609 static char *f (char * (*g) (char **, int), char **p, ...)
3611 char *s;
3612 va_list v;
3613 va_start (v,p);
3614 s = g (p, va_arg (v,int));
3615 va_end (v);
3616 return s;
3619 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3620 function prototypes and stuff, but not '\xHH' hex character constants.
3621 These don't provoke an error unfortunately, instead are silently treated
3622 as 'x'. The following induces an error, until -std is added to get
3623 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3624 array size at least. It's necessary to write '\x00'==0 to get something
3625 that's true only with -std. */
3626 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3628 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3629 inside strings and character constants. */
3630 #define FOO(x) 'x'
3631 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3633 int test (int i, double x);
3634 struct s1 {int (*f) (int a);};
3635 struct s2 {int (*f) (double a);};
3636 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637 int argc;
3638 char **argv;
3640 main ()
3642 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 return 0;
3646 _ACEOF
3647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3648 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3650 CC="$ac_save_CC $ac_arg"
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652 ac_cv_prog_cc_c89=$ac_arg
3654 rm -f core conftest.err conftest.$ac_objext
3655 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 done
3657 rm -f conftest.$ac_ext
3658 CC=$ac_save_CC
3661 # AC_CACHE_VAL
3662 case "x$ac_cv_prog_cc_c89" in
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3665 $as_echo "none needed" >&6; } ;;
3666 xno)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3668 $as_echo "unsupported" >&6; } ;;
3670 CC="$CC $ac_cv_prog_cc_c89"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 esac
3674 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3686 $as_echo_n "checking for library containing strerror... " >&6; }
3687 if test "${ac_cv_search_strerror+set}" = set; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 ac_func_search_save_LIBS=$LIBS
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3694 /* Override any GCC internal prototype to avoid an error.
3695 Use char because int might match the return type of a GCC
3696 builtin and then its argument prototype would still apply. */
3697 #ifdef __cplusplus
3698 extern "C"
3699 #endif
3700 char strerror ();
3702 main ()
3704 return strerror ();
3706 return 0;
3708 _ACEOF
3709 for ac_lib in '' cposix; do
3710 if test -z "$ac_lib"; then
3711 ac_res="none required"
3712 else
3713 ac_res=-l$ac_lib
3714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3716 if ac_fn_c_try_link "$LINENO"; then :
3717 ac_cv_search_strerror=$ac_res
3719 rm -f core conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext
3721 if test "${ac_cv_search_strerror+set}" = set; then :
3722 break
3724 done
3725 if test "${ac_cv_search_strerror+set}" = set; then :
3727 else
3728 ac_cv_search_strerror=no
3730 rm conftest.$ac_ext
3731 LIBS=$ac_func_search_save_LIBS
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3734 $as_echo "$ac_cv_search_strerror" >&6; }
3735 ac_res=$ac_cv_search_strerror
3736 if test "$ac_res" != no; then :
3737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3742 am__api_version='1.11'
3744 # Find a good install program. We prefer a C program (faster),
3745 # so one script is as good as another. But avoid the broken or
3746 # incompatible versions:
3747 # SysV /etc/install, /usr/sbin/install
3748 # SunOS /usr/etc/install
3749 # IRIX /sbin/install
3750 # AIX /bin/install
3751 # AmigaOS /C/install, which installs bootblocks on floppy discs
3752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3755 # OS/2's system install, which has a completely different semantic
3756 # ./install, which can be erroneously created by make from ./install.sh.
3757 # Reject install programs that cannot install multiple files.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3760 if test -z "$INSTALL"; then
3761 if test "${ac_cv_path_install+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 # Account for people who put trailing slashes in PATH elements.
3770 case $as_dir/ in #((
3771 ./ | .// | /[cC]/* | \
3772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3774 /usr/ucb/* ) ;;
3776 # OSF1 and SCO ODT 3.0 have their own names for install.
3777 # Don't use installbsd from OSF since it installs stuff as root
3778 # by default.
3779 for ac_prog in ginstall scoinst install; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3782 if test $ac_prog = install &&
3783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # AIX install. It has an incompatible calling convention.
3786 elif test $ac_prog = install &&
3787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # program-specific install script used by HP pwplus--don't use.
3790 else
3791 rm -rf conftest.one conftest.two conftest.dir
3792 echo one > conftest.one
3793 echo two > conftest.two
3794 mkdir conftest.dir
3795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3796 test -s conftest.one && test -s conftest.two &&
3797 test -s conftest.dir/conftest.one &&
3798 test -s conftest.dir/conftest.two
3799 then
3800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3801 break 3
3805 done
3806 done
3808 esac
3810 done
3811 IFS=$as_save_IFS
3813 rm -rf conftest.one conftest.two conftest.dir
3816 if test "${ac_cv_path_install+set}" = set; then
3817 INSTALL=$ac_cv_path_install
3818 else
3819 # As a last resort, use the slow shell script. Don't cache a
3820 # value for INSTALL within a source directory, because that will
3821 # break other packages using the cache if that directory is
3822 # removed, or if the value is a relative name.
3823 INSTALL=$ac_install_sh
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3827 $as_echo "$INSTALL" >&6; }
3829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3830 # It thinks the first close brace ends the variable substitution.
3831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3838 $as_echo_n "checking whether build environment is sane... " >&6; }
3839 # Just in case
3840 sleep 1
3841 echo timestamp > conftest.file
3842 # Reject unsafe characters in $srcdir or the absolute working directory
3843 # name. Accept space and tab only in the latter.
3844 am_lf='
3846 case `pwd` in
3847 *[\\\"\#\$\&\'\`$am_lf]*)
3848 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3849 esac
3850 case $srcdir in
3851 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3852 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3853 esac
3855 # Do `set' in a subshell so we don't clobber the current shell's
3856 # arguments. Must try -L first in case configure is actually a
3857 # symlink; some systems play weird games with the mod time of symlinks
3858 # (eg FreeBSD returns the mod time of the symlink's containing
3859 # directory).
3860 if (
3861 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3862 if test "$*" = "X"; then
3863 # -L didn't work.
3864 set X `ls -t "$srcdir/configure" conftest.file`
3866 rm -f conftest.file
3867 if test "$*" != "X $srcdir/configure conftest.file" \
3868 && test "$*" != "X conftest.file $srcdir/configure"; then
3870 # If neither matched, then we have a broken ls. This can happen
3871 # if, for instance, CONFIG_SHELL is bash and it inherits a
3872 # broken ls alias from the environment. This has actually
3873 # happened. Such a system could not be considered "sane".
3874 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3875 alias in your environment" "$LINENO" 5
3878 test "$2" = conftest.file
3880 then
3881 # Ok.
3883 else
3884 as_fn_error "newly created file is older than distributed files!
3885 Check your system clock" "$LINENO" 5
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889 test "$program_prefix" != NONE &&
3890 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3891 # Use a double $ so make ignores it.
3892 test "$program_suffix" != NONE &&
3893 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3894 # Double any \ or $.
3895 # By default was `s,x,x', remove it if useless.
3896 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3897 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3899 # expand $ac_aux_dir to an absolute path
3900 am_aux_dir=`cd $ac_aux_dir && pwd`
3902 if test x"${MISSING+set}" != xset; then
3903 case $am_aux_dir in
3904 *\ * | *\ *)
3905 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3907 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3908 esac
3910 # Use eval to expand $SHELL
3911 if eval "$MISSING --run true"; then
3912 am_missing_run="$MISSING --run "
3913 else
3914 am_missing_run=
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3916 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3919 if test x"${install_sh}" != xset; then
3920 case $am_aux_dir in
3921 *\ * | *\ *)
3922 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3924 install_sh="\${SHELL} $am_aux_dir/install-sh"
3925 esac
3928 # Installed binaries are usually stripped using `strip' when the user
3929 # run `make install-strip'. However `strip' might not be the right
3930 # tool to use in cross-compilation environments, therefore Automake
3931 # will honor the `STRIP' environment variable to overrule this program.
3932 if test "$cross_compiling" != no; then
3933 if test -n "$ac_tool_prefix"; then
3934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3935 set dummy ${ac_tool_prefix}strip; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if test "${ac_cv_prog_STRIP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test -n "$STRIP"; then
3942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3943 else
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3955 done
3956 done
3957 IFS=$as_save_IFS
3961 STRIP=$ac_cv_prog_STRIP
3962 if test -n "$STRIP"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3964 $as_echo "$STRIP" >&6; }
3965 else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3972 if test -z "$ac_cv_prog_STRIP"; then
3973 ac_ct_STRIP=$STRIP
3974 # Extract the first word of "strip", so it can be a program name with args.
3975 set dummy strip; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$ac_ct_STRIP"; then
3982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_ac_ct_STRIP="strip"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3995 done
3996 done
3997 IFS=$as_save_IFS
4001 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4002 if test -n "$ac_ct_STRIP"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4004 $as_echo "$ac_ct_STRIP" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4010 if test "x$ac_ct_STRIP" = x; then
4011 STRIP=":"
4012 else
4013 case $cross_compiling:$ac_tool_warned in
4014 yes:)
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4017 ac_tool_warned=yes ;;
4018 esac
4019 STRIP=$ac_ct_STRIP
4021 else
4022 STRIP="$ac_cv_prog_STRIP"
4026 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4029 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4030 if test -z "$MKDIR_P"; then
4031 if test "${ac_cv_path_mkdir+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_prog in mkdir gmkdir; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4042 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4043 'mkdir (GNU coreutils) '* | \
4044 'mkdir (coreutils) '* | \
4045 'mkdir (fileutils) '4.1*)
4046 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4047 break 3;;
4048 esac
4049 done
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 if test "${ac_cv_path_mkdir+set}" = set; then
4057 MKDIR_P="$ac_cv_path_mkdir -p"
4058 else
4059 # As a last resort, use the slow shell script. Don't cache a
4060 # value for MKDIR_P within a source directory, because that will
4061 # break other packages using the cache if that directory is
4062 # removed, or if the value is a relative name.
4063 test -d ./--version && rmdir ./--version
4064 MKDIR_P="$ac_install_sh -d"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4068 $as_echo "$MKDIR_P" >&6; }
4070 mkdir_p="$MKDIR_P"
4071 case $mkdir_p in
4072 [\\/$]* | ?:[\\/]*) ;;
4073 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4074 esac
4076 for ac_prog in gawk mawk nawk awk
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079 set dummy $ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_prog_AWK+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$AWK"; then
4086 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_AWK="$ac_prog"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 AWK=$ac_cv_prog_AWK
4106 if test -n "$AWK"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4108 $as_echo "$AWK" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4115 test -n "$AWK" && break
4116 done
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4119 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4120 set x ${MAKE-make}
4121 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4122 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 cat >conftest.make <<\_ACEOF
4126 SHELL = /bin/sh
4127 all:
4128 @echo '@@@%%%=$(MAKE)=@@@%%%'
4129 _ACEOF
4130 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4131 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4132 *@@@%%%=?*=@@@%%%*)
4133 eval ac_cv_prog_make_${ac_make}_set=yes;;
4135 eval ac_cv_prog_make_${ac_make}_set=no;;
4136 esac
4137 rm -f conftest.make
4139 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 SET_MAKE=
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 SET_MAKE="MAKE=${MAKE-make}"
4149 rm -rf .tst 2>/dev/null
4150 mkdir .tst 2>/dev/null
4151 if test -d .tst; then
4152 am__leading_dot=.
4153 else
4154 am__leading_dot=_
4156 rmdir .tst 2>/dev/null
4158 DEPDIR="${am__leading_dot}deps"
4160 ac_config_commands="$ac_config_commands depfiles"
4163 am_make=${MAKE-make}
4164 cat > confinc << 'END'
4165 am__doit:
4166 @echo this is the am__doit target
4167 .PHONY: am__doit
4169 # If we don't find an include directive, just comment out the code.
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4171 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4172 am__include="#"
4173 am__quote=
4174 _am_result=none
4175 # First try GNU make style include.
4176 echo "include confinc" > confmf
4177 # Ignore all kinds of additional output from `make'.
4178 case `$am_make -s -f confmf 2> /dev/null` in #(
4179 *the\ am__doit\ target*)
4180 am__include=include
4181 am__quote=
4182 _am_result=GNU
4184 esac
4185 # Now try BSD make style include.
4186 if test "$am__include" = "#"; then
4187 echo '.include "confinc"' > confmf
4188 case `$am_make -s -f confmf 2> /dev/null` in #(
4189 *the\ am__doit\ target*)
4190 am__include=.include
4191 am__quote="\""
4192 _am_result=BSD
4194 esac
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4199 $as_echo "$_am_result" >&6; }
4200 rm -f confinc confmf
4202 # Check whether --enable-dependency-tracking was given.
4203 if test "${enable_dependency_tracking+set}" = set; then :
4204 enableval=$enable_dependency_tracking;
4207 if test "x$enable_dependency_tracking" != xno; then
4208 am_depcomp="$ac_aux_dir/depcomp"
4209 AMDEPBACKSLASH='\'
4211 if test "x$enable_dependency_tracking" != xno; then
4212 AMDEP_TRUE=
4213 AMDEP_FALSE='#'
4214 else
4215 AMDEP_TRUE='#'
4216 AMDEP_FALSE=
4220 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4221 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4222 # is not polluted with repeated "-I."
4223 am__isrc=' -I$(srcdir)'
4224 # test to see if srcdir already configured
4225 if test -f $srcdir/config.status; then
4226 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4230 # test whether we have cygpath
4231 if test -z "$CYGPATH_W"; then
4232 if (cygpath --version) >/dev/null 2>/dev/null; then
4233 CYGPATH_W='cygpath -w'
4234 else
4235 CYGPATH_W=echo
4240 # Define the identity of the package.
4241 PACKAGE=bfd
4242 VERSION=2.20.51
4245 cat >>confdefs.h <<_ACEOF
4246 #define PACKAGE "$PACKAGE"
4247 _ACEOF
4250 cat >>confdefs.h <<_ACEOF
4251 #define VERSION "$VERSION"
4252 _ACEOF
4254 # Some tools Automake needs.
4256 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4259 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4262 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4265 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4268 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4270 # We need awk for the "check" target. The system "awk" is bad on
4271 # some platforms.
4272 # Always define AMTAR for backward compatibility.
4274 AMTAR=${AMTAR-"${am_missing_run}tar"}
4276 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4281 depcc="$CC" am_compiler_list=
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284 $as_echo_n "checking dependency style of $depcc... " >&6; }
4285 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4289 # We make a subdir and do the tests there. Otherwise we can end up
4290 # making bogus files that we don't know about and never remove. For
4291 # instance it was reported that on HP-UX the gcc test will end up
4292 # making a dummy file named `D' -- because `-MD' means `put the output
4293 # in D'.
4294 mkdir conftest.dir
4295 # Copy depcomp to subdir because otherwise we won't find it if we're
4296 # using a relative directory.
4297 cp "$am_depcomp" conftest.dir
4298 cd conftest.dir
4299 # We will build objects and dependencies in a subdirectory because
4300 # it helps to detect inapplicable dependency modes. For instance
4301 # both Tru64's cc and ICC support -MD to output dependencies as a
4302 # side effect of compilation, but ICC will put the dependencies in
4303 # the current directory while Tru64 will put them in the object
4304 # directory.
4305 mkdir sub
4307 am_cv_CC_dependencies_compiler_type=none
4308 if test "$am_compiler_list" = ""; then
4309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4311 am__universal=false
4312 case " $depcc " in #(
4313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314 esac
4316 for depmode in $am_compiler_list; do
4317 # Setup a source with many dependencies, because some compilers
4318 # like to wrap large dependency lists on column 80 (with \), and
4319 # we should not choose a depcomp mode which is confused by this.
4321 # We need to recreate these files for each test, as the compiler may
4322 # overwrite some of them when testing with obscure command lines.
4323 # This happens at least with the AIX C compiler.
4324 : > sub/conftest.c
4325 for i in 1 2 3 4 5 6; do
4326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4328 # Solaris 8's {/usr,}/bin/sh.
4329 touch sub/conftst$i.h
4330 done
4331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4334 # mode. It turns out that the SunPro C++ compiler does not properly
4335 # handle `-M -o', and we need to detect this. Also, some Intel
4336 # versions had trouble with output in subdirs
4337 am__obj=sub/conftest.${OBJEXT-o}
4338 am__minus_obj="-o $am__obj"
4339 case $depmode in
4340 gcc)
4341 # This depmode causes a compiler race in universal mode.
4342 test "$am__universal" = false || continue
4344 nosideeffect)
4345 # after this tag, mechanisms are not by side-effect, so they'll
4346 # only be used when explicitly requested
4347 if test "x$enable_dependency_tracking" = xyes; then
4348 continue
4349 else
4350 break
4353 msvisualcpp | msvcmsys)
4354 # This compiler won't grok `-c -o', but also, the minuso test has
4355 # not run yet. These depmodes are late enough in the game, and
4356 # so weak that their functioning should not be impacted.
4357 am__obj=conftest.${OBJEXT-o}
4358 am__minus_obj=
4360 none) break ;;
4361 esac
4362 if depmode=$depmode \
4363 source=sub/conftest.c object=$am__obj \
4364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4366 >/dev/null 2>conftest.err &&
4367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371 # icc doesn't choke on unknown options, it will just issue warnings
4372 # or remarks (even with -Werror). So we grep stderr for any message
4373 # that says an option was ignored or not supported.
4374 # When given -MP, icc 7.0 and 7.1 complain thusly:
4375 # icc: Command line warning: ignoring option '-M'; no argument required
4376 # The diagnosis changed in icc 8.0:
4377 # icc: Command line remark: option '-MP' not supported
4378 if (grep 'ignoring option' conftest.err ||
4379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380 am_cv_CC_dependencies_compiler_type=$depmode
4381 break
4384 done
4386 cd ..
4387 rm -rf conftest.dir
4388 else
4389 am_cv_CC_dependencies_compiler_type=none
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4398 test "x$enable_dependency_tracking" != xno \
4399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400 am__fastdepCC_TRUE=
4401 am__fastdepCC_FALSE='#'
4402 else
4403 am__fastdepCC_TRUE='#'
4404 am__fastdepCC_FALSE=
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}ar; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_AR+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$AR"; then
4419 ac_cv_prog_AR="$AR" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_AR="${ac_tool_prefix}ar"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 AR=$ac_cv_prog_AR
4439 if test -n "$AR"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4441 $as_echo "$AR" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$ac_cv_prog_AR"; then
4450 ac_ct_AR=$AR
4451 # Extract the first word of "ar", so it can be a program name with args.
4452 set dummy ar; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_AR"; then
4459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_AR="ar"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4479 if test -n "$ac_ct_AR"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4481 $as_echo "$ac_ct_AR" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4487 if test "x$ac_ct_AR" = x; then
4488 AR=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 AR=$ac_ct_AR
4498 else
4499 AR="$ac_cv_prog_AR"
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$RANLIB"; then
4511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 RANLIB=$ac_cv_prog_RANLIB
4531 if test -n "$RANLIB"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4533 $as_echo "$RANLIB" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4541 if test -z "$ac_cv_prog_RANLIB"; then
4542 ac_ct_RANLIB=$RANLIB
4543 # Extract the first word of "ranlib", so it can be a program name with args.
4544 set dummy ranlib; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_RANLIB"; then
4551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_RANLIB="ranlib"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571 if test -n "$ac_ct_RANLIB"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4573 $as_echo "$ac_ct_RANLIB" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4579 if test "x$ac_ct_RANLIB" = x; then
4580 RANLIB=":"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588 RANLIB=$ac_ct_RANLIB
4590 else
4591 RANLIB="$ac_cv_prog_RANLIB"
4595 # Check whether --enable-shared was given.
4596 if test "${enable_shared+set}" = set; then :
4597 enableval=$enable_shared; p=${PACKAGE-default}
4598 case $enableval in
4599 yes) enable_shared=yes ;;
4600 no) enable_shared=no ;;
4602 enable_shared=no
4603 # Look at the argument we got. We use all the common list separators.
4604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4605 for pkg in $enableval; do
4606 IFS="$lt_save_ifs"
4607 if test "X$pkg" = "X$p"; then
4608 enable_shared=yes
4610 done
4611 IFS="$lt_save_ifs"
4613 esac
4614 else
4615 enable_shared=no
4627 ac_ext=c
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_CC+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$CC"; then
4641 ac_cv_prog_CC="$CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$ac_cv_prog_CC"; then
4672 ac_ct_CC=$CC
4673 # Extract the first word of "gcc", so it can be a program name with args.
4674 set dummy gcc; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_CC="gcc"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4696 IFS=$as_save_IFS
4700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 $as_echo "$ac_ct_CC" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4709 if test "x$ac_ct_CC" = x; then
4710 CC=""
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718 CC=$ac_ct_CC
4720 else
4721 CC="$ac_cv_prog_CC"
4724 if test -z "$CC"; then
4725 if test -n "$ac_tool_prefix"; then
4726 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4727 set dummy ${ac_tool_prefix}cc; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_prog_CC+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_CC="${ac_tool_prefix}cc"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4753 CC=$ac_cv_prog_CC
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4765 if test -z "$CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_prog_CC+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 if test -n "$CC"; then
4774 ac_cv_prog_CC="$CC" # Let the user override the test.
4775 else
4776 ac_prog_rejected=no
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected=yes
4786 continue
4788 ac_cv_prog_CC="cc"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4796 if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy $ac_cv_prog_CC
4799 shift
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set CC to just the basename; use the full file name.
4804 shift
4805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4810 CC=$ac_cv_prog_CC
4811 if test -n "$CC"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4813 $as_echo "$CC" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4821 if test -z "$CC"; then
4822 if test -n "$ac_tool_prefix"; then
4823 for ac_prog in cl.exe
4825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 CC=$ac_cv_prog_CC
4853 if test -n "$CC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4855 $as_echo "$CC" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4862 test -n "$CC" && break
4863 done
4865 if test -z "$CC"; then
4866 ac_ct_CC=$CC
4867 for ac_prog in cl.exe
4869 # Extract the first word of "$ac_prog", so it can be a program name with args.
4870 set dummy $ac_prog; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -n "$ac_ct_CC"; then
4877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_ac_ct_CC="$ac_prog"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4897 if test -n "$ac_ct_CC"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4899 $as_echo "$ac_ct_CC" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 test -n "$ac_ct_CC" && break
4907 done
4909 if test "x$ac_ct_CC" = x; then
4910 CC=""
4911 else
4912 case $cross_compiling:$ac_tool_warned in
4913 yes:)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4916 ac_tool_warned=yes ;;
4917 esac
4918 CC=$ac_ct_CC
4925 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4927 as_fn_error "no acceptable C compiler found in \$PATH
4928 See \`config.log' for more details." "$LINENO" 5; }
4930 # Provide some information about the compiler.
4931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4932 set X $ac_compile
4933 ac_compiler=$2
4934 for ac_option in --version -v -V -qversion; do
4935 { { ac_try="$ac_compiler $ac_option >&5"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4941 $as_echo "$ac_try_echo"; } >&5
4942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4943 ac_status=$?
4944 if test -s conftest.err; then
4945 sed '10a\
4946 ... rest of stderr output deleted ...
4947 10q' conftest.err >conftest.er1
4948 cat conftest.er1 >&5
4949 rm -f conftest.er1 conftest.err
4951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; }
4953 done
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4956 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4957 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4964 main ()
4966 #ifndef __GNUC__
4967 choke me
4968 #endif
4971 return 0;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 ac_compiler_gnu=yes
4976 else
4977 ac_compiler_gnu=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4984 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4985 if test $ac_compiler_gnu = yes; then
4986 GCC=yes
4987 else
4988 GCC=
4990 ac_test_CFLAGS=${CFLAGS+set}
4991 ac_save_CFLAGS=$CFLAGS
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4993 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4994 if test "${ac_cv_prog_cc_g+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 ac_save_c_werror_flag=$ac_c_werror_flag
4998 ac_c_werror_flag=yes
4999 ac_cv_prog_cc_g=no
5000 CFLAGS="-g"
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5005 main ()
5009 return 0;
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_prog_cc_g=yes
5014 else
5015 CFLAGS=""
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5020 main ()
5024 return 0;
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5029 else
5030 ac_c_werror_flag=$ac_save_c_werror_flag
5031 CFLAGS="-g"
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5036 main ()
5040 return 0;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_prog_cc_g=yes
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 ac_c_werror_flag=$ac_save_c_werror_flag
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5054 $as_echo "$ac_cv_prog_cc_g" >&6; }
5055 if test "$ac_test_CFLAGS" = set; then
5056 CFLAGS=$ac_save_CFLAGS
5057 elif test $ac_cv_prog_cc_g = yes; then
5058 if test "$GCC" = yes; then
5059 CFLAGS="-g -O2"
5060 else
5061 CFLAGS="-g"
5063 else
5064 if test "$GCC" = yes; then
5065 CFLAGS="-O2"
5066 else
5067 CFLAGS=
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5071 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5072 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 ac_cv_prog_cc_c89=no
5076 ac_save_CC=$CC
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <stdarg.h>
5080 #include <stdio.h>
5081 #include <sys/types.h>
5082 #include <sys/stat.h>
5083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5084 struct buf { int x; };
5085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5086 static char *e (p, i)
5087 char **p;
5088 int i;
5090 return p[i];
5092 static char *f (char * (*g) (char **, int), char **p, ...)
5094 char *s;
5095 va_list v;
5096 va_start (v,p);
5097 s = g (p, va_arg (v,int));
5098 va_end (v);
5099 return s;
5102 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5103 function prototypes and stuff, but not '\xHH' hex character constants.
5104 These don't provoke an error unfortunately, instead are silently treated
5105 as 'x'. The following induces an error, until -std is added to get
5106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5107 array size at least. It's necessary to write '\x00'==0 to get something
5108 that's true only with -std. */
5109 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5111 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5112 inside strings and character constants. */
5113 #define FOO(x) 'x'
5114 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5116 int test (int i, double x);
5117 struct s1 {int (*f) (int a);};
5118 struct s2 {int (*f) (double a);};
5119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5120 int argc;
5121 char **argv;
5123 main ()
5125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5127 return 0;
5129 _ACEOF
5130 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5133 CC="$ac_save_CC $ac_arg"
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_prog_cc_c89=$ac_arg
5137 rm -f core conftest.err conftest.$ac_objext
5138 test "x$ac_cv_prog_cc_c89" != "xno" && break
5139 done
5140 rm -f conftest.$ac_ext
5141 CC=$ac_save_CC
5144 # AC_CACHE_VAL
5145 case "x$ac_cv_prog_cc_c89" in
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5148 $as_echo "none needed" >&6; } ;;
5149 xno)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5151 $as_echo "unsupported" >&6; } ;;
5153 CC="$CC $ac_cv_prog_cc_c89"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5155 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5156 esac
5157 if test "x$ac_cv_prog_cc_c89" != xno; then :
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 ac_ext=c
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5173 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5174 # On Suns, sometimes $CPP names a directory.
5175 if test -n "$CPP" && test -d "$CPP"; then
5176 CPP=
5178 if test -z "$CPP"; then
5179 if test "${ac_cv_prog_CPP+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 # Double quotes because CPP needs to be expanded
5183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5185 ac_preproc_ok=false
5186 for ac_c_preproc_warn_flag in '' yes
5188 # Use a header file that comes with gcc, so configuring glibc
5189 # with a fresh cross-compiler works.
5190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5191 # <limits.h> exists even on freestanding compilers.
5192 # On the NeXT, cc -E runs the code through the compiler's parser,
5193 # not just through cpp. "Syntax error" is here to catch this case.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201 Syntax error
5202 _ACEOF
5203 if ac_fn_c_try_cpp "$LINENO"; then :
5205 else
5206 # Broken: fails on valid input.
5207 continue
5209 rm -f conftest.err conftest.$ac_ext
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5216 _ACEOF
5217 if ac_fn_c_try_cpp "$LINENO"; then :
5218 # Broken: success on invalid input.
5219 continue
5220 else
5221 # Passes both tests.
5222 ac_preproc_ok=:
5223 break
5225 rm -f conftest.err conftest.$ac_ext
5227 done
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then :
5231 break
5234 done
5235 ac_cv_prog_CPP=$CPP
5238 CPP=$ac_cv_prog_CPP
5239 else
5240 ac_cv_prog_CPP=$CPP
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5243 $as_echo "$CPP" >&6; }
5244 ac_preproc_ok=false
5245 for ac_c_preproc_warn_flag in '' yes
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #ifdef __STDC__
5256 # include <limits.h>
5257 #else
5258 # include <assert.h>
5259 #endif
5260 Syntax error
5261 _ACEOF
5262 if ac_fn_c_try_cpp "$LINENO"; then :
5264 else
5265 # Broken: fails on valid input.
5266 continue
5268 rm -f conftest.err conftest.$ac_ext
5270 # OK, works on sane cases. Now check whether nonexistent headers
5271 # can be detected and how.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5275 _ACEOF
5276 if ac_fn_c_try_cpp "$LINENO"; then :
5277 # Broken: success on invalid input.
5278 continue
5279 else
5280 # Passes both tests.
5281 ac_preproc_ok=:
5282 break
5284 rm -f conftest.err conftest.$ac_ext
5286 done
5287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5288 rm -f conftest.err conftest.$ac_ext
5289 if $ac_preproc_ok; then :
5291 else
5292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5294 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5295 See \`config.log' for more details." "$LINENO" 5; }
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
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5306 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5307 if test "${ac_cv_path_GREP+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if test -z "$GREP"; then
5311 ac_path_GREP_found=false
5312 # Loop through the user's path and test for each of PROGNAME-LIST
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_prog in grep ggrep; do
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5321 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5322 # Check for GNU ac_path_GREP and select it if it is found.
5323 # Check for GNU $ac_path_GREP
5324 case `"$ac_path_GREP" --version 2>&1` in
5325 *GNU*)
5326 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5328 ac_count=0
5329 $as_echo_n 0123456789 >"conftest.in"
5330 while :
5332 cat "conftest.in" "conftest.in" >"conftest.tmp"
5333 mv "conftest.tmp" "conftest.in"
5334 cp "conftest.in" "conftest.nl"
5335 $as_echo 'GREP' >> "conftest.nl"
5336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5338 as_fn_arith $ac_count + 1 && ac_count=$as_val
5339 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5340 # Best one so far, save it but keep looking for a better one
5341 ac_cv_path_GREP="$ac_path_GREP"
5342 ac_path_GREP_max=$ac_count
5344 # 10*(2^10) chars as input seems more than enough
5345 test $ac_count -gt 10 && break
5346 done
5347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348 esac
5350 $ac_path_GREP_found && break 3
5351 done
5352 done
5353 done
5354 IFS=$as_save_IFS
5355 if test -z "$ac_cv_path_GREP"; then
5356 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358 else
5359 ac_cv_path_GREP=$GREP
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5364 $as_echo "$ac_cv_path_GREP" >&6; }
5365 GREP="$ac_cv_path_GREP"
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5369 $as_echo_n "checking for egrep... " >&6; }
5370 if test "${ac_cv_path_EGREP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5374 then ac_cv_path_EGREP="$GREP -E"
5375 else
5376 if test -z "$EGREP"; then
5377 ac_path_EGREP_found=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_prog in egrep; do
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5388 # Check for GNU ac_path_EGREP and select it if it is found.
5389 # Check for GNU $ac_path_EGREP
5390 case `"$ac_path_EGREP" --version 2>&1` in
5391 *GNU*)
5392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5394 ac_count=0
5395 $as_echo_n 0123456789 >"conftest.in"
5396 while :
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'EGREP' >> "conftest.nl"
5402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_EGREP="$ac_path_EGREP"
5408 ac_path_EGREP_max=$ac_count
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5416 $ac_path_EGREP_found && break 3
5417 done
5418 done
5419 done
5420 IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_EGREP"; then
5422 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5424 else
5425 ac_cv_path_EGREP=$EGREP
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5431 $as_echo "$ac_cv_path_EGREP" >&6; }
5432 EGREP="$ac_cv_path_EGREP"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5436 $as_echo_n "checking for ANSI C header files... " >&6; }
5437 if test "${ac_cv_header_stdc+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <stdlib.h>
5443 #include <stdarg.h>
5444 #include <string.h>
5445 #include <float.h>
5448 main ()
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_header_stdc=yes
5457 else
5458 ac_cv_header_stdc=no
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 if test $ac_cv_header_stdc = yes; then
5463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <string.h>
5468 _ACEOF
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "memchr" >/dev/null 2>&1; then :
5472 else
5473 ac_cv_header_stdc=no
5475 rm -f conftest*
5479 if test $ac_cv_header_stdc = yes; then
5480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #include <stdlib.h>
5485 _ACEOF
5486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487 $EGREP "free" >/dev/null 2>&1; then :
5489 else
5490 ac_cv_header_stdc=no
5492 rm -f conftest*
5496 if test $ac_cv_header_stdc = yes; then
5497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5498 if test "$cross_compiling" = yes; then :
5500 else
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <ctype.h>
5504 #include <stdlib.h>
5505 #if ((' ' & 0x0FF) == 0x020)
5506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5508 #else
5509 # define ISLOWER(c) \
5510 (('a' <= (c) && (c) <= 'i') \
5511 || ('j' <= (c) && (c) <= 'r') \
5512 || ('s' <= (c) && (c) <= 'z'))
5513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5514 #endif
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5518 main ()
5520 int i;
5521 for (i = 0; i < 256; i++)
5522 if (XOR (islower (i), ISLOWER (i))
5523 || toupper (i) != TOUPPER (i))
5524 return 2;
5525 return 0;
5527 _ACEOF
5528 if ac_fn_c_try_run "$LINENO"; then :
5530 else
5531 ac_cv_header_stdc=no
5533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5534 conftest.$ac_objext conftest.beam conftest.$ac_ext
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5540 $as_echo "$ac_cv_header_stdc" >&6; }
5541 if test $ac_cv_header_stdc = yes; then
5543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5549 inttypes.h stdint.h unistd.h
5550 do :
5551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5552 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5554 eval as_val=\$$as_ac_Header
5555 if test "x$as_val" = x""yes; then :
5556 cat >>confdefs.h <<_ACEOF
5557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558 _ACEOF
5562 done
5566 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5567 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5568 MINIX=yes
5569 else
5570 MINIX=
5574 if test "$MINIX" = yes; then
5576 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5579 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5582 $as_echo "#define _MINIX 1" >>confdefs.h
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5588 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5589 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5595 # define __EXTENSIONS__ 1
5596 $ac_includes_default
5598 main ()
5602 return 0;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 ac_cv_safe_to_define___extensions__=yes
5607 else
5608 ac_cv_safe_to_define___extensions__=no
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5613 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5614 test $ac_cv_safe_to_define___extensions__ = yes &&
5615 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5617 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5619 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5621 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5623 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5629 case `pwd` in
5630 *\ * | *\ *)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5632 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5633 esac
5637 macro_version='2.2.6'
5638 macro_revision='1.3012'
5652 ltmain="$ac_aux_dir/ltmain.sh"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5655 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5656 if test "${ac_cv_path_SED+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5660 for ac_i in 1 2 3 4 5 6 7; do
5661 ac_script="$ac_script$as_nl$ac_script"
5662 done
5663 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5664 { ac_script=; unset ac_script;}
5665 if test -z "$SED"; then
5666 ac_path_SED_found=false
5667 # Loop through the user's path and test for each of PROGNAME-LIST
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_prog in sed gsed; do
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5676 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5677 # Check for GNU ac_path_SED and select it if it is found.
5678 # Check for GNU $ac_path_SED
5679 case `"$ac_path_SED" --version 2>&1` in
5680 *GNU*)
5681 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5683 ac_count=0
5684 $as_echo_n 0123456789 >"conftest.in"
5685 while :
5687 cat "conftest.in" "conftest.in" >"conftest.tmp"
5688 mv "conftest.tmp" "conftest.in"
5689 cp "conftest.in" "conftest.nl"
5690 $as_echo '' >> "conftest.nl"
5691 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5693 as_fn_arith $ac_count + 1 && ac_count=$as_val
5694 if test $ac_count -gt ${ac_path_SED_max-0}; then
5695 # Best one so far, save it but keep looking for a better one
5696 ac_cv_path_SED="$ac_path_SED"
5697 ac_path_SED_max=$ac_count
5699 # 10*(2^10) chars as input seems more than enough
5700 test $ac_count -gt 10 && break
5701 done
5702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5703 esac
5705 $ac_path_SED_found && break 3
5706 done
5707 done
5708 done
5709 IFS=$as_save_IFS
5710 if test -z "$ac_cv_path_SED"; then
5711 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5713 else
5714 ac_cv_path_SED=$SED
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5719 $as_echo "$ac_cv_path_SED" >&6; }
5720 SED="$ac_cv_path_SED"
5721 rm -f conftest.sed
5723 test -z "$SED" && SED=sed
5724 Xsed="$SED -e 1s/^X//"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5737 $as_echo_n "checking for fgrep... " >&6; }
5738 if test "${ac_cv_path_FGREP+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5742 then ac_cv_path_FGREP="$GREP -F"
5743 else
5744 if test -z "$FGREP"; then
5745 ac_path_FGREP_found=false
5746 # Loop through the user's path and test for each of PROGNAME-LIST
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5750 IFS=$as_save_IFS
5751 test -z "$as_dir" && as_dir=.
5752 for ac_prog in fgrep; do
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5755 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5756 # Check for GNU ac_path_FGREP and select it if it is found.
5757 # Check for GNU $ac_path_FGREP
5758 case `"$ac_path_FGREP" --version 2>&1` in
5759 *GNU*)
5760 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5762 ac_count=0
5763 $as_echo_n 0123456789 >"conftest.in"
5764 while :
5766 cat "conftest.in" "conftest.in" >"conftest.tmp"
5767 mv "conftest.tmp" "conftest.in"
5768 cp "conftest.in" "conftest.nl"
5769 $as_echo 'FGREP' >> "conftest.nl"
5770 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5772 as_fn_arith $ac_count + 1 && ac_count=$as_val
5773 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5774 # Best one so far, save it but keep looking for a better one
5775 ac_cv_path_FGREP="$ac_path_FGREP"
5776 ac_path_FGREP_max=$ac_count
5778 # 10*(2^10) chars as input seems more than enough
5779 test $ac_count -gt 10 && break
5780 done
5781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5782 esac
5784 $ac_path_FGREP_found && break 3
5785 done
5786 done
5787 done
5788 IFS=$as_save_IFS
5789 if test -z "$ac_cv_path_FGREP"; then
5790 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5792 else
5793 ac_cv_path_FGREP=$FGREP
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5799 $as_echo "$ac_cv_path_FGREP" >&6; }
5800 FGREP="$ac_cv_path_FGREP"
5803 test -z "$GREP" && GREP=grep
5823 # Check whether --with-gnu-ld was given.
5824 if test "${with_gnu_ld+set}" = set; then :
5825 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5826 else
5827 with_gnu_ld=no
5830 ac_prog=ld
5831 if test "$GCC" = yes; then
5832 # Check if gcc -print-prog-name=ld gives a path.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5834 $as_echo_n "checking for ld used by $CC... " >&6; }
5835 case $host in
5836 *-*-mingw*)
5837 # gcc leaves a trailing carriage return which upsets mingw
5838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5841 esac
5842 case $ac_prog in
5843 # Accept absolute paths.
5844 [\\/]* | ?:[\\/]*)
5845 re_direlt='/[^/][^/]*/\.\./'
5846 # Canonicalize the pathname of ld
5847 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5848 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5849 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5850 done
5851 test -z "$LD" && LD="$ac_prog"
5854 # If it fails, then pretend we aren't using GCC.
5855 ac_prog=ld
5858 # If it is relative, then search for the first ld in PATH.
5859 with_gnu_ld=unknown
5861 esac
5862 elif test "$with_gnu_ld" = yes; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5864 $as_echo_n "checking for GNU ld... " >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5867 $as_echo_n "checking for non-GNU ld... " >&6; }
5869 if test "${lt_cv_path_LD+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -z "$LD"; then
5873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5874 for ac_dir in $PATH; do
5875 IFS="$lt_save_ifs"
5876 test -z "$ac_dir" && ac_dir=.
5877 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5878 lt_cv_path_LD="$ac_dir/$ac_prog"
5879 # Check to see if the program is GNU ld. I'd rather use --version,
5880 # but apparently some variants of GNU ld only accept -v.
5881 # Break only if it was the GNU/non-GNU ld that we prefer.
5882 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5883 *GNU* | *'with BFD'*)
5884 test "$with_gnu_ld" != no && break
5887 test "$with_gnu_ld" != yes && break
5889 esac
5891 done
5892 IFS="$lt_save_ifs"
5893 else
5894 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5898 LD="$lt_cv_path_LD"
5899 if test -n "$LD"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5901 $as_echo "$LD" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5906 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5909 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5913 case `$LD -v 2>&1 </dev/null` in
5914 *GNU* | *'with BFD'*)
5915 lt_cv_prog_gnu_ld=yes
5918 lt_cv_prog_gnu_ld=no
5920 esac
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5923 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5924 with_gnu_ld=$lt_cv_prog_gnu_ld
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5935 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5936 if test "${lt_cv_path_NM+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 if test -n "$NM"; then
5940 # Let the user override the test.
5941 lt_cv_path_NM="$NM"
5942 else
5943 lt_nm_to_check="${ac_tool_prefix}nm"
5944 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5945 lt_nm_to_check="$lt_nm_to_check nm"
5947 for lt_tmp_nm in $lt_nm_to_check; do
5948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5950 IFS="$lt_save_ifs"
5951 test -z "$ac_dir" && ac_dir=.
5952 tmp_nm="$ac_dir/$lt_tmp_nm"
5953 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
5957 # Tru64's nm complains that /dev/null is an invalid object file
5958 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5959 */dev/null* | *'Invalid file or object type'*)
5960 lt_cv_path_NM="$tmp_nm -B"
5961 break
5964 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5965 */dev/null*)
5966 lt_cv_path_NM="$tmp_nm -p"
5967 break
5970 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5971 continue # so that we can try to find one that supports BSD flags
5973 esac
5975 esac
5977 done
5978 IFS="$lt_save_ifs"
5979 done
5980 : ${lt_cv_path_NM=no}
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5984 $as_echo "$lt_cv_path_NM" >&6; }
5985 if test "$lt_cv_path_NM" != "no"; then
5986 NM="$lt_cv_path_NM"
5987 else
5988 # Didn't find any BSD compatible name lister, look for dumpbin.
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$DUMPBIN"; then
6000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6013 done
6014 done
6015 IFS=$as_save_IFS
6019 DUMPBIN=$ac_cv_prog_DUMPBIN
6020 if test -n "$DUMPBIN"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022 $as_echo "$DUMPBIN" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6029 test -n "$DUMPBIN" && break
6030 done
6032 if test -z "$DUMPBIN"; then
6033 ac_ct_DUMPBIN=$DUMPBIN
6034 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037 set dummy $ac_prog; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$ac_ct_DUMPBIN"; then
6044 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6064 if test -n "$ac_ct_DUMPBIN"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066 $as_echo "$ac_ct_DUMPBIN" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6073 test -n "$ac_ct_DUMPBIN" && break
6074 done
6076 if test "x$ac_ct_DUMPBIN" = x; then
6077 DUMPBIN=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080 yes:)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083 ac_tool_warned=yes ;;
6084 esac
6085 DUMPBIN=$ac_ct_DUMPBIN
6090 if test "$DUMPBIN" != ":"; then
6091 NM="$DUMPBIN"
6094 test -z "$NM" && NM=nm
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6102 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6103 if test "${lt_cv_nm_interface+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 lt_cv_nm_interface="BSD nm"
6107 echo "int some_variable = 0;" > conftest.$ac_ext
6108 (eval echo "\"\$as_me:6108: $ac_compile\"" >&5)
6109 (eval "$ac_compile" 2>conftest.err)
6110 cat conftest.err >&5
6111 (eval echo "\"\$as_me:6111: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6112 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6113 cat conftest.err >&5
6114 (eval echo "\"\$as_me:6114: output\"" >&5)
6115 cat conftest.out >&5
6116 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6117 lt_cv_nm_interface="MS dumpbin"
6119 rm -f conftest*
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6122 $as_echo "$lt_cv_nm_interface" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6125 $as_echo_n "checking whether ln -s works... " >&6; }
6126 LN_S=$as_ln_s
6127 if test "$LN_S" = "ln -s"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6129 $as_echo "yes" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6132 $as_echo "no, using $LN_S" >&6; }
6135 # find the maximum length of command line arguments
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6137 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6138 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6142 teststring="ABCD"
6144 case $build_os in
6145 msdosdjgpp*)
6146 # On DJGPP, this test can blow up pretty badly due to problems in libc
6147 # (any single argument exceeding 2000 bytes causes a buffer overrun
6148 # during glob expansion). Even if it were fixed, the result of this
6149 # check would be larger than it should be.
6150 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6153 gnu*)
6154 # Under GNU Hurd, this test is not required because there is
6155 # no limit to the length of command line arguments.
6156 # Libtool will interpret -1 as no limit whatsoever
6157 lt_cv_sys_max_cmd_len=-1;
6160 cygwin* | mingw* | cegcc*)
6161 # On Win9x/ME, this test blows up -- it succeeds, but takes
6162 # about 5 minutes as the teststring grows exponentially.
6163 # Worse, since 9x/ME are not pre-emptively multitasking,
6164 # you end up with a "frozen" computer, even though with patience
6165 # the test eventually succeeds (with a max line length of 256k).
6166 # Instead, let's just punt: use the minimum linelength reported by
6167 # all of the supported platforms: 8192 (on NT/2K/XP).
6168 lt_cv_sys_max_cmd_len=8192;
6171 amigaos*)
6172 # On AmigaOS with pdksh, this test takes hours, literally.
6173 # So we just punt and use a minimum line length of 8192.
6174 lt_cv_sys_max_cmd_len=8192;
6177 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6178 # This has been around since 386BSD, at least. Likely further.
6179 if test -x /sbin/sysctl; then
6180 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6181 elif test -x /usr/sbin/sysctl; then
6182 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6183 else
6184 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6186 # And add a safety zone
6187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6191 interix*)
6192 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6193 lt_cv_sys_max_cmd_len=196608
6196 osf*)
6197 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6198 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6199 # nice to cause kernel panics so lets avoid the loop below.
6200 # First set a reasonable default.
6201 lt_cv_sys_max_cmd_len=16384
6203 if test -x /sbin/sysconfig; then
6204 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6205 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6206 esac
6209 sco3.2v5*)
6210 lt_cv_sys_max_cmd_len=102400
6212 sysv5* | sco5v6* | sysv4.2uw2*)
6213 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6214 if test -n "$kargmax"; then
6215 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6216 else
6217 lt_cv_sys_max_cmd_len=32768
6221 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6222 if test -n "$lt_cv_sys_max_cmd_len"; then
6223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6225 else
6226 # Make teststring a little bigger before we do anything with it.
6227 # a 1K string should be a reasonable start.
6228 for i in 1 2 3 4 5 6 7 8 ; do
6229 teststring=$teststring$teststring
6230 done
6231 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6232 # If test is not a shell built-in, we'll probably end up computing a
6233 # maximum length that is only half of the actual maximum length, but
6234 # we can't tell.
6235 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6236 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6237 test $i != 17 # 1/2 MB should be enough
6239 i=`expr $i + 1`
6240 teststring=$teststring$teststring
6241 done
6242 # Only check the string length outside the loop.
6243 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6244 teststring=
6245 # Add a significant safety factor because C++ compilers can tack on
6246 # massive amounts of additional arguments before passing them to the
6247 # linker. It appears as though 1/2 is a usable value.
6248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6251 esac
6255 if test -n $lt_cv_sys_max_cmd_len ; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6257 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6260 $as_echo "none" >&6; }
6262 max_cmd_len=$lt_cv_sys_max_cmd_len
6269 : ${CP="cp -f"}
6270 : ${MV="mv -f"}
6271 : ${RM="rm -f"}
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6274 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6275 # Try some XSI features
6276 xsi_shell=no
6277 ( _lt_dummy="a/b/c"
6278 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6279 = c,a/b,, \
6280 && eval 'test $(( 1 + 1 )) -eq 2 \
6281 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6282 && xsi_shell=yes
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6284 $as_echo "$xsi_shell" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6288 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6289 lt_shell_append=no
6290 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6291 >/dev/null 2>&1 \
6292 && lt_shell_append=yes
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6294 $as_echo "$lt_shell_append" >&6; }
6297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6298 lt_unset=unset
6299 else
6300 lt_unset=false
6307 # test EBCDIC or ASCII
6308 case `echo X|tr X '\101'` in
6309 A) # ASCII based system
6310 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6311 lt_SP2NL='tr \040 \012'
6312 lt_NL2SP='tr \015\012 \040\040'
6314 *) # EBCDIC based system
6315 lt_SP2NL='tr \100 \n'
6316 lt_NL2SP='tr \r\n \100\100'
6318 esac
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6329 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6330 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 lt_cv_ld_reload_flag='-r'
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6336 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6337 reload_flag=$lt_cv_ld_reload_flag
6338 case $reload_flag in
6339 "" | " "*) ;;
6340 *) reload_flag=" $reload_flag" ;;
6341 esac
6342 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6343 case $host_os in
6344 darwin*)
6345 if test "$GCC" = yes; then
6346 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6347 else
6348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6351 esac
6361 if test -n "$ac_tool_prefix"; then
6362 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6363 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$OBJDUMP"; then
6370 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6383 done
6384 done
6385 IFS=$as_save_IFS
6389 OBJDUMP=$ac_cv_prog_OBJDUMP
6390 if test -n "$OBJDUMP"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6392 $as_echo "$OBJDUMP" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6400 if test -z "$ac_cv_prog_OBJDUMP"; then
6401 ac_ct_OBJDUMP=$OBJDUMP
6402 # Extract the first word of "objdump", so it can be a program name with args.
6403 set dummy objdump; ac_word=$2
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 if test -n "$ac_ct_OBJDUMP"; then
6410 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6415 IFS=$as_save_IFS
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 break 2
6423 done
6424 done
6425 IFS=$as_save_IFS
6429 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6430 if test -n "$ac_ct_OBJDUMP"; then
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6432 $as_echo "$ac_ct_OBJDUMP" >&6; }
6433 else
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6435 $as_echo "no" >&6; }
6438 if test "x$ac_ct_OBJDUMP" = x; then
6439 OBJDUMP="false"
6440 else
6441 case $cross_compiling:$ac_tool_warned in
6442 yes:)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6445 ac_tool_warned=yes ;;
6446 esac
6447 OBJDUMP=$ac_ct_OBJDUMP
6449 else
6450 OBJDUMP="$ac_cv_prog_OBJDUMP"
6453 test -z "$OBJDUMP" && OBJDUMP=objdump
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6464 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6465 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6468 lt_cv_file_magic_cmd='$MAGIC_CMD'
6469 lt_cv_file_magic_test_file=
6470 lt_cv_deplibs_check_method='unknown'
6471 # Need to set the preceding variable on all platforms that support
6472 # interlibrary dependencies.
6473 # 'none' -- dependencies not supported.
6474 # `unknown' -- same as none, but documents that we really don't know.
6475 # 'pass_all' -- all dependencies passed with no checks.
6476 # 'test_compile' -- check by making test program.
6477 # 'file_magic [[regex]]' -- check by looking for files in library path
6478 # which responds to the $file_magic_cmd with a given extended regex.
6479 # If you have `file' or equivalent on your system and you're not sure
6480 # whether `pass_all' will *always* work, you probably want this one.
6482 case $host_os in
6483 aix[4-9]*)
6484 lt_cv_deplibs_check_method=pass_all
6487 beos*)
6488 lt_cv_deplibs_check_method=pass_all
6491 bsdi[45]*)
6492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6493 lt_cv_file_magic_cmd='/usr/bin/file -L'
6494 lt_cv_file_magic_test_file=/shlib/libc.so
6497 cygwin*)
6498 # func_win32_libid is a shell function defined in ltmain.sh
6499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6500 lt_cv_file_magic_cmd='func_win32_libid'
6503 mingw* | pw32*)
6504 # Base MSYS/MinGW do not provide the 'file' command needed by
6505 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6506 # unless we find 'file', for example because we are cross-compiling.
6507 if ( file / ) >/dev/null 2>&1; then
6508 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6509 lt_cv_file_magic_cmd='func_win32_libid'
6510 else
6511 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6512 lt_cv_file_magic_cmd='$OBJDUMP -f'
6516 cegcc)
6517 # use the weaker test based on 'objdump'. See mingw*.
6518 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6519 lt_cv_file_magic_cmd='$OBJDUMP -f'
6522 darwin* | rhapsody*)
6523 lt_cv_deplibs_check_method=pass_all
6526 freebsd* | dragonfly*)
6527 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6528 case $host_cpu in
6529 i*86 )
6530 # Not sure whether the presence of OpenBSD here was a mistake.
6531 # Let's accept both of them until this is cleared up.
6532 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6533 lt_cv_file_magic_cmd=/usr/bin/file
6534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6536 esac
6537 else
6538 lt_cv_deplibs_check_method=pass_all
6542 gnu*)
6543 lt_cv_deplibs_check_method=pass_all
6546 hpux10.20* | hpux11*)
6547 lt_cv_file_magic_cmd=/usr/bin/file
6548 case $host_cpu in
6549 ia64*)
6550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6551 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6553 hppa*64*)
6554 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]'
6555 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6558 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6559 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6561 esac
6564 interix[3-9]*)
6565 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6569 irix5* | irix6* | nonstopux*)
6570 case $LD in
6571 *-32|*"-32 ") libmagic=32-bit;;
6572 *-n32|*"-n32 ") libmagic=N32;;
6573 *-64|*"-64 ") libmagic=64-bit;;
6574 *) libmagic=never-match;;
6575 esac
6576 lt_cv_deplibs_check_method=pass_all
6579 # This must be Linux ELF.
6580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6581 lt_cv_deplibs_check_method=pass_all
6584 netbsd*)
6585 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6587 else
6588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6592 newos6*)
6593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6594 lt_cv_file_magic_cmd=/usr/bin/file
6595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6598 *nto* | *qnx*)
6599 lt_cv_deplibs_check_method=pass_all
6602 openbsd*)
6603 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6605 else
6606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6610 osf3* | osf4* | osf5*)
6611 lt_cv_deplibs_check_method=pass_all
6614 rdos*)
6615 lt_cv_deplibs_check_method=pass_all
6618 solaris*)
6619 lt_cv_deplibs_check_method=pass_all
6622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6623 lt_cv_deplibs_check_method=pass_all
6626 sysv4 | sysv4.3*)
6627 case $host_vendor in
6628 motorola)
6629 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]'
6630 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6632 ncr)
6633 lt_cv_deplibs_check_method=pass_all
6635 sequent)
6636 lt_cv_file_magic_cmd='/bin/file'
6637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6639 sni)
6640 lt_cv_file_magic_cmd='/bin/file'
6641 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6642 lt_cv_file_magic_test_file=/lib/libc.so
6644 siemens)
6645 lt_cv_deplibs_check_method=pass_all
6648 lt_cv_deplibs_check_method=pass_all
6650 esac
6653 tpf*)
6654 lt_cv_deplibs_check_method=pass_all
6656 esac
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6660 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6661 file_magic_cmd=$lt_cv_file_magic_cmd
6662 deplibs_check_method=$lt_cv_deplibs_check_method
6663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}ar; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_prog_AR+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$AR"; then
6685 ac_cv_prog_AR="$AR" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_AR="${ac_tool_prefix}ar"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6698 done
6699 done
6700 IFS=$as_save_IFS
6704 AR=$ac_cv_prog_AR
6705 if test -n "$AR"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6707 $as_echo "$AR" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6715 if test -z "$ac_cv_prog_AR"; then
6716 ac_ct_AR=$AR
6717 # Extract the first word of "ar", so it can be a program name with args.
6718 set dummy ar; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_AR"; then
6725 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_AR="ar"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6745 if test -n "$ac_ct_AR"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6747 $as_echo "$ac_ct_AR" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_ct_AR" = x; then
6754 AR="false"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 AR=$ac_ct_AR
6764 else
6765 AR="$ac_cv_prog_AR"
6768 test -z "$AR" && AR=ar
6769 test -z "$AR_FLAGS" && AR_FLAGS=cru
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}strip; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if test "${ac_cv_prog_STRIP+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$STRIP"; then
6790 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6803 done
6804 done
6805 IFS=$as_save_IFS
6809 STRIP=$ac_cv_prog_STRIP
6810 if test -n "$STRIP"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6812 $as_echo "$STRIP" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6820 if test -z "$ac_cv_prog_STRIP"; then
6821 ac_ct_STRIP=$STRIP
6822 # Extract the first word of "strip", so it can be a program name with args.
6823 set dummy strip; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$ac_ct_STRIP"; then
6830 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_ac_ct_STRIP="strip"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6843 done
6844 done
6845 IFS=$as_save_IFS
6849 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6850 if test -n "$ac_ct_STRIP"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6852 $as_echo "$ac_ct_STRIP" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6858 if test "x$ac_ct_STRIP" = x; then
6859 STRIP=":"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865 ac_tool_warned=yes ;;
6866 esac
6867 STRIP=$ac_ct_STRIP
6869 else
6870 STRIP="$ac_cv_prog_STRIP"
6873 test -z "$STRIP" && STRIP=:
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -n "$RANLIB"; then
6889 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6902 done
6903 done
6904 IFS=$as_save_IFS
6908 RANLIB=$ac_cv_prog_RANLIB
6909 if test -n "$RANLIB"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6911 $as_echo "$RANLIB" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_prog_RANLIB"; then
6920 ac_ct_RANLIB=$RANLIB
6921 # Extract the first word of "ranlib", so it can be a program name with args.
6922 set dummy ranlib; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$ac_ct_RANLIB"; then
6929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_prog_ac_ct_RANLIB="ranlib"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6942 done
6943 done
6944 IFS=$as_save_IFS
6948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6949 if test -n "$ac_ct_RANLIB"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6951 $as_echo "$ac_ct_RANLIB" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$ac_ct_RANLIB" = x; then
6958 RANLIB=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 RANLIB=$ac_ct_RANLIB
6968 else
6969 RANLIB="$ac_cv_prog_RANLIB"
6972 test -z "$RANLIB" && RANLIB=:
6979 # Determine commands to create old-style static archives.
6980 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6981 old_postinstall_cmds='chmod 644 $oldlib'
6982 old_postuninstall_cmds=
6984 if test -n "$RANLIB"; then
6985 case $host_os in
6986 openbsd*)
6987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6992 esac
6993 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7029 # If no C compiler was specified, use CC.
7030 LTCC=${LTCC-"$CC"}
7032 # If no C compiler flags were specified, use CFLAGS.
7033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7035 # Allow CC to be a program name with arguments.
7036 compiler=$CC
7039 # Check for command to grab the raw symbol name followed by C symbol from nm.
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7042 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7046 # These are sane defaults that work on at least a few old systems.
7047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7049 # Character class describing NM global symbol codes.
7050 symcode='[BCDEGRST]'
7052 # Regexp to match symbols that can be accessed directly from C.
7053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7055 # Define system-specific variables.
7056 case $host_os in
7057 aix*)
7058 symcode='[BCDT]'
7060 cygwin* | mingw* | pw32* | cegcc*)
7061 symcode='[ABCDGISTW]'
7063 hpux*)
7064 if test "$host_cpu" = ia64; then
7065 symcode='[ABCDEGRST]'
7068 irix* | nonstopux*)
7069 symcode='[BCDEGRST]'
7071 osf*)
7072 symcode='[BCDEGQRST]'
7074 solaris*)
7075 symcode='[BDRT]'
7077 sco3.2v5*)
7078 symcode='[DT]'
7080 sysv4.2uw2*)
7081 symcode='[DT]'
7083 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7084 symcode='[ABDT]'
7086 sysv4)
7087 symcode='[DFNSTU]'
7089 esac
7091 # If we're using GNU nm, then use its standard symbol codes.
7092 case `$NM -V 2>&1` in
7093 *GNU* | *'with BFD'*)
7094 symcode='[ABCDGIRSTW]' ;;
7095 esac
7097 # Transform an extracted symbol line into a proper C declaration.
7098 # Some systems (esp. on ia64) link data and code symbols differently,
7099 # so use this general approach.
7100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7102 # Transform an extracted symbol line into symbol name and symbol address
7103 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7104 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'"
7106 # Handle CRLF in mingw tool chain
7107 opt_cr=
7108 case $build_os in
7109 mingw*)
7110 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7112 esac
7114 # Try without a prefix underscore, then with it.
7115 for ac_symprfx in "" "_"; do
7117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7118 symxfrm="\\1 $ac_symprfx\\2 \\2"
7120 # Write the raw and C identifiers.
7121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7122 # Fake it for dumpbin and say T for any non-static function
7123 # and D for any global variable.
7124 # Also find C++ and __fastcall symbols from MSVC++,
7125 # which start with @ or ?.
7126 lt_cv_sys_global_symbol_pipe="$AWK '"\
7127 " {last_section=section; section=\$ 3};"\
7128 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7129 " \$ 0!~/External *\|/{next};"\
7130 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7131 " {if(hide[section]) next};"\
7132 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7133 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7134 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7135 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7136 " ' prfx=^$ac_symprfx"
7137 else
7138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7141 # Check to see that the pipe works correctly.
7142 pipe_works=no
7144 rm -f conftest*
7145 cat > conftest.$ac_ext <<_LT_EOF
7146 #ifdef __cplusplus
7147 extern "C" {
7148 #endif
7149 char nm_test_var;
7150 void nm_test_func(void);
7151 void nm_test_func(void){}
7152 #ifdef __cplusplus
7154 #endif
7155 int main(){nm_test_var='a';nm_test_func();return(0);}
7156 _LT_EOF
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7159 (eval $ac_compile) 2>&5
7160 ac_status=$?
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; }; then
7163 # Now try to grab the symbols.
7164 nlist=conftest.nm
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7166 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; } && test -s "$nlist"; then
7170 # Try sorting and uniquifying the output.
7171 if sort "$nlist" | uniq > "$nlist"T; then
7172 mv -f "$nlist"T "$nlist"
7173 else
7174 rm -f "$nlist"T
7177 # Make sure that we snagged all the symbols we need.
7178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7180 cat <<_LT_EOF > conftest.$ac_ext
7181 #ifdef __cplusplus
7182 extern "C" {
7183 #endif
7185 _LT_EOF
7186 # Now generate the symbol file.
7187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7189 cat <<_LT_EOF >> conftest.$ac_ext
7191 /* The mapping between symbol names and symbols. */
7192 const struct {
7193 const char *name;
7194 void *address;
7196 lt__PROGRAM__LTX_preloaded_symbols[] =
7198 { "@PROGRAM@", (void *) 0 },
7199 _LT_EOF
7200 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7201 cat <<\_LT_EOF >> conftest.$ac_ext
7202 {0, (void *) 0}
7205 /* This works around a problem in FreeBSD linker */
7206 #ifdef FREEBSD_WORKAROUND
7207 static const void *lt_preloaded_setup() {
7208 return lt__PROGRAM__LTX_preloaded_symbols;
7210 #endif
7212 #ifdef __cplusplus
7214 #endif
7215 _LT_EOF
7216 # Now try linking the two files.
7217 mv conftest.$ac_objext conftstm.$ac_objext
7218 lt_save_LIBS="$LIBS"
7219 lt_save_CFLAGS="$CFLAGS"
7220 LIBS="conftstm.$ac_objext"
7221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7223 (eval $ac_link) 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7227 pipe_works=yes
7229 LIBS="$lt_save_LIBS"
7230 CFLAGS="$lt_save_CFLAGS"
7231 else
7232 echo "cannot find nm_test_func in $nlist" >&5
7234 else
7235 echo "cannot find nm_test_var in $nlist" >&5
7237 else
7238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7240 else
7241 echo "$progname: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7244 rm -rf conftest* conftst*
7246 # Do not use the global_symbol_pipe unless it works.
7247 if test "$pipe_works" = yes; then
7248 break
7249 else
7250 lt_cv_sys_global_symbol_pipe=
7252 done
7256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7257 lt_cv_sys_global_symbol_to_cdecl=
7259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7261 $as_echo "failed" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7264 $as_echo "ok" >&6; }
7288 # Check whether --enable-libtool-lock was given.
7289 if test "${enable_libtool_lock+set}" = set; then :
7290 enableval=$enable_libtool_lock;
7293 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7295 # Some flags need to be propagated to the compiler or linker for good
7296 # libtool support.
7297 case $host in
7298 ia64-*-hpux*)
7299 # Find out which ABI we are using.
7300 echo 'int i;' > conftest.$ac_ext
7301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7302 (eval $ac_compile) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }; then
7306 case `/usr/bin/file conftest.$ac_objext` in
7307 *ELF-32*)
7308 HPUX_IA64_MODE="32"
7310 *ELF-64*)
7311 HPUX_IA64_MODE="64"
7313 esac
7315 rm -rf conftest*
7317 *-*-irix6*)
7318 # Find out which ABI we are using.
7319 echo '#line 7319 "configure"' > conftest.$ac_ext
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7321 (eval $ac_compile) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; }; then
7325 if test "$lt_cv_prog_gnu_ld" = yes; then
7326 case `/usr/bin/file conftest.$ac_objext` in
7327 *32-bit*)
7328 LD="${LD-ld} -melf32bsmip"
7330 *N32*)
7331 LD="${LD-ld} -melf32bmipn32"
7333 *64-bit*)
7334 LD="${LD-ld} -melf64bmip"
7336 esac
7337 else
7338 case `/usr/bin/file conftest.$ac_objext` in
7339 *32-bit*)
7340 LD="${LD-ld} -32"
7342 *N32*)
7343 LD="${LD-ld} -n32"
7345 *64-bit*)
7346 LD="${LD-ld} -64"
7348 esac
7351 rm -rf conftest*
7354 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7355 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7356 # Find out which ABI we are using.
7357 echo 'int i;' > conftest.$ac_ext
7358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7359 (eval $ac_compile) 2>&5
7360 ac_status=$?
7361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7362 test $ac_status = 0; }; then
7363 case `/usr/bin/file conftest.o` in
7364 *32-bit*)
7365 case $host in
7366 x86_64-*kfreebsd*-gnu)
7367 LD="${LD-ld} -m elf_i386_fbsd"
7369 x86_64-*linux*)
7370 LD="${LD-ld} -m elf_i386"
7372 ppc64-*linux*|powerpc64-*linux*)
7373 LD="${LD-ld} -m elf32ppclinux"
7375 s390x-*linux*)
7376 LD="${LD-ld} -m elf_s390"
7378 sparc64-*linux*)
7379 LD="${LD-ld} -m elf32_sparc"
7381 esac
7383 *64-bit*)
7384 case $host in
7385 x86_64-*kfreebsd*-gnu)
7386 LD="${LD-ld} -m elf_x86_64_fbsd"
7388 x86_64-*linux*)
7389 LD="${LD-ld} -m elf_x86_64"
7391 ppc*-*linux*|powerpc*-*linux*)
7392 LD="${LD-ld} -m elf64ppc"
7394 s390*-*linux*|s390*-*tpf*)
7395 LD="${LD-ld} -m elf64_s390"
7397 sparc*-*linux*)
7398 LD="${LD-ld} -m elf64_sparc"
7400 esac
7402 esac
7404 rm -rf conftest*
7407 *-*-sco3.2v5*)
7408 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7409 SAVE_CFLAGS="$CFLAGS"
7410 CFLAGS="$CFLAGS -belf"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7412 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7413 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 ac_ext=c
7417 ac_cpp='$CPP $CPPFLAGS'
7418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7426 main ()
7430 return 0;
7432 _ACEOF
7433 if ac_fn_c_try_link "$LINENO"; then :
7434 lt_cv_cc_needs_belf=yes
7435 else
7436 lt_cv_cc_needs_belf=no
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7440 ac_ext=c
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7448 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7449 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7450 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7451 CFLAGS="$SAVE_CFLAGS"
7454 sparc*-*solaris*)
7455 # Find out which ABI we are using.
7456 echo 'int i;' > conftest.$ac_ext
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458 (eval $ac_compile) 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 case `/usr/bin/file conftest.o` in
7463 *64-bit*)
7464 case $lt_cv_prog_gnu_ld in
7465 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7467 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7468 LD="${LD-ld} -64"
7471 esac
7473 esac
7475 rm -rf conftest*
7477 esac
7479 need_locks="$enable_libtool_lock"
7482 case $host_os in
7483 rhapsody* | darwin*)
7484 if test -n "$ac_tool_prefix"; then
7485 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7486 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$DSYMUTIL"; then
7493 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7506 done
7507 done
7508 IFS=$as_save_IFS
7512 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7513 if test -n "$DSYMUTIL"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7515 $as_echo "$DSYMUTIL" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7523 if test -z "$ac_cv_prog_DSYMUTIL"; then
7524 ac_ct_DSYMUTIL=$DSYMUTIL
7525 # Extract the first word of "dsymutil", so it can be a program name with args.
7526 set dummy dsymutil; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 if test -n "$ac_ct_DSYMUTIL"; then
7533 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7546 done
7547 done
7548 IFS=$as_save_IFS
7552 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7553 if test -n "$ac_ct_DSYMUTIL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7555 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7561 if test "x$ac_ct_DSYMUTIL" = x; then
7562 DSYMUTIL=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 DSYMUTIL=$ac_ct_DSYMUTIL
7572 else
7573 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$NMEDIT"; then
7585 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7598 done
7599 done
7600 IFS=$as_save_IFS
7604 NMEDIT=$ac_cv_prog_NMEDIT
7605 if test -n "$NMEDIT"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7607 $as_echo "$NMEDIT" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7615 if test -z "$ac_cv_prog_NMEDIT"; then
7616 ac_ct_NMEDIT=$NMEDIT
7617 # Extract the first word of "nmedit", so it can be a program name with args.
7618 set dummy nmedit; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$ac_ct_NMEDIT"; then
7625 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7638 done
7639 done
7640 IFS=$as_save_IFS
7644 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7645 if test -n "$ac_ct_NMEDIT"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7647 $as_echo "$ac_ct_NMEDIT" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7653 if test "x$ac_ct_NMEDIT" = x; then
7654 NMEDIT=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657 yes:)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660 ac_tool_warned=yes ;;
7661 esac
7662 NMEDIT=$ac_ct_NMEDIT
7664 else
7665 NMEDIT="$ac_cv_prog_NMEDIT"
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_LIPO+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$LIPO"; then
7677 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7696 LIPO=$ac_cv_prog_LIPO
7697 if test -n "$LIPO"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7699 $as_echo "$LIPO" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7707 if test -z "$ac_cv_prog_LIPO"; then
7708 ac_ct_LIPO=$LIPO
7709 # Extract the first word of "lipo", so it can be a program name with args.
7710 set dummy lipo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$ac_ct_LIPO"; then
7717 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_ac_ct_LIPO="lipo"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7730 done
7731 done
7732 IFS=$as_save_IFS
7736 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7737 if test -n "$ac_ct_LIPO"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7739 $as_echo "$ac_ct_LIPO" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7745 if test "x$ac_ct_LIPO" = x; then
7746 LIPO=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749 yes:)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7753 esac
7754 LIPO=$ac_ct_LIPO
7756 else
7757 LIPO="$ac_cv_prog_LIPO"
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}otool; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$OTOOL"; then
7769 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 OTOOL=$ac_cv_prog_OTOOL
7789 if test -n "$OTOOL"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7791 $as_echo "$OTOOL" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7799 if test -z "$ac_cv_prog_OTOOL"; then
7800 ac_ct_OTOOL=$OTOOL
7801 # Extract the first word of "otool", so it can be a program name with args.
7802 set dummy otool; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_OTOOL"; then
7809 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_ac_ct_OTOOL="otool"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7822 done
7823 done
7824 IFS=$as_save_IFS
7828 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7829 if test -n "$ac_ct_OTOOL"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7831 $as_echo "$ac_ct_OTOOL" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7837 if test "x$ac_ct_OTOOL" = x; then
7838 OTOOL=":"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841 yes:)
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844 ac_tool_warned=yes ;;
7845 esac
7846 OTOOL=$ac_ct_OTOOL
7848 else
7849 OTOOL="$ac_cv_prog_OTOOL"
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$OTOOL64"; then
7861 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7880 OTOOL64=$ac_cv_prog_OTOOL64
7881 if test -n "$OTOOL64"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7883 $as_echo "$OTOOL64" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7891 if test -z "$ac_cv_prog_OTOOL64"; then
7892 ac_ct_OTOOL64=$OTOOL64
7893 # Extract the first word of "otool64", so it can be a program name with args.
7894 set dummy otool64; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$ac_ct_OTOOL64"; then
7901 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_ac_ct_OTOOL64="otool64"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7914 done
7915 done
7916 IFS=$as_save_IFS
7920 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7921 if test -n "$ac_ct_OTOOL64"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7923 $as_echo "$ac_ct_OTOOL64" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7929 if test "x$ac_ct_OTOOL64" = x; then
7930 OTOOL64=":"
7931 else
7932 case $cross_compiling:$ac_tool_warned in
7933 yes:)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7936 ac_tool_warned=yes ;;
7937 esac
7938 OTOOL64=$ac_ct_OTOOL64
7940 else
7941 OTOOL64="$ac_cv_prog_OTOOL64"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7971 $as_echo_n "checking for -single_module linker flag... " >&6; }
7972 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 lt_cv_apple_cc_single_mod=no
7976 if test -z "${LT_MULTI_MODULE}"; then
7977 # By default we will add the -single_module flag. You can override
7978 # by either setting the environment variable LT_MULTI_MODULE
7979 # non-empty at configure time, or by adding -multi_module to the
7980 # link flags.
7981 rm -rf libconftest.dylib*
7982 echo "int foo(void){return 1;}" > conftest.c
7983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7984 -dynamiclib -Wl,-single_module conftest.c" >&5
7985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7987 _lt_result=$?
7988 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7989 lt_cv_apple_cc_single_mod=yes
7990 else
7991 cat conftest.err >&5
7993 rm -rf libconftest.dylib*
7994 rm -f conftest.*
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7998 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8000 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8001 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 lt_cv_ld_exported_symbols_list=no
8005 save_LDFLAGS=$LDFLAGS
8006 echo "_main" > conftest.sym
8007 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8012 main ()
8016 return 0;
8018 _ACEOF
8019 if ac_fn_c_try_link "$LINENO"; then :
8020 lt_cv_ld_exported_symbols_list=yes
8021 else
8022 lt_cv_ld_exported_symbols_list=no
8024 rm -f core conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 LDFLAGS="$save_LDFLAGS"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8030 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8031 case $host_os in
8032 rhapsody* | darwin1.[012])
8033 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8034 darwin1.*)
8035 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8036 darwin*) # darwin 5.x on
8037 # if running on 10.5 or later, the deployment target defaults
8038 # to the OS version, if on x86, and 10.4, the deployment
8039 # target defaults to 10.4. Don't you love it?
8040 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8041 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8043 10.[012]*)
8044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8045 10.*)
8046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8047 esac
8049 esac
8050 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8051 _lt_dar_single_mod='$single_module'
8053 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8054 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8055 else
8056 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8058 if test "$DSYMUTIL" != ":"; then
8059 _lt_dsymutil='~$DSYMUTIL $lib || :'
8060 else
8061 _lt_dsymutil=
8064 esac
8066 for ac_header in dlfcn.h
8067 do :
8068 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8070 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8071 cat >>confdefs.h <<_ACEOF
8072 #define HAVE_DLFCN_H 1
8073 _ACEOF
8077 done
8081 # Set options
8082 enable_dlopen=yes
8087 enable_win32_dll=no
8091 # Check whether --enable-static was given.
8092 if test "${enable_static+set}" = set; then :
8093 enableval=$enable_static; p=${PACKAGE-default}
8094 case $enableval in
8095 yes) enable_static=yes ;;
8096 no) enable_static=no ;;
8098 enable_static=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101 for pkg in $enableval; do
8102 IFS="$lt_save_ifs"
8103 if test "X$pkg" = "X$p"; then
8104 enable_static=yes
8106 done
8107 IFS="$lt_save_ifs"
8109 esac
8110 else
8111 enable_static=yes
8123 # Check whether --with-pic was given.
8124 if test "${with_pic+set}" = set; then :
8125 withval=$with_pic; pic_mode="$withval"
8126 else
8127 pic_mode=default
8131 test -z "$pic_mode" && pic_mode=default
8139 # Check whether --enable-fast-install was given.
8140 if test "${enable_fast_install+set}" = set; then :
8141 enableval=$enable_fast_install; p=${PACKAGE-default}
8142 case $enableval in
8143 yes) enable_fast_install=yes ;;
8144 no) enable_fast_install=no ;;
8146 enable_fast_install=no
8147 # Look at the argument we got. We use all the common list separators.
8148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8149 for pkg in $enableval; do
8150 IFS="$lt_save_ifs"
8151 if test "X$pkg" = "X$p"; then
8152 enable_fast_install=yes
8154 done
8155 IFS="$lt_save_ifs"
8157 esac
8158 else
8159 enable_fast_install=yes
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS="$ltmain"
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8202 test -z "$LN_S" && LN_S="ln -s"
8217 if test -n "${ZSH_VERSION+set}" ; then
8218 setopt NO_GLOB_SUBST
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8222 $as_echo_n "checking for objdir... " >&6; }
8223 if test "${lt_cv_objdir+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 rm -f .libs 2>/dev/null
8227 mkdir .libs 2>/dev/null
8228 if test -d .libs; then
8229 lt_cv_objdir=.libs
8230 else
8231 # MS-DOS does not allow filenames that begin with a dot.
8232 lt_cv_objdir=_libs
8234 rmdir .libs 2>/dev/null
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8237 $as_echo "$lt_cv_objdir" >&6; }
8238 objdir=$lt_cv_objdir
8244 cat >>confdefs.h <<_ACEOF
8245 #define LT_OBJDIR "$lt_cv_objdir/"
8246 _ACEOF
8264 case $host_os in
8265 aix3*)
8266 # AIX sometimes has problems with the GCC collect2 program. For some
8267 # reason, if we set the COLLECT_NAMES environment variable, the problems
8268 # vanish in a puff of smoke.
8269 if test "X${COLLECT_NAMES+set}" != Xset; then
8270 COLLECT_NAMES=
8271 export COLLECT_NAMES
8274 esac
8276 # Sed substitution that helps us do robust quoting. It backslashifies
8277 # metacharacters that are still active within double-quoted strings.
8278 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8280 # Same as above, but do not quote variable references.
8281 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8283 # Sed substitution to delay expansion of an escaped shell variable in a
8284 # double_quote_subst'ed string.
8285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8287 # Sed substitution to delay expansion of an escaped single quote.
8288 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8290 # Sed substitution to avoid accidental globbing in evaled expressions
8291 no_glob_subst='s/\*/\\\*/g'
8293 # Global variables:
8294 ofile=libtool
8295 can_build_shared=yes
8297 # All known linkers require a `.a' archive for static linking (except MSVC,
8298 # which needs '.lib').
8299 libext=a
8301 with_gnu_ld="$lt_cv_prog_gnu_ld"
8303 old_CC="$CC"
8304 old_CFLAGS="$CFLAGS"
8306 # Set sane defaults for various variables
8307 test -z "$CC" && CC=cc
8308 test -z "$LTCC" && LTCC=$CC
8309 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8310 test -z "$LD" && LD=ld
8311 test -z "$ac_objext" && ac_objext=o
8313 for cc_temp in $compiler""; do
8314 case $cc_temp in
8315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8317 \-*) ;;
8318 *) break;;
8319 esac
8320 done
8321 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8324 # Only perform the check for file, if the check method requires it
8325 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8326 case $deplibs_check_method in
8327 file_magic*)
8328 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8330 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8331 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 case $MAGIC_CMD in
8335 [\\/*] | ?:[\\/]*)
8336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339 lt_save_MAGIC_CMD="$MAGIC_CMD"
8340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8342 for ac_dir in $ac_dummy; do
8343 IFS="$lt_save_ifs"
8344 test -z "$ac_dir" && ac_dir=.
8345 if test -f $ac_dir/${ac_tool_prefix}file; then
8346 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8347 if test -n "$file_magic_test_file"; then
8348 case $deplibs_check_method in
8349 "file_magic "*)
8350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8353 $EGREP "$file_magic_regex" > /dev/null; then
8355 else
8356 cat <<_LT_EOF 1>&2
8358 *** Warning: the command libtool uses to detect shared libraries,
8359 *** $file_magic_cmd, produces output that libtool cannot recognize.
8360 *** The result is that libtool may fail to recognize shared libraries
8361 *** as such. This will affect the creation of libtool libraries that
8362 *** depend on shared libraries, but programs linked with such libtool
8363 *** libraries will work regardless of this problem. Nevertheless, you
8364 *** may want to report the problem to your system manager and/or to
8365 *** bug-libtool@gnu.org
8367 _LT_EOF
8368 fi ;;
8369 esac
8371 break
8373 done
8374 IFS="$lt_save_ifs"
8375 MAGIC_CMD="$lt_save_MAGIC_CMD"
8377 esac
8380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381 if test -n "$MAGIC_CMD"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8383 $as_echo "$MAGIC_CMD" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8393 if test -z "$lt_cv_path_MAGIC_CMD"; then
8394 if test -n "$ac_tool_prefix"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8396 $as_echo_n "checking for file... " >&6; }
8397 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 case $MAGIC_CMD in
8401 [\\/*] | ?:[\\/]*)
8402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8405 lt_save_MAGIC_CMD="$MAGIC_CMD"
8406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8408 for ac_dir in $ac_dummy; do
8409 IFS="$lt_save_ifs"
8410 test -z "$ac_dir" && ac_dir=.
8411 if test -f $ac_dir/file; then
8412 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8413 if test -n "$file_magic_test_file"; then
8414 case $deplibs_check_method in
8415 "file_magic "*)
8416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8419 $EGREP "$file_magic_regex" > /dev/null; then
8421 else
8422 cat <<_LT_EOF 1>&2
8424 *** Warning: the command libtool uses to detect shared libraries,
8425 *** $file_magic_cmd, produces output that libtool cannot recognize.
8426 *** The result is that libtool may fail to recognize shared libraries
8427 *** as such. This will affect the creation of libtool libraries that
8428 *** depend on shared libraries, but programs linked with such libtool
8429 *** libraries will work regardless of this problem. Nevertheless, you
8430 *** may want to report the problem to your system manager and/or to
8431 *** bug-libtool@gnu.org
8433 _LT_EOF
8434 fi ;;
8435 esac
8437 break
8439 done
8440 IFS="$lt_save_ifs"
8441 MAGIC_CMD="$lt_save_MAGIC_CMD"
8443 esac
8446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447 if test -n "$MAGIC_CMD"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8449 $as_echo "$MAGIC_CMD" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8456 else
8457 MAGIC_CMD=:
8463 esac
8465 # Use C for the default configuration in the libtool script
8467 lt_save_CC="$CC"
8468 ac_ext=c
8469 ac_cpp='$CPP $CPPFLAGS'
8470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8475 # Source file extension for C test sources.
8476 ac_ext=c
8478 # Object file extension for compiled C test sources.
8479 objext=o
8480 objext=$objext
8482 # Code to be used in simple compile tests
8483 lt_simple_compile_test_code="int some_variable = 0;"
8485 # Code to be used in simple link tests
8486 lt_simple_link_test_code='int main(){return(0);}'
8494 # If no C compiler was specified, use CC.
8495 LTCC=${LTCC-"$CC"}
8497 # If no C compiler flags were specified, use CFLAGS.
8498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8500 # Allow CC to be a program name with arguments.
8501 compiler=$CC
8503 # Save the default compiler, since it gets overwritten when the other
8504 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8505 compiler_DEFAULT=$CC
8507 # save warnings/boilerplate of simple test code
8508 ac_outfile=conftest.$ac_objext
8509 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8510 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8511 _lt_compiler_boilerplate=`cat conftest.err`
8512 $RM conftest*
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8516 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_linker_boilerplate=`cat conftest.err`
8518 $RM -r conftest*
8521 ## CAVEAT EMPTOR:
8522 ## There is no encapsulation within the following macros, do not change
8523 ## the running order or otherwise move them around unless you know exactly
8524 ## what you are doing...
8525 if test -n "$compiler"; then
8527 lt_prog_compiler_no_builtin_flag=
8529 if test "$GCC" = yes; then
8530 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8533 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_prog_compiler_rtti_exceptions=no
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="-fno-rtti -fno-exceptions"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:8550: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
8554 echo "$as_me:8554: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_rtti_exceptions=yes
8564 $RM conftest*
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8568 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8572 else
8583 lt_prog_compiler_wl=
8584 lt_prog_compiler_pic=
8585 lt_prog_compiler_static=
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8588 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8590 if test "$GCC" = yes; then
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_static='-static'
8594 case $host_os in
8595 aix*)
8596 # All AIX code is PIC.
8597 if test "$host_cpu" = ia64; then
8598 # AIX 5 now supports IA64 processor
8599 lt_prog_compiler_static='-Bstatic'
8603 amigaos*)
8604 case $host_cpu in
8605 powerpc)
8606 # see comment about AmigaOS4 .so support
8607 lt_prog_compiler_pic='-fPIC'
8609 m68k)
8610 # FIXME: we need at least 68020 code to build shared libraries, but
8611 # adding the `-m68020' flag to GCC prevents building anything better,
8612 # like `-m68040'.
8613 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8615 esac
8618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8619 # PIC is the default for these OSes.
8622 mingw* | cygwin* | pw32* | os2* | cegcc*)
8623 # This hack is so that the source file can tell whether it is being
8624 # built for inclusion in a dll (and should export symbols for example).
8625 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8626 # (--disable-auto-import) libraries
8627 lt_prog_compiler_pic='-DDLL_EXPORT'
8630 darwin* | rhapsody*)
8631 # PIC is the default on this platform
8632 # Common symbols not allowed in MH_DYLIB files
8633 lt_prog_compiler_pic='-fno-common'
8636 hpux*)
8637 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8638 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8639 # sets the default TLS model and affects inlining.
8640 case $host_cpu in
8641 hppa*64*)
8642 # +Z the default
8645 lt_prog_compiler_pic='-fPIC'
8647 esac
8650 interix[3-9]*)
8651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8652 # Instead, we relocate shared libraries at runtime.
8655 msdosdjgpp*)
8656 # Just because we use GCC doesn't mean we suddenly get shared libraries
8657 # on systems that don't support them.
8658 lt_prog_compiler_can_build_shared=no
8659 enable_shared=no
8662 *nto* | *qnx*)
8663 # QNX uses GNU C++, but need to define -shared option too, otherwise
8664 # it will coredump.
8665 lt_prog_compiler_pic='-fPIC -shared'
8668 sysv4*MP*)
8669 if test -d /usr/nec; then
8670 lt_prog_compiler_pic=-Kconform_pic
8675 lt_prog_compiler_pic='-fPIC'
8677 esac
8678 else
8679 # PORTME Check for flag to pass linker flags through the system compiler.
8680 case $host_os in
8681 aix*)
8682 lt_prog_compiler_wl='-Wl,'
8683 if test "$host_cpu" = ia64; then
8684 # AIX 5 now supports IA64 processor
8685 lt_prog_compiler_static='-Bstatic'
8686 else
8687 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8691 mingw* | cygwin* | pw32* | os2* | cegcc*)
8692 # This hack is so that the source file can tell whether it is being
8693 # built for inclusion in a dll (and should export symbols for example).
8694 lt_prog_compiler_pic='-DDLL_EXPORT'
8697 hpux9* | hpux10* | hpux11*)
8698 lt_prog_compiler_wl='-Wl,'
8699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8700 # not for PA HP-UX.
8701 case $host_cpu in
8702 hppa*64*|ia64*)
8703 # +Z the default
8706 lt_prog_compiler_pic='+Z'
8708 esac
8709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8710 lt_prog_compiler_static='${wl}-a ${wl}archive'
8713 irix5* | irix6* | nonstopux*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # PIC (with -KPIC) is the default.
8716 lt_prog_compiler_static='-non_shared'
8719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8720 case $cc_basename in
8721 # old Intel for x86_64 which still supported -KPIC.
8722 ecc*)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-static'
8727 # icc used to be incompatible with GCC.
8728 # ICC 10 doesn't accept -KPIC any more.
8729 icc* | ifort*)
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_pic='-fPIC'
8732 lt_prog_compiler_static='-static'
8734 # Lahey Fortran 8.1.
8735 lf95*)
8736 lt_prog_compiler_wl='-Wl,'
8737 lt_prog_compiler_pic='--shared'
8738 lt_prog_compiler_static='--static'
8740 pgcc* | pgf77* | pgf90* | pgf95*)
8741 # Portland Group compilers (*not* the Pentium gcc compiler,
8742 # which looks to be a dead project)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-fpic'
8745 lt_prog_compiler_static='-Bstatic'
8747 ccc*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # All Alpha code is PIC.
8750 lt_prog_compiler_static='-non_shared'
8752 xl*)
8753 # IBM XL C 8.0/Fortran 10.1 on PPC
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-qpic'
8756 lt_prog_compiler_static='-qstaticlink'
8759 case `$CC -V 2>&1 | sed 5q` in
8760 *Sun\ C*)
8761 # Sun C 5.9
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 lt_prog_compiler_wl='-Wl,'
8766 *Sun\ F*)
8767 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 lt_prog_compiler_wl=''
8772 esac
8774 esac
8777 newsos6)
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8782 *nto* | *qnx*)
8783 # QNX uses GNU C++, but need to define -shared option too, otherwise
8784 # it will coredump.
8785 lt_prog_compiler_pic='-fPIC -shared'
8788 osf3* | osf4* | osf5*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # All OSF/1 code is PIC.
8791 lt_prog_compiler_static='-non_shared'
8794 rdos*)
8795 lt_prog_compiler_static='-non_shared'
8798 solaris*)
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 case $cc_basename in
8802 f77* | f90* | f95*)
8803 lt_prog_compiler_wl='-Qoption ld ';;
8805 lt_prog_compiler_wl='-Wl,';;
8806 esac
8809 sunos4*)
8810 lt_prog_compiler_wl='-Qoption ld '
8811 lt_prog_compiler_pic='-PIC'
8812 lt_prog_compiler_static='-Bstatic'
8815 sysv4 | sysv4.2uw2* | sysv4.3*)
8816 lt_prog_compiler_wl='-Wl,'
8817 lt_prog_compiler_pic='-KPIC'
8818 lt_prog_compiler_static='-Bstatic'
8821 sysv4*MP*)
8822 if test -d /usr/nec ;then
8823 lt_prog_compiler_pic='-Kconform_pic'
8824 lt_prog_compiler_static='-Bstatic'
8828 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8834 unicos*)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_can_build_shared=no
8839 uts4*)
8840 lt_prog_compiler_pic='-pic'
8841 lt_prog_compiler_static='-Bstatic'
8845 lt_prog_compiler_can_build_shared=no
8847 esac
8850 case $host_os in
8851 # For platforms which do not support PIC, -DPIC is meaningless:
8852 *djgpp*)
8853 lt_prog_compiler_pic=
8856 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8858 esac
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8860 $as_echo "$lt_prog_compiler_pic" >&6; }
8868 # Check to make sure the PIC flag actually works.
8870 if test -n "$lt_prog_compiler_pic"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8872 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8873 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_prog_compiler_pic_works=no
8877 ac_outfile=conftest.$ac_objext
8878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8880 # Insert the option either (1) after the last *FLAGS variable, or
8881 # (2) before a word containing "conftest.", or (3) at the end.
8882 # Note that $ac_compile itself does not contain backslashes and begins
8883 # with a dollar sign (not a hyphen), so the echo should work correctly.
8884 # The option is referenced via a variable to avoid confusing sed.
8885 lt_compile=`echo "$ac_compile" | $SED \
8886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888 -e 's:$: $lt_compiler_flag:'`
8889 (eval echo "\"\$as_me:8889: $lt_compile\"" >&5)
8890 (eval "$lt_compile" 2>conftest.err)
8891 ac_status=$?
8892 cat conftest.err >&5
8893 echo "$as_me:8893: \$? = $ac_status" >&5
8894 if (exit $ac_status) && test -s "$ac_outfile"; then
8895 # The compiler can only warn and ignore the option if not recognized
8896 # So say no if there are warnings other than the usual output.
8897 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler_pic_works=yes
8903 $RM conftest*
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8907 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8909 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8910 case $lt_prog_compiler_pic in
8911 "" | " "*) ;;
8912 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8913 esac
8914 else
8915 lt_prog_compiler_pic=
8916 lt_prog_compiler_can_build_shared=no
8927 # Check to make sure the static flag actually works.
8929 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8931 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8932 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 lt_cv_prog_compiler_static_works=no
8936 save_LDFLAGS="$LDFLAGS"
8937 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8938 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8939 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8940 # The linker can only warn and ignore the option if not recognized
8941 # So say no if there are warnings
8942 if test -s conftest.err; then
8943 # Append any errors to the config.log.
8944 cat conftest.err 1>&5
8945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if diff conftest.exp conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_static_works=yes
8950 else
8951 lt_cv_prog_compiler_static_works=yes
8954 $RM -r conftest*
8955 LDFLAGS="$save_LDFLAGS"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8959 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8961 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8963 else
8964 lt_prog_compiler_static=
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8975 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 lt_cv_prog_compiler_c_o=no
8979 $RM -r conftest 2>/dev/null
8980 mkdir conftest
8981 cd conftest
8982 mkdir out
8983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985 lt_compiler_flag="-o out/conftest2.$ac_objext"
8986 # Insert the option either (1) after the last *FLAGS variable, or
8987 # (2) before a word containing "conftest.", or (3) at the end.
8988 # Note that $ac_compile itself does not contain backslashes and begins
8989 # with a dollar sign (not a hyphen), so the echo should work correctly.
8990 lt_compile=`echo "$ac_compile" | $SED \
8991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993 -e 's:$: $lt_compiler_flag:'`
8994 (eval echo "\"\$as_me:8994: $lt_compile\"" >&5)
8995 (eval "$lt_compile" 2>out/conftest.err)
8996 ac_status=$?
8997 cat out/conftest.err >&5
8998 echo "$as_me:8998: \$? = $ac_status" >&5
8999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9000 then
9001 # The compiler can only warn and ignore the option if not recognized
9002 # So say no if there are warnings
9003 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_c_o=yes
9009 chmod u+w . 2>&5
9010 $RM conftest*
9011 # SGI C++ compiler will create directory out/ii_files/ for
9012 # template instantiation
9013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9014 $RM out/* && rmdir out
9015 cd ..
9016 $RM -r conftest
9017 $RM conftest*
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9021 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9030 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 lt_cv_prog_compiler_c_o=no
9034 $RM -r conftest 2>/dev/null
9035 mkdir conftest
9036 cd conftest
9037 mkdir out
9038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9040 lt_compiler_flag="-o out/conftest2.$ac_objext"
9041 # Insert the option either (1) after the last *FLAGS variable, or
9042 # (2) before a word containing "conftest.", or (3) at the end.
9043 # Note that $ac_compile itself does not contain backslashes and begins
9044 # with a dollar sign (not a hyphen), so the echo should work correctly.
9045 lt_compile=`echo "$ac_compile" | $SED \
9046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9048 -e 's:$: $lt_compiler_flag:'`
9049 (eval echo "\"\$as_me:9049: $lt_compile\"" >&5)
9050 (eval "$lt_compile" 2>out/conftest.err)
9051 ac_status=$?
9052 cat out/conftest.err >&5
9053 echo "$as_me:9053: \$? = $ac_status" >&5
9054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9055 then
9056 # The compiler can only warn and ignore the option if not recognized
9057 # So say no if there are warnings
9058 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9061 lt_cv_prog_compiler_c_o=yes
9064 chmod u+w . 2>&5
9065 $RM conftest*
9066 # SGI C++ compiler will create directory out/ii_files/ for
9067 # template instantiation
9068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9069 $RM out/* && rmdir out
9070 cd ..
9071 $RM -r conftest
9072 $RM conftest*
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9076 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081 hard_links="nottested"
9082 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9083 # do not overwrite the value of need_locks provided by the user
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9085 $as_echo_n "checking if we can lock with hard links... " >&6; }
9086 hard_links=yes
9087 $RM conftest*
9088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9089 touch conftest.a
9090 ln conftest.a conftest.b 2>&5 || hard_links=no
9091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9093 $as_echo "$hard_links" >&6; }
9094 if test "$hard_links" = no; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9096 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9097 need_locks=warn
9099 else
9100 need_locks=no
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9109 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9111 runpath_var=
9112 allow_undefined_flag=
9113 always_export_symbols=no
9114 archive_cmds=
9115 archive_expsym_cmds=
9116 compiler_needs_object=no
9117 enable_shared_with_static_runtimes=no
9118 export_dynamic_flag_spec=
9119 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9120 hardcode_automatic=no
9121 hardcode_direct=no
9122 hardcode_direct_absolute=no
9123 hardcode_libdir_flag_spec=
9124 hardcode_libdir_flag_spec_ld=
9125 hardcode_libdir_separator=
9126 hardcode_minus_L=no
9127 hardcode_shlibpath_var=unsupported
9128 inherit_rpath=no
9129 link_all_deplibs=unknown
9130 module_cmds=
9131 module_expsym_cmds=
9132 old_archive_from_new_cmds=
9133 old_archive_from_expsyms_cmds=
9134 thread_safe_flag_spec=
9135 whole_archive_flag_spec=
9136 # include_expsyms should be a list of space-separated symbols to be *always*
9137 # included in the symbol list
9138 include_expsyms=
9139 # exclude_expsyms can be an extended regexp of symbols to exclude
9140 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9142 # as well as any symbol that contains `d'.
9143 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9145 # platforms (ab)use it in PIC code, but their linkers get confused if
9146 # the symbol is explicitly referenced. Since portable code cannot
9147 # rely on this symbol name, it's probably fine to never include it in
9148 # preloaded symbol tables.
9149 # Exclude shared library initialization/finalization symbols.
9150 extract_expsyms_cmds=
9152 case $host_os in
9153 cygwin* | mingw* | pw32* | cegcc*)
9154 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9155 # When not using gcc, we currently assume that we are using
9156 # Microsoft Visual C++.
9157 if test "$GCC" != yes; then
9158 with_gnu_ld=no
9161 interix*)
9162 # we just hope/assume this is gcc and not c89 (= MSVC++)
9163 with_gnu_ld=yes
9165 openbsd*)
9166 with_gnu_ld=no
9168 esac
9170 ld_shlibs=yes
9171 if test "$with_gnu_ld" = yes; then
9172 # If archive_cmds runs LD, not CC, wlarc should be empty
9173 wlarc='${wl}'
9175 # Set some defaults for GNU ld with shared library support. These
9176 # are reset later if shared libraries are not supported. Putting them
9177 # here allows them to be overridden if necessary.
9178 runpath_var=LD_RUN_PATH
9179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9180 export_dynamic_flag_spec='${wl}--export-dynamic'
9181 # ancient GNU ld didn't support --whole-archive et. al.
9182 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9183 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9184 else
9185 whole_archive_flag_spec=
9187 supports_anon_versioning=no
9188 case `$LD -v 2>&1` in
9189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9192 *\ 2.11.*) ;; # other 2.11 versions
9193 *) supports_anon_versioning=yes ;;
9194 esac
9196 # See if GNU ld supports shared libraries.
9197 case $host_os in
9198 aix[3-9]*)
9199 # On AIX/PPC, the GNU linker is very broken
9200 if test "$host_cpu" != ia64; then
9201 ld_shlibs=no
9202 cat <<_LT_EOF 1>&2
9204 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9205 *** to be unable to reliably create shared libraries on AIX.
9206 *** Therefore, libtool is disabling shared libraries support. If you
9207 *** really care for shared libraries, you may want to modify your PATH
9208 *** so that a non-GNU linker is found, and then restart.
9210 _LT_EOF
9214 amigaos*)
9215 case $host_cpu in
9216 powerpc)
9217 # see comment about AmigaOS4 .so support
9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219 archive_expsym_cmds=''
9221 m68k)
9222 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)'
9223 hardcode_libdir_flag_spec='-L$libdir'
9224 hardcode_minus_L=yes
9226 esac
9229 beos*)
9230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9231 allow_undefined_flag=unsupported
9232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9233 # support --undefined. This deserves some investigation. FIXME
9234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 else
9236 ld_shlibs=no
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9242 # as there is no search path for DLLs.
9243 hardcode_libdir_flag_spec='-L$libdir'
9244 allow_undefined_flag=unsupported
9245 always_export_symbols=no
9246 enable_shared_with_static_runtimes=yes
9247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9249 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251 # If the export-symbols file already is a .def file (1st line
9252 # is EXPORTS), use it as is; otherwise, prepend...
9253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9254 cp $export_symbols $output_objdir/$soname.def;
9255 else
9256 echo EXPORTS > $output_objdir/$soname.def;
9257 cat $export_symbols >> $output_objdir/$soname.def;
9259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9260 else
9261 ld_shlibs=no
9265 interix[3-9]*)
9266 hardcode_direct=no
9267 hardcode_shlibpath_var=no
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269 export_dynamic_flag_spec='${wl}-E'
9270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9271 # Instead, shared libraries are loaded at an image base (0x10000000 by
9272 # default) and relocated if they conflict, which is a slow very memory
9273 # consuming and fragmenting process. To avoid this, we pick a random,
9274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9277 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'
9280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9281 tmp_diet=no
9282 if test "$host_os" = linux-dietlibc; then
9283 case $cc_basename in
9284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9285 esac
9287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9288 && test "$tmp_diet" = no
9289 then
9290 tmp_addflag=
9291 tmp_sharedflag='-shared'
9292 case $cc_basename,$host_cpu in
9293 pgcc*) # Portland Group C compiler
9294 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'
9295 tmp_addflag=' $pic_flag'
9297 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9298 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'
9299 tmp_addflag=' $pic_flag -Mnomain' ;;
9300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9301 tmp_addflag=' -i_dynamic' ;;
9302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9303 tmp_addflag=' -i_dynamic -nofor_main' ;;
9304 ifc* | ifort*) # Intel Fortran compiler
9305 tmp_addflag=' -nofor_main' ;;
9306 lf95*) # Lahey Fortran 8.1
9307 whole_archive_flag_spec=
9308 tmp_sharedflag='--shared' ;;
9309 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9310 tmp_sharedflag='-qmkshrobj'
9311 tmp_addflag= ;;
9312 esac
9313 case `$CC -V 2>&1 | sed 5q` in
9314 *Sun\ C*) # Sun C 5.9
9315 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'
9316 compiler_needs_object=yes
9317 tmp_sharedflag='-G' ;;
9318 *Sun\ F*) # Sun Fortran 8.3
9319 tmp_sharedflag='-G' ;;
9320 esac
9321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 if test "x$supports_anon_versioning" = xyes; then
9324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9326 echo "local: *; };" >> $output_objdir/$libname.ver~
9327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 case $cc_basename in
9331 xlf*)
9332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9334 hardcode_libdir_flag_spec=
9335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9336 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9337 if test "x$supports_anon_versioning" = xyes; then
9338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9340 echo "local: *; };" >> $output_objdir/$libname.ver~
9341 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 esac
9345 else
9346 ld_shlibs=no
9350 netbsd*)
9351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9352 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9353 wlarc=
9354 else
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360 solaris*)
9361 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9362 ld_shlibs=no
9363 cat <<_LT_EOF 1>&2
9365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9366 *** create shared libraries on Solaris systems. Therefore, libtool
9367 *** is disabling shared libraries support. We urge you to upgrade GNU
9368 *** binutils to release 2.9.1 or newer. Another option is to modify
9369 *** your PATH or compiler configuration so that the native linker is
9370 *** used, and then restart.
9372 _LT_EOF
9373 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9382 case `$LD -v 2>&1` in
9383 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9384 ld_shlibs=no
9385 cat <<_LT_EOF 1>&2
9387 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9388 *** reliably create shared libraries on SCO systems. Therefore, libtool
9389 *** is disabling shared libraries support. We urge you to upgrade GNU
9390 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9391 *** your PATH or compiler configuration so that the native linker is
9392 *** used, and then restart.
9394 _LT_EOF
9397 # For security reasons, it is highly recommended that you always
9398 # use absolute paths for naming shared libraries, and exclude the
9399 # DT_RUNPATH tag from executables and libraries. But doing so
9400 # requires that you compile everything twice, which is a pain.
9401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9405 else
9406 ld_shlibs=no
9409 esac
9412 sunos4*)
9413 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9414 wlarc=
9415 hardcode_direct=yes
9416 hardcode_shlibpath_var=no
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 else
9424 ld_shlibs=no
9427 esac
9429 if test "$ld_shlibs" = no; then
9430 runpath_var=
9431 hardcode_libdir_flag_spec=
9432 export_dynamic_flag_spec=
9433 whole_archive_flag_spec=
9435 else
9436 # PORTME fill in a description of your system's linker (not GNU ld)
9437 case $host_os in
9438 aix3*)
9439 allow_undefined_flag=unsupported
9440 always_export_symbols=yes
9441 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'
9442 # Note: this linker hardcodes the directories in LIBPATH if there
9443 # are no directories specified by -L.
9444 hardcode_minus_L=yes
9445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9446 # Neither direct hardcoding nor static linking is supported with a
9447 # broken collect2.
9448 hardcode_direct=unsupported
9452 aix[4-9]*)
9453 if test "$host_cpu" = ia64; then
9454 # On IA64, the linker does run time linking by default, so we don't
9455 # have to do anything special.
9456 aix_use_runtimelinking=no
9457 exp_sym_flag='-Bexport'
9458 no_entry_flag=""
9459 else
9460 # If we're using GNU nm, then we don't want the "-C" option.
9461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9463 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'
9464 else
9465 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'
9467 aix_use_runtimelinking=no
9469 # Test if we are trying to use run time linking or normal
9470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9471 # need to do runtime linking.
9472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9473 for ld_flag in $LDFLAGS; do
9474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9475 aix_use_runtimelinking=yes
9476 break
9478 done
9480 esac
9482 exp_sym_flag='-bexport'
9483 no_entry_flag='-bnoentry'
9486 # When large executables or shared objects are built, AIX ld can
9487 # have problems creating the table of contents. If linking a library
9488 # or program results in "error TOC overflow" add -mminimal-toc to
9489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9492 archive_cmds=''
9493 hardcode_direct=yes
9494 hardcode_direct_absolute=yes
9495 hardcode_libdir_separator=':'
9496 link_all_deplibs=yes
9497 file_list_spec='${wl}-f,'
9499 if test "$GCC" = yes; then
9500 case $host_os in aix4.[012]|aix4.[012].*)
9501 # We only want to do this on AIX 4.2 and lower, the check
9502 # below for broken collect2 doesn't work under 4.3+
9503 collect2name=`${CC} -print-prog-name=collect2`
9504 if test -f "$collect2name" &&
9505 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9506 then
9507 # We have reworked collect2
9509 else
9510 # We have old collect2
9511 hardcode_direct=unsupported
9512 # It fails to find uninstalled libraries when the uninstalled
9513 # path is not listed in the libpath. Setting hardcode_minus_L
9514 # to unsupported forces relinking
9515 hardcode_minus_L=yes
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_libdir_separator=
9520 esac
9521 shared_flag='-shared'
9522 if test "$aix_use_runtimelinking" = yes; then
9523 shared_flag="$shared_flag "'${wl}-G'
9525 else
9526 # not using gcc
9527 if test "$host_cpu" = ia64; then
9528 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9529 # chokes on -Wl,-G. The following line is correct:
9530 shared_flag='-G'
9531 else
9532 if test "$aix_use_runtimelinking" = yes; then
9533 shared_flag='${wl}-G'
9534 else
9535 shared_flag='${wl}-bM:SRE'
9540 export_dynamic_flag_spec='${wl}-bexpall'
9541 # It seems that -bexpall does not export symbols beginning with
9542 # underscore (_), so it is better to generate a list of symbols to export.
9543 always_export_symbols=yes
9544 if test "$aix_use_runtimelinking" = yes; then
9545 # Warning - without using the other runtime loading flags (-brtl),
9546 # -berok will link without error, but may produce a broken library.
9547 allow_undefined_flag='-berok'
9548 # Determine the default libpath from the value encoded in an
9549 # empty executable.
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9554 main ()
9558 return 0;
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9563 lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\(.*\)$/\1/
9570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571 # Check for a 64-bit object if we didn't find anything.
9572 if test -z "$aix_libpath"; then
9573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581 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"
9582 else
9583 if test "$host_cpu" = ia64; then
9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9585 allow_undefined_flag="-z nodefs"
9586 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"
9587 else
9588 # Determine the default libpath from the value encoded in an
9589 # empty executable.
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9594 main ()
9598 return 0;
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9603 lt_aix_libpath_sed='
9604 /Import File Strings/,/^$/ {
9605 /^0/ {
9606 s/^0 *\(.*\)$/\1/
9610 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611 # Check for a 64-bit object if we didn't find anything.
9612 if test -z "$aix_libpath"; then
9613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9621 # Warning - without using the other run time loading flags,
9622 # -berok will link without error, but may produce a broken library.
9623 no_undefined_flag=' ${wl}-bernotok'
9624 allow_undefined_flag=' ${wl}-berok'
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec='$convenience'
9627 archive_cmds_need_lc=yes
9628 # This is similar to how AIX traditionally builds its shared libraries.
9629 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'
9634 amigaos*)
9635 case $host_cpu in
9636 powerpc)
9637 # see comment about AmigaOS4 .so support
9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639 archive_expsym_cmds=''
9641 m68k)
9642 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)'
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_minus_L=yes
9646 esac
9649 bsdi[45]*)
9650 export_dynamic_flag_spec=-rdynamic
9653 cygwin* | mingw* | pw32* | cegcc*)
9654 # When not using gcc, we currently assume that we are using
9655 # Microsoft Visual C++.
9656 # hardcode_libdir_flag_spec is actually meaningless, as there is
9657 # no search path for DLLs.
9658 hardcode_libdir_flag_spec=' '
9659 allow_undefined_flag=unsupported
9660 # Tell ltmain to make .lib files, not .a files.
9661 libext=lib
9662 # Tell ltmain to make .dll files, not .so files.
9663 shrext_cmds=".dll"
9664 # FIXME: Setting linknames here is a bad hack.
9665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9666 # The linker will automatically build a .lib file if we build a DLL.
9667 old_archive_from_new_cmds='true'
9668 # FIXME: Should let the user specify the lib program.
9669 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9670 fix_srcfile_path='`cygpath -w "$srcfile"`'
9671 enable_shared_with_static_runtimes=yes
9674 darwin* | rhapsody*)
9677 archive_cmds_need_lc=no
9678 hardcode_direct=no
9679 hardcode_automatic=yes
9680 hardcode_shlibpath_var=unsupported
9681 whole_archive_flag_spec=''
9682 link_all_deplibs=yes
9683 allow_undefined_flag="$_lt_dar_allow_undefined"
9684 case $cc_basename in
9685 ifort*) _lt_dar_can_shared=yes ;;
9686 *) _lt_dar_can_shared=$GCC ;;
9687 esac
9688 if test "$_lt_dar_can_shared" = "yes"; then
9689 output_verbose_link_cmd=echo
9690 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9691 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9692 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}"
9693 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}"
9695 else
9696 ld_shlibs=no
9701 dgux*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9707 freebsd1*)
9708 ld_shlibs=no
9711 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712 # support. Future versions do this automatically, but an explicit c++rt0.o
9713 # does not break anything, and helps significantly (at the cost of a little
9714 # extra space).
9715 freebsd2.2*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9722 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9723 freebsd2*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_direct=yes
9726 hardcode_minus_L=yes
9727 hardcode_shlibpath_var=no
9730 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731 freebsd* | dragonfly*)
9732 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9738 hpux9*)
9739 if test "$GCC" = yes; then
9740 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'
9741 else
9742 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'
9744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_direct=yes
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 export_dynamic_flag_spec='${wl}-E'
9754 hpux10*)
9755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9757 else
9758 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760 if test "$with_gnu_ld" = no; then
9761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762 hardcode_libdir_flag_spec_ld='+b $libdir'
9763 hardcode_libdir_separator=:
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L=yes
9773 hpux11*)
9774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9775 case $host_cpu in
9776 hppa*64*)
9777 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 ia64*)
9780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785 esac
9786 else
9787 case $host_cpu in
9788 hppa*64*)
9789 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 ia64*)
9792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9797 esac
9799 if test "$with_gnu_ld" = no; then
9800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9801 hardcode_libdir_separator=:
9803 case $host_cpu in
9804 hppa*64*|ia64*)
9805 hardcode_direct=no
9806 hardcode_shlibpath_var=no
9809 hardcode_direct=yes
9810 hardcode_direct_absolute=yes
9811 export_dynamic_flag_spec='${wl}-E'
9813 # hardcode_minus_L: Not really in the search PATH,
9814 # but as the default location of the library.
9815 hardcode_minus_L=yes
9817 esac
9821 irix5* | irix6* | nonstopux*)
9822 if test "$GCC" = yes; then
9823 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'
9824 # Try to use the -exported_symbol ld option, if it does not
9825 # work, assume that -exports_file does not work either and
9826 # implicitly export all symbols.
9827 save_LDFLAGS="$LDFLAGS"
9828 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int foo(void) {}
9832 _ACEOF
9833 if ac_fn_c_try_link "$LINENO"; then :
9834 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'
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LDFLAGS="$save_LDFLAGS"
9840 else
9841 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'
9842 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'
9844 archive_cmds_need_lc='no'
9845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846 hardcode_libdir_separator=:
9847 inherit_rpath=yes
9848 link_all_deplibs=yes
9851 netbsd*)
9852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9854 else
9855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9857 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_direct=yes
9859 hardcode_shlibpath_var=no
9862 newsos6)
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_direct=yes
9865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator=:
9867 hardcode_shlibpath_var=no
9870 *nto* | *qnx*)
9873 openbsd*)
9874 if test -f /usr/libexec/ld.so; then
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 hardcode_direct_absolute=yes
9878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9882 export_dynamic_flag_spec='${wl}-E'
9883 else
9884 case $host_os in
9885 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_libdir_flag_spec='-R$libdir'
9890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9893 esac
9895 else
9896 ld_shlibs=no
9900 os2*)
9901 hardcode_libdir_flag_spec='-L$libdir'
9902 hardcode_minus_L=yes
9903 allow_undefined_flag=unsupported
9904 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'
9905 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9908 osf3*)
9909 if test "$GCC" = yes; then
9910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9911 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'
9912 else
9913 allow_undefined_flag=' -expect_unresolved \*'
9914 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'
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918 hardcode_libdir_separator=:
9921 osf4* | osf5*) # as osf3* with the addition of -msym flag
9922 if test "$GCC" = yes; then
9923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924 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'
9925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926 else
9927 allow_undefined_flag=' -expect_unresolved \*'
9928 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'
9929 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~
9930 $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'
9932 # Both c and cxx compiler support -rpath directly
9933 hardcode_libdir_flag_spec='-rpath $libdir'
9935 archive_cmds_need_lc='no'
9936 hardcode_libdir_separator=:
9939 solaris*)
9940 no_undefined_flag=' -z defs'
9941 if test "$GCC" = yes; then
9942 wlarc='${wl}'
9943 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9946 else
9947 case `$CC -V 2>&1` in
9948 *"Compilers 5.0"*)
9949 wlarc=''
9950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9955 wlarc='${wl}'
9956 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9958 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9960 esac
9962 hardcode_libdir_flag_spec='-R$libdir'
9963 hardcode_shlibpath_var=no
9964 case $host_os in
9965 solaris2.[0-5] | solaris2.[0-5].*) ;;
9967 # The compiler driver will combine and reorder linker options,
9968 # but understands `-z linker_flag'. GCC discards it without `$wl',
9969 # but is careful enough not to reorder.
9970 # Supported since Solaris 2.6 (maybe 2.5.1?)
9971 if test "$GCC" = yes; then
9972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9973 else
9974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9977 esac
9978 link_all_deplibs=yes
9981 sunos4*)
9982 if test "x$host_vendor" = xsequent; then
9983 # Use $CC to link under sequent, because it throws in some extra .o
9984 # files that make .init and .fini sections work.
9985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_direct=yes
9991 hardcode_minus_L=yes
9992 hardcode_shlibpath_var=no
9995 sysv4)
9996 case $host_vendor in
9997 sni)
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_direct=yes # is this really true???
10001 siemens)
10002 ## LD is ld it makes a PLAMLIB
10003 ## CC just makes a GrossModule.
10004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10005 reload_cmds='$CC -r -o $output$reload_objs'
10006 hardcode_direct=no
10008 motorola)
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10012 esac
10013 runpath_var='LD_RUN_PATH'
10014 hardcode_shlibpath_var=no
10017 sysv4.3*)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_shlibpath_var=no
10020 export_dynamic_flag_spec='-Bexport'
10023 sysv4*MP*)
10024 if test -d /usr/nec; then
10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_shlibpath_var=no
10027 runpath_var=LD_RUN_PATH
10028 hardcode_runpath_var=yes
10029 ld_shlibs=yes
10033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10034 no_undefined_flag='${wl}-z,text'
10035 archive_cmds_need_lc=no
10036 hardcode_shlibpath_var=no
10037 runpath_var='LD_RUN_PATH'
10039 if test "$GCC" = yes; then
10040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 else
10043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 sysv5* | sco3.2v5* | sco5v6*)
10049 # Note: We can NOT use -z defs as we might desire, because we do not
10050 # link with -lc, and that would cause any symbols used from libc to
10051 # always be unresolved, which means just about no library would
10052 # ever link correctly. If we're not using GNU ld we use -z text
10053 # though, which does catch some bad symbols but isn't as heavy-handed
10054 # as -z defs.
10055 no_undefined_flag='${wl}-z,text'
10056 allow_undefined_flag='${wl}-z,nodefs'
10057 archive_cmds_need_lc=no
10058 hardcode_shlibpath_var=no
10059 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10060 hardcode_libdir_separator=':'
10061 link_all_deplibs=yes
10062 export_dynamic_flag_spec='${wl}-Bexport'
10063 runpath_var='LD_RUN_PATH'
10065 if test "$GCC" = yes; then
10066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 else
10069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 uts4*)
10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_libdir_flag_spec='-L$libdir'
10077 hardcode_shlibpath_var=no
10081 ld_shlibs=no
10083 esac
10085 if test x$host_vendor = xsni; then
10086 case $host in
10087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10088 export_dynamic_flag_spec='${wl}-Blargedynsym'
10090 esac
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10095 $as_echo "$ld_shlibs" >&6; }
10096 test "$ld_shlibs" = no && can_build_shared=no
10098 with_gnu_ld=$with_gnu_ld
10115 # Do we need to explicitly link libc?
10117 case "x$archive_cmds_need_lc" in
10118 x|xyes)
10119 # Assume -lc should be added
10120 archive_cmds_need_lc=yes
10122 if test "$enable_shared" = yes && test "$GCC" = yes; then
10123 case $archive_cmds in
10124 *'~'*)
10125 # FIXME: we may have to deal with multi-command sequences.
10127 '$CC '*)
10128 # Test whether the compiler implicitly links with -lc since on some
10129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10130 # to ld, don't add -lc before -lgcc.
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10132 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10133 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 $RM conftest*
10137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10140 (eval $ac_compile) 2>&5
10141 ac_status=$?
10142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10143 test $ac_status = 0; } 2>conftest.err; then
10144 soname=conftest
10145 lib=conftest
10146 libobjs=conftest.$ac_objext
10147 deplibs=
10148 wl=$lt_prog_compiler_wl
10149 pic_flag=$lt_prog_compiler_pic
10150 compiler_flags=-v
10151 linker_flags=-v
10152 verstring=
10153 output_objdir=.
10154 libname=conftest
10155 lt_save_allow_undefined_flag=$allow_undefined_flag
10156 allow_undefined_flag=
10157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10158 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10159 ac_status=$?
10160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161 test $ac_status = 0; }
10162 then
10163 lt_cv_archive_cmds_need_lc=no
10164 else
10165 lt_cv_archive_cmds_need_lc=yes
10167 allow_undefined_flag=$lt_save_allow_undefined_flag
10168 else
10169 cat conftest.err 1>&5
10171 $RM conftest*
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10175 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10176 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10178 esac
10181 esac
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10340 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10342 if test "$GCC" = yes; then
10343 case $host_os in
10344 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10345 *) lt_awk_arg="/^libraries:/" ;;
10346 esac
10347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10348 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10349 # if the path contains ";" then we assume it to be the separator
10350 # otherwise default to the standard path separator (i.e. ":") - it is
10351 # assumed that no part of a normal pathname contains ";" but that should
10352 # okay in the real world where ";" in dirpaths is itself problematic.
10353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10354 else
10355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10357 # Ok, now we have the path, separated by spaces, we can step through it
10358 # and add multilib dir if necessary.
10359 lt_tmp_lt_search_path_spec=
10360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10361 for lt_sys_path in $lt_search_path_spec; do
10362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10364 else
10365 test -d "$lt_sys_path" && \
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10368 done
10369 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10370 BEGIN {RS=" "; FS="/|\n";} {
10371 lt_foo="";
10372 lt_count=0;
10373 for (lt_i = NF; lt_i > 0; lt_i--) {
10374 if ($lt_i != "" && $lt_i != ".") {
10375 if ($lt_i == "..") {
10376 lt_count++;
10377 } else {
10378 if (lt_count == 0) {
10379 lt_foo="/" $lt_i lt_foo;
10380 } else {
10381 lt_count--;
10386 if (lt_foo != "") { lt_freq[lt_foo]++; }
10387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10389 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10390 else
10391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10393 library_names_spec=
10394 libname_spec='lib$name'
10395 soname_spec=
10396 shrext_cmds=".so"
10397 postinstall_cmds=
10398 postuninstall_cmds=
10399 finish_cmds=
10400 finish_eval=
10401 shlibpath_var=
10402 shlibpath_overrides_runpath=unknown
10403 version_type=none
10404 dynamic_linker="$host_os ld.so"
10405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10406 need_lib_prefix=unknown
10407 hardcode_into_libs=no
10409 # when you set need_version to no, make sure it does not cause -set_version
10410 # flags to be left without arguments
10411 need_version=unknown
10413 case $host_os in
10414 aix3*)
10415 version_type=linux
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10417 shlibpath_var=LIBPATH
10419 # AIX 3 has no versioning support, so we append a major version to the name.
10420 soname_spec='${libname}${release}${shared_ext}$major'
10423 aix[4-9]*)
10424 version_type=linux
10425 need_lib_prefix=no
10426 need_version=no
10427 hardcode_into_libs=yes
10428 if test "$host_cpu" = ia64; then
10429 # AIX 5 supports IA64
10430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 else
10433 # With GCC up to 2.95.x, collect2 would create an import file
10434 # for dependence libraries. The import file would start with
10435 # the line `#! .'. This would cause the generated library to
10436 # depend on `.', always an invalid library. This was fixed in
10437 # development snapshots of GCC prior to 3.0.
10438 case $host_os in
10439 aix4 | aix4.[01] | aix4.[01].*)
10440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10441 echo ' yes '
10442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10444 else
10445 can_build_shared=no
10448 esac
10449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10450 # soname into executable. Probably we can add versioning support to
10451 # collect2, so additional links can be useful in future.
10452 if test "$aix_use_runtimelinking" = yes; then
10453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10454 # instead of lib<name>.a to let people know that these are not
10455 # typical AIX shared libraries.
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 else
10458 # We preserve .a as extension for shared libraries through AIX4.2
10459 # and later when we are not doing run time linking.
10460 library_names_spec='${libname}${release}.a $libname.a'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LIBPATH
10467 amigaos*)
10468 case $host_cpu in
10469 powerpc)
10470 # Since July 2007 AmigaOS4 officially supports .so libraries.
10471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 m68k)
10475 library_names_spec='$libname.ixlibrary $libname.a'
10476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10477 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'
10479 esac
10482 beos*)
10483 library_names_spec='${libname}${shared_ext}'
10484 dynamic_linker="$host_os ld.so"
10485 shlibpath_var=LIBRARY_PATH
10488 bsdi[45]*)
10489 version_type=linux
10490 need_version=no
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10497 # the default ld.so.conf also contains /usr/contrib/lib and
10498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10499 # libtool to hard-code these into programs
10502 cygwin* | mingw* | pw32* | cegcc*)
10503 version_type=windows
10504 shrext_cmds=".dll"
10505 need_version=no
10506 need_lib_prefix=no
10508 case $GCC,$host_os in
10509 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10510 library_names_spec='$libname.dll.a'
10511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10512 postinstall_cmds='base_file=`basename \${file}`~
10513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10514 dldir=$destdir/`dirname \$dlpath`~
10515 test -d \$dldir || mkdir -p \$dldir~
10516 $install_prog $dir/$dlname \$dldir/$dlname~
10517 chmod a+x \$dldir/$dlname~
10518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10522 dlpath=$dir/\$dldll~
10523 $RM \$dlpath'
10524 shlibpath_overrides_runpath=yes
10526 case $host_os in
10527 cygwin*)
10528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10532 mingw* | cegcc*)
10533 # MinGW DLLs use traditional 'lib' prefix
10534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10536 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10537 # It is most probably a Windows format PATH printed by
10538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10539 # path with ; separators, and with drive letters. We can handle the
10540 # drive letters (cygwin fileutils understands them), so leave them,
10541 # especially as we might pass files found there to a mingw objdump,
10542 # which wouldn't understand a cygwinified path. Ahh.
10543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10544 else
10545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10548 pw32*)
10549 # pw32 DLLs use 'pw' prefix rather than 'lib'
10550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10552 esac
10556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10558 esac
10559 dynamic_linker='Win32 ld.exe'
10560 # FIXME: first we should search . and the directory the executable is in
10561 shlibpath_var=PATH
10564 darwin* | rhapsody*)
10565 dynamic_linker="$host_os dyld"
10566 version_type=darwin
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10570 soname_spec='${libname}${release}${major}$shared_ext'
10571 shlibpath_overrides_runpath=yes
10572 shlibpath_var=DYLD_LIBRARY_PATH
10573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10579 dgux*)
10580 version_type=linux
10581 need_lib_prefix=no
10582 need_version=no
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 shlibpath_var=LD_LIBRARY_PATH
10588 freebsd1*)
10589 dynamic_linker=no
10592 freebsd* | dragonfly*)
10593 # DragonFly does not have aout. When/if they implement a new
10594 # versioning mechanism, adjust this.
10595 if test -x /usr/bin/objformat; then
10596 objformat=`/usr/bin/objformat`
10597 else
10598 case $host_os in
10599 freebsd[123]*) objformat=aout ;;
10600 *) objformat=elf ;;
10601 esac
10603 version_type=freebsd-$objformat
10604 case $version_type in
10605 freebsd-elf*)
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10607 need_version=no
10608 need_lib_prefix=no
10610 freebsd-*)
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10612 need_version=yes
10614 esac
10615 shlibpath_var=LD_LIBRARY_PATH
10616 case $host_os in
10617 freebsd2*)
10618 shlibpath_overrides_runpath=yes
10620 freebsd3.[01]* | freebsdelf3.[01]*)
10621 shlibpath_overrides_runpath=yes
10622 hardcode_into_libs=yes
10624 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10625 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10626 shlibpath_overrides_runpath=no
10627 hardcode_into_libs=yes
10629 *) # from 4.6 on, and DragonFly
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10633 esac
10636 gnu*)
10637 version_type=linux
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 shlibpath_var=LD_LIBRARY_PATH
10643 hardcode_into_libs=yes
10646 hpux9* | hpux10* | hpux11*)
10647 # Give a soname corresponding to the major version so that dld.sl refuses to
10648 # link against other versions.
10649 version_type=sunos
10650 need_lib_prefix=no
10651 need_version=no
10652 case $host_cpu in
10653 ia64*)
10654 shrext_cmds='.so'
10655 hardcode_into_libs=yes
10656 dynamic_linker="$host_os dld.so"
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 if test "X$HPUX_IA64_MODE" = X32; then
10662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10663 else
10664 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10668 hppa*64*)
10669 shrext_cmds='.sl'
10670 hardcode_into_libs=yes
10671 dynamic_linker="$host_os dld.sl"
10672 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10680 shrext_cmds='.sl'
10681 dynamic_linker="$host_os dld.sl"
10682 shlibpath_var=SHLIB_PATH
10683 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10687 esac
10688 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10689 postinstall_cmds='chmod 555 $lib'
10692 interix[3-9]*)
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=no
10701 hardcode_into_libs=yes
10704 irix5* | irix6* | nonstopux*)
10705 case $host_os in
10706 nonstopux*) version_type=nonstopux ;;
10708 if test "$lt_cv_prog_gnu_ld" = yes; then
10709 version_type=linux
10710 else
10711 version_type=irix
10712 fi ;;
10713 esac
10714 need_lib_prefix=no
10715 need_version=no
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10718 case $host_os in
10719 irix5* | nonstopux*)
10720 libsuff= shlibsuff=
10723 case $LD in # libtool.m4 will add one of these switches to LD
10724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10725 libsuff= shlibsuff= libmagic=32-bit;;
10726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10727 libsuff=32 shlibsuff=N32 libmagic=N32;;
10728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10729 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10730 *) libsuff= shlibsuff= libmagic=never-match;;
10731 esac
10733 esac
10734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10735 shlibpath_overrides_runpath=no
10736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10738 hardcode_into_libs=yes
10741 # No shared lib support for Linux oldld, aout, or coff.
10742 linux*oldld* | linux*aout* | linux*coff*)
10743 dynamic_linker=no
10746 # This must be Linux ELF.
10747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10748 version_type=linux
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 shlibpath_overrides_runpath=no
10757 # Some binutils ld are patched to set DT_RUNPATH
10758 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 lt_cv_shlibpath_overrides_runpath=no
10762 save_LDFLAGS=$LDFLAGS
10763 save_libdir=$libdir
10764 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10765 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10770 main ()
10774 return 0;
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10779 lt_cv_shlibpath_overrides_runpath=yes
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LDFLAGS=$save_LDFLAGS
10785 libdir=$save_libdir
10789 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10791 # This implies no fast_install, which is unacceptable.
10792 # Some rework will be needed to allow for fast_install
10793 # before this can be enabled.
10794 hardcode_into_libs=yes
10796 # Append ld.so.conf contents to the search path
10797 if test -f /etc/ld.so.conf; then
10798 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' ' '`
10799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10802 # We used to test for /lib/ld.so.1 and disable shared libraries on
10803 # powerpc, because MkLinux only supported shared libraries with the
10804 # GNU dynamic linker. Since this was broken with cross compilers,
10805 # most powerpc-linux boxes support dynamic linking these days and
10806 # people can always --disable-shared, the test was removed, and we
10807 # assume the GNU/Linux dynamic linker is in use.
10808 dynamic_linker='GNU/Linux ld.so'
10811 netbsd*)
10812 version_type=sunos
10813 need_lib_prefix=no
10814 need_version=no
10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10818 dynamic_linker='NetBSD (a.out) ld.so'
10819 else
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 dynamic_linker='NetBSD ld.elf_so'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10829 newsos6)
10830 version_type=linux
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 shlibpath_overrides_runpath=yes
10836 *nto* | *qnx*)
10837 version_type=qnx
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=no
10844 hardcode_into_libs=yes
10845 dynamic_linker='ldqnx.so'
10848 openbsd*)
10849 version_type=sunos
10850 sys_lib_dlsearch_path_spec="/usr/lib"
10851 need_lib_prefix=no
10852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10853 case $host_os in
10854 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10855 *) need_version=no ;;
10856 esac
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10861 case $host_os in
10862 openbsd2.[89] | openbsd2.[89].*)
10863 shlibpath_overrides_runpath=no
10866 shlibpath_overrides_runpath=yes
10868 esac
10869 else
10870 shlibpath_overrides_runpath=yes
10874 os2*)
10875 libname_spec='$name'
10876 shrext_cmds=".dll"
10877 need_lib_prefix=no
10878 library_names_spec='$libname${shared_ext} $libname.a'
10879 dynamic_linker='OS/2 ld.exe'
10880 shlibpath_var=LIBPATH
10883 osf3* | osf4* | osf5*)
10884 version_type=osf
10885 need_lib_prefix=no
10886 need_version=no
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10894 rdos*)
10895 dynamic_linker=no
10898 solaris*)
10899 version_type=linux
10900 need_lib_prefix=no
10901 need_version=no
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 # ldd complains unless libraries are executable
10908 postinstall_cmds='chmod +x $lib'
10911 sunos4*)
10912 version_type=sunos
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10917 if test "$with_gnu_ld" = yes; then
10918 need_lib_prefix=no
10920 need_version=yes
10923 sysv4 | sysv4.3*)
10924 version_type=linux
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 case $host_vendor in
10929 sni)
10930 shlibpath_overrides_runpath=no
10931 need_lib_prefix=no
10932 runpath_var=LD_RUN_PATH
10934 siemens)
10935 need_lib_prefix=no
10937 motorola)
10938 need_lib_prefix=no
10939 need_version=no
10940 shlibpath_overrides_runpath=no
10941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10943 esac
10946 sysv4*MP*)
10947 if test -d /usr/nec ;then
10948 version_type=linux
10949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10950 soname_spec='$libname${shared_ext}.$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10956 version_type=freebsd-elf
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10964 if test "$with_gnu_ld" = yes; then
10965 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10966 else
10967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10968 case $host_os in
10969 sco3.2v5*)
10970 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10972 esac
10974 sys_lib_dlsearch_path_spec='/usr/lib'
10977 tpf*)
10978 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10979 version_type=linux
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985 hardcode_into_libs=yes
10988 uts4*)
10989 version_type=linux
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10996 dynamic_linker=no
10998 esac
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11000 $as_echo "$dynamic_linker" >&6; }
11001 test "$dynamic_linker" = no && can_build_shared=no
11003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11004 if test "$GCC" = yes; then
11005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11008 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11009 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11011 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11012 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11102 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11103 hardcode_action=
11104 if test -n "$hardcode_libdir_flag_spec" ||
11105 test -n "$runpath_var" ||
11106 test "X$hardcode_automatic" = "Xyes" ; then
11108 # We can hardcode non-existent directories.
11109 if test "$hardcode_direct" != no &&
11110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11111 # have to relink, otherwise we might link with an installed library
11112 # when we should be linking with a yet-to-be-installed one
11113 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11114 test "$hardcode_minus_L" != no; then
11115 # Linking always hardcodes the temporary library directory.
11116 hardcode_action=relink
11117 else
11118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11119 hardcode_action=immediate
11121 else
11122 # We cannot hardcode anything, or else we can only hardcode existing
11123 # directories.
11124 hardcode_action=unsupported
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11127 $as_echo "$hardcode_action" >&6; }
11129 if test "$hardcode_action" = relink ||
11130 test "$inherit_rpath" = yes; then
11131 # Fast installation is not supported
11132 enable_fast_install=no
11133 elif test "$shlibpath_overrides_runpath" = yes ||
11134 test "$enable_shared" = no; then
11135 # Fast installation is not necessary
11136 enable_fast_install=needless
11144 if test "x$enable_dlopen" != xyes; then
11145 enable_dlopen=unknown
11146 enable_dlopen_self=unknown
11147 enable_dlopen_self_static=unknown
11148 else
11149 lt_cv_dlopen=no
11150 lt_cv_dlopen_libs=
11152 case $host_os in
11153 beos*)
11154 lt_cv_dlopen="load_add_on"
11155 lt_cv_dlopen_libs=
11156 lt_cv_dlopen_self=yes
11159 mingw* | pw32* | cegcc*)
11160 lt_cv_dlopen="LoadLibrary"
11161 lt_cv_dlopen_libs=
11164 cygwin*)
11165 lt_cv_dlopen="dlopen"
11166 lt_cv_dlopen_libs=
11169 darwin*)
11170 # if libdl is installed we need to link against it
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11173 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-ldl $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char dlopen ();
11189 main ()
11191 return dlopen ();
11193 return 0;
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_dl_dlopen=yes
11198 else
11199 ac_cv_lib_dl_dlopen=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11207 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11209 else
11211 lt_cv_dlopen="dyld"
11212 lt_cv_dlopen_libs=
11213 lt_cv_dlopen_self=yes
11220 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11221 if test "x$ac_cv_func_shl_load" = x""yes; then :
11222 lt_cv_dlopen="shl_load"
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11225 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11226 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 ac_check_lib_save_LIBS=$LIBS
11230 LIBS="-ldld $LIBS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char shl_load ();
11242 main ()
11244 return shl_load ();
11246 return 0;
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 ac_cv_lib_dld_shl_load=yes
11251 else
11252 ac_cv_lib_dld_shl_load=no
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11259 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11260 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11261 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11262 else
11263 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11264 if test "x$ac_cv_func_dlopen" = x""yes; then :
11265 lt_cv_dlopen="dlopen"
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11268 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11269 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 ac_check_lib_save_LIBS=$LIBS
11273 LIBS="-ldl $LIBS"
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 /* Override any GCC internal prototype to avoid an error.
11278 Use char because int might match the return type of a GCC
11279 builtin and then its argument prototype would still apply. */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 char dlopen ();
11285 main ()
11287 return dlopen ();
11289 return 0;
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293 ac_cv_lib_dl_dlopen=yes
11294 else
11295 ac_cv_lib_dl_dlopen=no
11297 rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11302 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11303 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11307 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11308 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-lsvld $LIBS"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char dlopen ();
11324 main ()
11326 return dlopen ();
11328 return 0;
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_lib_svld_dlopen=yes
11333 else
11334 ac_cv_lib_svld_dlopen=no
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 LIBS=$ac_check_lib_save_LIBS
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11341 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11342 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-ldld $LIBS"
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11355 /* Override any GCC internal prototype to avoid an error.
11356 Use char because int might match the return type of a GCC
11357 builtin and then its argument prototype would still apply. */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 char dld_link ();
11363 main ()
11365 return dld_link ();
11367 return 0;
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 ac_cv_lib_dld_dld_link=yes
11372 else
11373 ac_cv_lib_dld_dld_link=no
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11380 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11381 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11382 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11401 esac
11403 if test "x$lt_cv_dlopen" != xno; then
11404 enable_dlopen=yes
11405 else
11406 enable_dlopen=no
11409 case $lt_cv_dlopen in
11410 dlopen)
11411 save_CPPFLAGS="$CPPFLAGS"
11412 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11414 save_LDFLAGS="$LDFLAGS"
11415 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11417 save_LIBS="$LIBS"
11418 LIBS="$lt_cv_dlopen_libs $LIBS"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11421 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11422 if test "${lt_cv_dlopen_self+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 if test "$cross_compiling" = yes; then :
11426 lt_cv_dlopen_self=cross
11427 else
11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11429 lt_status=$lt_dlunknown
11430 cat > conftest.$ac_ext <<_LT_EOF
11431 #line 11431 "configure"
11432 #include "confdefs.h"
11434 #if HAVE_DLFCN_H
11435 #include <dlfcn.h>
11436 #endif
11438 #include <stdio.h>
11440 #ifdef RTLD_GLOBAL
11441 # define LT_DLGLOBAL RTLD_GLOBAL
11442 #else
11443 # ifdef DL_GLOBAL
11444 # define LT_DLGLOBAL DL_GLOBAL
11445 # else
11446 # define LT_DLGLOBAL 0
11447 # endif
11448 #endif
11450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11451 find out it does not work in some platform. */
11452 #ifndef LT_DLLAZY_OR_NOW
11453 # ifdef RTLD_LAZY
11454 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11455 # else
11456 # ifdef DL_LAZY
11457 # define LT_DLLAZY_OR_NOW DL_LAZY
11458 # else
11459 # ifdef RTLD_NOW
11460 # define LT_DLLAZY_OR_NOW RTLD_NOW
11461 # else
11462 # ifdef DL_NOW
11463 # define LT_DLLAZY_OR_NOW DL_NOW
11464 # else
11465 # define LT_DLLAZY_OR_NOW 0
11466 # endif
11467 # endif
11468 # endif
11469 # endif
11470 #endif
11472 void fnord() { int i=42;}
11473 int main ()
11475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11476 int status = $lt_dlunknown;
11478 if (self)
11480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11481 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11482 /* dlclose (self); */
11484 else
11485 puts (dlerror ());
11487 return status;
11489 _LT_EOF
11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11491 (eval $ac_link) 2>&5
11492 ac_status=$?
11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11495 (./conftest; exit; ) >&5 2>/dev/null
11496 lt_status=$?
11497 case x$lt_status in
11498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11500 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11501 esac
11502 else :
11503 # compilation failed
11504 lt_cv_dlopen_self=no
11507 rm -fr conftest*
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11512 $as_echo "$lt_cv_dlopen_self" >&6; }
11514 if test "x$lt_cv_dlopen_self" = xyes; then
11515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11517 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11518 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test "$cross_compiling" = yes; then :
11522 lt_cv_dlopen_self_static=cross
11523 else
11524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11525 lt_status=$lt_dlunknown
11526 cat > conftest.$ac_ext <<_LT_EOF
11527 #line 11527 "configure"
11528 #include "confdefs.h"
11530 #if HAVE_DLFCN_H
11531 #include <dlfcn.h>
11532 #endif
11534 #include <stdio.h>
11536 #ifdef RTLD_GLOBAL
11537 # define LT_DLGLOBAL RTLD_GLOBAL
11538 #else
11539 # ifdef DL_GLOBAL
11540 # define LT_DLGLOBAL DL_GLOBAL
11541 # else
11542 # define LT_DLGLOBAL 0
11543 # endif
11544 #endif
11546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11547 find out it does not work in some platform. */
11548 #ifndef LT_DLLAZY_OR_NOW
11549 # ifdef RTLD_LAZY
11550 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11551 # else
11552 # ifdef DL_LAZY
11553 # define LT_DLLAZY_OR_NOW DL_LAZY
11554 # else
11555 # ifdef RTLD_NOW
11556 # define LT_DLLAZY_OR_NOW RTLD_NOW
11557 # else
11558 # ifdef DL_NOW
11559 # define LT_DLLAZY_OR_NOW DL_NOW
11560 # else
11561 # define LT_DLLAZY_OR_NOW 0
11562 # endif
11563 # endif
11564 # endif
11565 # endif
11566 #endif
11568 void fnord() { int i=42;}
11569 int main ()
11571 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11572 int status = $lt_dlunknown;
11574 if (self)
11576 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11577 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11578 /* dlclose (self); */
11580 else
11581 puts (dlerror ());
11583 return status;
11585 _LT_EOF
11586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11587 (eval $ac_link) 2>&5
11588 ac_status=$?
11589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11590 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11591 (./conftest; exit; ) >&5 2>/dev/null
11592 lt_status=$?
11593 case x$lt_status in
11594 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11595 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11596 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11597 esac
11598 else :
11599 # compilation failed
11600 lt_cv_dlopen_self_static=no
11603 rm -fr conftest*
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11608 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11611 CPPFLAGS="$save_CPPFLAGS"
11612 LDFLAGS="$save_LDFLAGS"
11613 LIBS="$save_LIBS"
11615 esac
11617 case $lt_cv_dlopen_self in
11618 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11619 *) enable_dlopen_self=unknown ;;
11620 esac
11622 case $lt_cv_dlopen_self_static in
11623 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11624 *) enable_dlopen_self_static=unknown ;;
11625 esac
11644 striplib=
11645 old_striplib=
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11647 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11648 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11649 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11650 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11653 else
11654 # FIXME - insert some real tests, host_os isn't really good enough
11655 case $host_os in
11656 darwin*)
11657 if test -n "$STRIP" ; then
11658 striplib="$STRIP -x"
11659 old_striplib="$STRIP -S"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11661 $as_echo "yes" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11671 esac
11685 # Report which library types will actually be built
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11687 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11689 $as_echo "$can_build_shared" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11692 $as_echo_n "checking whether to build shared libraries... " >&6; }
11693 test "$can_build_shared" = "no" && enable_shared=no
11695 # On AIX, shared libraries and static libraries use the same namespace, and
11696 # are all built from PIC.
11697 case $host_os in
11698 aix3*)
11699 test "$enable_shared" = yes && enable_static=no
11700 if test -n "$RANLIB"; then
11701 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11702 postinstall_cmds='$RANLIB $lib'
11706 aix[4-9]*)
11707 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11708 test "$enable_shared" = yes && enable_static=no
11711 esac
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11713 $as_echo "$enable_shared" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11716 $as_echo_n "checking whether to build static libraries... " >&6; }
11717 # Make sure either enable_shared or enable_static is yes.
11718 test "$enable_shared" = yes || enable_static=yes
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11720 $as_echo "$enable_static" >&6; }
11726 ac_ext=c
11727 ac_cpp='$CPP $CPPFLAGS'
11728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11732 CC="$lt_save_CC"
11746 ac_config_commands="$ac_config_commands libtool"
11751 # Only expand once:
11756 # Check whether --enable-plugins was given.
11757 if test "${enable_plugins+set}" = set; then :
11758 enableval=$enable_plugins; case "${enableval}" in
11759 yes | "") plugins=yes ;;
11760 no) plugins=no ;;
11761 *) plugins=yes ;;
11762 esac
11763 else
11764 plugins=no
11769 if test "$plugins" = "yes"; then
11770 PLUGINS_TRUE=
11771 PLUGINS_FALSE='#'
11772 else
11773 PLUGINS_TRUE='#'
11774 PLUGINS_FALSE=
11778 if test "$plugins" = "yes"; then
11779 if test "$enable_dlopen" != "yes" ; then
11780 as_fn_error "
11781 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
11783 enable_targets="$enable_targets plugin"
11786 case "${target}" in
11787 sparc-*-solaris*|i[3-7]86-*-solaris*)
11788 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11789 # are mutually exclusive; and without procfs support, the elf module
11790 # cannot provide certain routines such as elfcore_write_prpsinfo
11791 # or elfcore_write_prstatus. So unless the user explicitly requested
11792 # large-file support through the --enable-largefile switch, disable
11793 # large-file support in favor of procfs support.
11794 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
11795 if test "$plugins" = "no"; then
11796 enable_largefile="no"
11800 esac
11802 # Check whether --enable-largefile was given.
11803 if test "${enable_largefile+set}" = set; then :
11804 enableval=$enable_largefile;
11807 if test "$enable_largefile" != no; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11810 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11811 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_cv_sys_largefile_CC=no
11815 if test "$GCC" != yes; then
11816 ac_save_CC=$CC
11817 while :; do
11818 # IRIX 6.2 and later do not support large files by default,
11819 # so use the C compiler's -n32 option if that helps.
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822 #include <sys/types.h>
11823 /* Check that off_t can represent 2**63 - 1 correctly.
11824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11825 since some C++ compilers masquerading as C compilers
11826 incorrectly reject 9223372036854775807. */
11827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11829 && LARGE_OFF_T % 2147483647 == 1)
11830 ? 1 : -1];
11832 main ()
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_compile "$LINENO"; then :
11840 break
11842 rm -f core conftest.err conftest.$ac_objext
11843 CC="$CC -n32"
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845 ac_cv_sys_largefile_CC=' -n32'; break
11847 rm -f core conftest.err conftest.$ac_objext
11848 break
11849 done
11850 CC=$ac_save_CC
11851 rm -f conftest.$ac_ext
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11855 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11856 if test "$ac_cv_sys_largefile_CC" != no; then
11857 CC=$CC$ac_cv_sys_largefile_CC
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11861 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11862 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 while :; do
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #include <sys/types.h>
11869 /* Check that off_t can represent 2**63 - 1 correctly.
11870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11871 since some C++ compilers masquerading as C compilers
11872 incorrectly reject 9223372036854775807. */
11873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11875 && LARGE_OFF_T % 2147483647 == 1)
11876 ? 1 : -1];
11878 main ()
11882 return 0;
11884 _ACEOF
11885 if ac_fn_c_try_compile "$LINENO"; then :
11886 ac_cv_sys_file_offset_bits=no; break
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #define _FILE_OFFSET_BITS 64
11892 #include <sys/types.h>
11893 /* Check that off_t can represent 2**63 - 1 correctly.
11894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11895 since some C++ compilers masquerading as C compilers
11896 incorrectly reject 9223372036854775807. */
11897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11899 && LARGE_OFF_T % 2147483647 == 1)
11900 ? 1 : -1];
11902 main ()
11906 return 0;
11908 _ACEOF
11909 if ac_fn_c_try_compile "$LINENO"; then :
11910 ac_cv_sys_file_offset_bits=64; break
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 ac_cv_sys_file_offset_bits=unknown
11914 break
11915 done
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11918 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11919 case $ac_cv_sys_file_offset_bits in #(
11920 no | unknown) ;;
11922 cat >>confdefs.h <<_ACEOF
11923 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11924 _ACEOF
11926 esac
11927 rm -rf conftest*
11928 if test $ac_cv_sys_file_offset_bits = unknown; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11930 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11931 if test "${ac_cv_sys_large_files+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 while :; do
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937 #include <sys/types.h>
11938 /* Check that off_t can represent 2**63 - 1 correctly.
11939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11940 since some C++ compilers masquerading as C compilers
11941 incorrectly reject 9223372036854775807. */
11942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11944 && LARGE_OFF_T % 2147483647 == 1)
11945 ? 1 : -1];
11947 main ()
11951 return 0;
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_sys_large_files=no; break
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 #define _LARGE_FILES 1
11961 #include <sys/types.h>
11962 /* Check that off_t can represent 2**63 - 1 correctly.
11963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11964 since some C++ compilers masquerading as C compilers
11965 incorrectly reject 9223372036854775807. */
11966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11968 && LARGE_OFF_T % 2147483647 == 1)
11969 ? 1 : -1];
11971 main ()
11975 return 0;
11977 _ACEOF
11978 if ac_fn_c_try_compile "$LINENO"; then :
11979 ac_cv_sys_large_files=1; break
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 ac_cv_sys_large_files=unknown
11983 break
11984 done
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11987 $as_echo "$ac_cv_sys_large_files" >&6; }
11988 case $ac_cv_sys_large_files in #(
11989 no | unknown) ;;
11991 cat >>confdefs.h <<_ACEOF
11992 #define _LARGE_FILES $ac_cv_sys_large_files
11993 _ACEOF
11995 esac
11996 rm -rf conftest*
12001 # Check whether --enable-64-bit-bfd was given.
12002 if test "${enable_64_bit_bfd+set}" = set; then :
12003 enableval=$enable_64_bit_bfd; case "${enableval}" in
12004 yes) want64=true ;;
12005 no) want64=false ;;
12006 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12007 esac
12008 else
12009 want64=false
12012 # Check whether --enable-targets was given.
12013 if test "${enable_targets+set}" = set; then :
12014 enableval=$enable_targets; case "${enableval}" in
12015 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12017 no) enable_targets= ;;
12018 *) enable_targets=$enableval ;;
12019 esac
12023 # Check whether --with-mmap was given.
12024 if test "${with_mmap+set}" = set; then :
12025 withval=$with_mmap; case "${withval}" in
12026 yes) want_mmap=true ;;
12027 no) want_mmap=false ;;
12028 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12029 esac
12030 else
12031 want_mmap=false
12034 # Check whether --enable-secureplt was given.
12035 if test "${enable_secureplt+set}" = set; then :
12036 enableval=$enable_secureplt; case "${enableval}" in
12037 yes) use_secureplt=true ;;
12038 no) use_secureplt=false ;;
12039 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12040 esac
12041 else
12042 use_secureplt=false
12044 if test $use_secureplt = true; then
12046 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12050 DEBUGDIR=${libdir}/debug
12052 # Check whether --with-separate-debug-dir was given.
12053 if test "${with_separate_debug_dir+set}" = set; then :
12054 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12059 # Check to see if we should allow the generation of
12060 # symbols with the ELF standard's STT_COMMON type.
12061 # Check whether --enable-elf-stt-common was given.
12062 if test "${enable_elf_stt_common+set}" = set; then :
12063 enableval=$enable_elf_stt_common; case "${enableval}" in
12064 yes) want_elf_stt_common=true ;;
12065 no) want_elf_stt_common=false ;;
12066 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
12067 esac
12068 else
12069 # We have to choose a default behaviour. For native builds we could
12070 # test whether the loader supports the STT_COMMON type, but that would
12071 # mean that built binaries could not be exported to older systems where
12072 # the loader does not support it. So by default we always choose to
12073 # disable this feature.
12074 want_elf_stt_common=false
12076 if test $want_elf_stt_common = true; then
12078 $as_echo "#define USE_STT_COMMON 1" >>confdefs.h
12084 # Check whether --with-pkgversion was given.
12085 if test "${with_pkgversion+set}" = set; then :
12086 withval=$with_pkgversion; case "$withval" in
12087 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12088 no) PKGVERSION= ;;
12089 *) PKGVERSION="($withval) " ;;
12090 esac
12091 else
12092 PKGVERSION="(GNU Binutils) "
12100 # Check whether --with-bugurl was given.
12101 if test "${with_bugurl+set}" = set; then :
12102 withval=$with_bugurl; case "$withval" in
12103 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12104 no) BUGURL=
12106 *) BUGURL="$withval"
12108 esac
12109 else
12110 BUGURL="http://www.sourceware.org/bugzilla/"
12114 case ${BUGURL} in
12116 REPORT_BUGS_TO=
12117 REPORT_BUGS_TEXI=
12120 REPORT_BUGS_TO="<$BUGURL>"
12121 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12123 esac;
12129 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12131 # Check whether --enable-werror was given.
12132 if test "${enable_werror+set}" = set; then :
12133 enableval=$enable_werror; case "${enableval}" in
12134 yes | y) ERROR_ON_WARNING="yes" ;;
12135 no | n) ERROR_ON_WARNING="no" ;;
12136 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12137 esac
12141 # Enable -Wno-format by default when using gcc on mingw
12142 case "${host}" in
12143 *-*-mingw32*)
12144 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12145 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12148 *) ;;
12149 esac
12151 # Enable -Werror by default when using gcc
12152 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12153 ERROR_ON_WARNING=yes
12156 NO_WERROR=
12157 if test "${ERROR_ON_WARNING}" = yes ; then
12158 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12159 NO_WERROR="-Wno-error"
12162 if test "${GCC}" = yes ; then
12163 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12166 # Check whether --enable-build-warnings was given.
12167 if test "${enable_build_warnings+set}" = set; then :
12168 enableval=$enable_build_warnings; case "${enableval}" in
12169 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12170 no) if test "${GCC}" = yes ; then
12171 WARN_CFLAGS="-w"
12172 fi;;
12173 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12174 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12175 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12176 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12177 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12178 esac
12182 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12183 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12190 ac_config_headers="$ac_config_headers config.h:config.in"
12193 if test -z "$target" ; then
12194 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12199 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12200 # Check whether --enable-maintainer-mode was given.
12201 if test "${enable_maintainer_mode+set}" = set; then :
12202 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12203 else
12204 USE_MAINTAINER_MODE=no
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12208 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12209 if test $USE_MAINTAINER_MODE = yes; then
12210 MAINTAINER_MODE_TRUE=
12211 MAINTAINER_MODE_FALSE='#'
12212 else
12213 MAINTAINER_MODE_TRUE='#'
12214 MAINTAINER_MODE_FALSE=
12217 MAINT=$MAINTAINER_MODE_TRUE
12220 if false; then
12221 GENINSRC_NEVER_TRUE=
12222 GENINSRC_NEVER_FALSE='#'
12223 else
12224 GENINSRC_NEVER_TRUE='#'
12225 GENINSRC_NEVER_FALSE=
12228 case ${build_alias} in
12229 "") build_noncanonical=${build} ;;
12230 *) build_noncanonical=${build_alias} ;;
12231 esac
12233 case ${host_alias} in
12234 "") host_noncanonical=${build_noncanonical} ;;
12235 *) host_noncanonical=${host_alias} ;;
12236 esac
12238 case ${target_alias} in
12239 "") target_noncanonical=${host_noncanonical} ;;
12240 *) target_noncanonical=${target_alias} ;;
12241 esac
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12244 $as_echo_n "checking whether to install libbfd... " >&6; }
12245 # Check whether --enable-install-libbfd was given.
12246 if test "${enable_install_libbfd+set}" = set; then :
12247 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12248 else
12249 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12250 install_libbfd_p=yes
12251 else
12252 install_libbfd_p=no
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12257 $as_echo "$install_libbfd_p" >&6; }
12258 if test $install_libbfd_p = yes; then
12259 INSTALL_LIBBFD_TRUE=
12260 INSTALL_LIBBFD_FALSE='#'
12261 else
12262 INSTALL_LIBBFD_TRUE='#'
12263 INSTALL_LIBBFD_FALSE=
12266 # Need _noncanonical variables for this.
12271 # libbfd.a is a host library containing target dependent code
12272 bfdlibdir='$(libdir)'
12273 bfdincludedir='$(includedir)'
12274 if test "${host}" != "${target}"; then
12275 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12276 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12286 host64=false
12287 target64=false
12288 bfd_default_target_size=32
12290 # host stuff:
12292 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
12293 # If we haven't got the data from the intl directory,
12294 # assume NLS is disabled.
12295 USE_NLS=no
12296 LIBINTL=
12297 LIBINTL_DEP=
12298 INCINTL=
12299 XGETTEXT=
12300 GMSGFMT=
12301 POSUB=
12303 if test -f ../intl/config.intl; then
12304 . ../intl/config.intl
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12307 $as_echo_n "checking whether NLS is requested... " >&6; }
12308 if test x"$USE_NLS" != xyes; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12319 $as_echo_n "checking for catalogs to be installed... " >&6; }
12320 # Look for .po and .gmo files in the source directory.
12321 CATALOGS=
12322 XLINGUAS=
12323 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12324 # If there aren't any .gmo files the shell will give us the
12325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12326 # weeded out.
12327 case "$cat" in *\**)
12328 continue;;
12329 esac
12330 # The quadruple backslash is collapsed to a double backslash
12331 # by the backticks, then collapsed again by the double quotes,
12332 # leaving us with one backslash in the sed expression (right
12333 # before the dot that mustn't act as a wildcard).
12334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12335 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12336 # The user is allowed to set LINGUAS to a list of languages to
12337 # install catalogs for. If it's empty that means "all of them."
12338 if test "x$LINGUAS" = x; then
12339 CATALOGS="$CATALOGS $cat"
12340 XLINGUAS="$XLINGUAS $lang"
12341 else
12342 case "$LINGUAS" in *$lang*)
12343 CATALOGS="$CATALOGS $cat"
12344 XLINGUAS="$XLINGUAS $lang"
12346 esac
12348 done
12349 LINGUAS="$XLINGUAS"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12351 $as_echo "$LINGUAS" >&6; }
12354 DATADIRNAME=share
12356 INSTOBJEXT=.mo
12358 GENCAT=gencat
12360 CATOBJEXT=.gmo
12364 MKINSTALLDIRS=
12365 if test -n "$ac_aux_dir"; then
12366 case "$ac_aux_dir" in
12367 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12368 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12369 esac
12371 if test -z "$MKINSTALLDIRS"; then
12372 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12378 $as_echo_n "checking whether NLS is requested... " >&6; }
12379 # Check whether --enable-nls was given.
12380 if test "${enable_nls+set}" = set; then :
12381 enableval=$enable_nls; USE_NLS=$enableval
12382 else
12383 USE_NLS=yes
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12387 $as_echo "$USE_NLS" >&6; }
12394 # Prepare PATH_SEPARATOR.
12395 # The user is always right.
12396 if test "${PATH_SEPARATOR+set}" != set; then
12397 echo "#! /bin/sh" >conf$$.sh
12398 echo "exit 0" >>conf$$.sh
12399 chmod +x conf$$.sh
12400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12401 PATH_SEPARATOR=';'
12402 else
12403 PATH_SEPARATOR=:
12405 rm -f conf$$.sh
12408 # Find out how to test for executable files. Don't use a zero-byte file,
12409 # as systems may use methods other than mode bits to determine executability.
12410 cat >conf$$.file <<_ASEOF
12411 #! /bin/sh
12412 exit 0
12413 _ASEOF
12414 chmod +x conf$$.file
12415 if test -x conf$$.file >/dev/null 2>&1; then
12416 ac_executable_p="test -x"
12417 else
12418 ac_executable_p="test -f"
12420 rm -f conf$$.file
12422 # Extract the first word of "msgfmt", so it can be a program name with args.
12423 set dummy msgfmt; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 case "$MSGFMT" in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12435 for ac_dir in $PATH; do
12436 IFS="$ac_save_IFS"
12437 test -z "$ac_dir" && ac_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12440 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12441 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12442 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12443 break 2
12446 done
12447 done
12448 IFS="$ac_save_IFS"
12449 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12451 esac
12453 MSGFMT="$ac_cv_path_MSGFMT"
12454 if test "$MSGFMT" != ":"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12456 $as_echo "$MSGFMT" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12462 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12463 set dummy gmsgfmt; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 case $GMSGFMT in
12470 [\\/]* | ?:[\\/]*)
12471 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12485 done
12486 done
12487 IFS=$as_save_IFS
12489 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12491 esac
12493 GMSGFMT=$ac_cv_path_GMSGFMT
12494 if test -n "$GMSGFMT"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12496 $as_echo "$GMSGFMT" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12505 # Prepare PATH_SEPARATOR.
12506 # The user is always right.
12507 if test "${PATH_SEPARATOR+set}" != set; then
12508 echo "#! /bin/sh" >conf$$.sh
12509 echo "exit 0" >>conf$$.sh
12510 chmod +x conf$$.sh
12511 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12512 PATH_SEPARATOR=';'
12513 else
12514 PATH_SEPARATOR=:
12516 rm -f conf$$.sh
12519 # Find out how to test for executable files. Don't use a zero-byte file,
12520 # as systems may use methods other than mode bits to determine executability.
12521 cat >conf$$.file <<_ASEOF
12522 #! /bin/sh
12523 exit 0
12524 _ASEOF
12525 chmod +x conf$$.file
12526 if test -x conf$$.file >/dev/null 2>&1; then
12527 ac_executable_p="test -x"
12528 else
12529 ac_executable_p="test -f"
12531 rm -f conf$$.file
12533 # Extract the first word of "xgettext", so it can be a program name with args.
12534 set dummy xgettext; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 case "$XGETTEXT" in
12541 [\\/]* | ?:[\\/]*)
12542 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12545 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12546 for ac_dir in $PATH; do
12547 IFS="$ac_save_IFS"
12548 test -z "$ac_dir" && ac_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12551 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12552 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12553 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12554 break 2
12557 done
12558 done
12559 IFS="$ac_save_IFS"
12560 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12562 esac
12564 XGETTEXT="$ac_cv_path_XGETTEXT"
12565 if test "$XGETTEXT" != ":"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12567 $as_echo "$XGETTEXT" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12573 rm -f messages.po
12576 # Prepare PATH_SEPARATOR.
12577 # The user is always right.
12578 if test "${PATH_SEPARATOR+set}" != set; then
12579 echo "#! /bin/sh" >conf$$.sh
12580 echo "exit 0" >>conf$$.sh
12581 chmod +x conf$$.sh
12582 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12583 PATH_SEPARATOR=';'
12584 else
12585 PATH_SEPARATOR=:
12587 rm -f conf$$.sh
12590 # Find out how to test for executable files. Don't use a zero-byte file,
12591 # as systems may use methods other than mode bits to determine executability.
12592 cat >conf$$.file <<_ASEOF
12593 #! /bin/sh
12594 exit 0
12595 _ASEOF
12596 chmod +x conf$$.file
12597 if test -x conf$$.file >/dev/null 2>&1; then
12598 ac_executable_p="test -x"
12599 else
12600 ac_executable_p="test -f"
12602 rm -f conf$$.file
12604 # Extract the first word of "msgmerge", so it can be a program name with args.
12605 set dummy msgmerge; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 case "$MSGMERGE" in
12612 [\\/]* | ?:[\\/]*)
12613 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12616 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12617 for ac_dir in $PATH; do
12618 IFS="$ac_save_IFS"
12619 test -z "$ac_dir" && ac_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12622 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12623 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12624 break 2
12627 done
12628 done
12629 IFS="$ac_save_IFS"
12630 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12632 esac
12634 MSGMERGE="$ac_cv_path_MSGMERGE"
12635 if test "$MSGMERGE" != ":"; then
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12637 $as_echo "$MSGMERGE" >&6; }
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12644 if test "$GMSGFMT" != ":"; then
12645 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12646 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12648 else
12649 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12651 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12652 GMSGFMT=":"
12656 if test "$XGETTEXT" != ":"; then
12657 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12658 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12662 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12663 XGETTEXT=":"
12665 rm -f messages.po
12668 ac_config_commands="$ac_config_commands default-1"
12672 # Permit host specific settings.
12673 . ${srcdir}/configure.host
12678 BFD_HOST_64BIT_LONG=0
12679 BFD_HOST_64BIT_LONG_LONG=0
12680 BFD_HOST_64_BIT_DEFINED=0
12681 BFD_HOST_64_BIT=
12682 BFD_HOST_U_64_BIT=
12683 BFD_HOSTPTR_T="unsigned long"
12685 # The cast to long int works around a bug in the HP C Compiler
12686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12688 # This bug is HP SR number 8606223364.
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12690 $as_echo_n "checking size of long long... " >&6; }
12691 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12696 else
12697 if test "$ac_cv_type_long_long" = yes; then
12698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 { as_fn_set_status 77
12701 as_fn_error "cannot compute sizeof (long long)
12702 See \`config.log' for more details." "$LINENO" 5; }; }
12703 else
12704 ac_cv_sizeof_long_long=0
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12710 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12714 cat >>confdefs.h <<_ACEOF
12715 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12716 _ACEOF
12719 # The cast to long int works around a bug in the HP C Compiler
12720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12722 # This bug is HP SR number 8606223364.
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12724 $as_echo_n "checking size of void *... " >&6; }
12725 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12730 else
12731 if test "$ac_cv_type_void_p" = yes; then
12732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12734 { as_fn_set_status 77
12735 as_fn_error "cannot compute sizeof (void *)
12736 See \`config.log' for more details." "$LINENO" 5; }; }
12737 else
12738 ac_cv_sizeof_void_p=0
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12744 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12748 cat >>confdefs.h <<_ACEOF
12749 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12750 _ACEOF
12753 # The cast to long int works around a bug in the HP C Compiler
12754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12756 # This bug is HP SR number 8606223364.
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12758 $as_echo_n "checking size of long... " >&6; }
12759 if test "${ac_cv_sizeof_long+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12764 else
12765 if test "$ac_cv_type_long" = yes; then
12766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12768 { as_fn_set_status 77
12769 as_fn_error "cannot compute sizeof (long)
12770 See \`config.log' for more details." "$LINENO" 5; }; }
12771 else
12772 ac_cv_sizeof_long=0
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12778 $as_echo "$ac_cv_sizeof_long" >&6; }
12782 cat >>confdefs.h <<_ACEOF
12783 #define SIZEOF_LONG $ac_cv_sizeof_long
12784 _ACEOF
12788 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12789 host64=true
12792 if test "x${ac_cv_sizeof_long}" = "x8"; then
12793 BFD_HOST_64BIT_LONG=1
12794 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12795 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12796 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12797 BFD_HOST_64BIT_LONG_LONG=1
12798 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12799 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12800 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12801 BFD_HOSTPTR_T="unsigned long long"
12805 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12806 BFD_HOST_64_BIT_DEFINED=1
12807 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12808 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12818 # Put a plausible default for CC_FOR_BUILD in Makefile.
12819 if test -z "$CC_FOR_BUILD"; then
12820 if test "x$cross_compiling" = "xno"; then
12821 CC_FOR_BUILD='$(CC)'
12822 else
12823 CC_FOR_BUILD=gcc
12827 # Also set EXEEXT_FOR_BUILD.
12828 if test "x$cross_compiling" = "xno"; then
12829 EXEEXT_FOR_BUILD='$(EXEEXT)'
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12832 $as_echo_n "checking for build system executable suffix... " >&6; }
12833 if test "${bfd_cv_build_exeext+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 rm -f conftest*
12837 echo 'int main () { return 0; }' > conftest.c
12838 bfd_cv_build_exeext=
12839 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12840 for file in conftest.*; do
12841 case $file in
12842 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12843 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12844 esac
12845 done
12846 rm -f conftest*
12847 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12850 $as_echo "$bfd_cv_build_exeext" >&6; }
12851 EXEEXT_FOR_BUILD=""
12852 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12856 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12857 do :
12858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12860 eval as_val=\$$as_ac_Header
12861 if test "x$as_val" = x""yes; then :
12862 cat >>confdefs.h <<_ACEOF
12863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12868 done
12870 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12871 do :
12872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12874 eval as_val=\$$as_ac_Header
12875 if test "x$as_val" = x""yes; then :
12876 cat >>confdefs.h <<_ACEOF
12877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12878 _ACEOF
12882 done
12884 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
12885 case $ac_cv_c_int8_t in #(
12886 no|yes) ;; #(
12889 cat >>confdefs.h <<_ACEOF
12890 #define int8_t $ac_cv_c_int8_t
12891 _ACEOF
12893 esac
12895 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
12896 case $ac_cv_c_int16_t in #(
12897 no|yes) ;; #(
12900 cat >>confdefs.h <<_ACEOF
12901 #define int16_t $ac_cv_c_int16_t
12902 _ACEOF
12904 esac
12906 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
12907 case $ac_cv_c_int32_t in #(
12908 no|yes) ;; #(
12911 cat >>confdefs.h <<_ACEOF
12912 #define int32_t $ac_cv_c_int32_t
12913 _ACEOF
12915 esac
12917 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12918 case $ac_cv_c_int64_t in #(
12919 no|yes) ;; #(
12922 cat >>confdefs.h <<_ACEOF
12923 #define int64_t $ac_cv_c_int64_t
12924 _ACEOF
12926 esac
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12930 $as_echo_n "checking for long long int... " >&6; }
12931 if test "${ac_cv_type_long_long_int+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 /* For now, do not test the preprocessor; as of 2007 there are too many
12938 implementations with broken preprocessors. Perhaps this can
12939 be revisited in 2012. In the meantime, code should not expect
12940 #if to work with literals wider than 32 bits. */
12941 /* Test literals. */
12942 long long int ll = 9223372036854775807ll;
12943 long long int nll = -9223372036854775807LL;
12944 unsigned long long int ull = 18446744073709551615ULL;
12945 /* Test constant expressions. */
12946 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12947 ? 1 : -1)];
12948 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12949 ? 1 : -1)];
12950 int i = 63;
12952 main ()
12954 /* Test availability of runtime routines for shift and division. */
12955 long long int llmax = 9223372036854775807ll;
12956 unsigned long long int ullmax = 18446744073709551615ull;
12957 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12958 | (llmax / ll) | (llmax % ll)
12959 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12960 | (ullmax / ull) | (ullmax % ull));
12962 return 0;
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 if test "$cross_compiling" = yes; then :
12968 ac_cv_type_long_long_int=yes
12969 else
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #include <limits.h>
12973 #ifndef LLONG_MAX
12974 # define HALF \
12975 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12976 # define LLONG_MAX (HALF - 1 + HALF)
12977 #endif
12979 main ()
12981 long long int n = 1;
12982 int i;
12983 for (i = 0; ; i++)
12985 long long int m = n << i;
12986 if (m >> i != n)
12987 return 1;
12988 if (LLONG_MAX / 2 < m)
12989 break;
12991 return 0;
12993 return 0;
12995 _ACEOF
12996 if ac_fn_c_try_run "$LINENO"; then :
12997 ac_cv_type_long_long_int=yes
12998 else
12999 ac_cv_type_long_long_int=no
13001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13002 conftest.$ac_objext conftest.beam conftest.$ac_ext
13005 else
13006 ac_cv_type_long_long_int=no
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
13012 $as_echo "$ac_cv_type_long_long_int" >&6; }
13013 if test $ac_cv_type_long_long_int = yes; then
13015 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
13021 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
13022 if test "x$ac_cv_type_intmax_t" = x""yes; then :
13024 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
13026 else
13027 test $ac_cv_type_long_long_int = yes \
13028 && ac_type='long long int' \
13029 || ac_type='long int'
13031 cat >>confdefs.h <<_ACEOF
13032 #define intmax_t $ac_type
13033 _ACEOF
13039 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13040 if test "x$ac_cv_type_intptr_t" = x""yes; then :
13042 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
13044 else
13045 for ac_type in 'int' 'long int' 'long long int'; do
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 $ac_includes_default
13050 main ()
13052 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13053 test_array [0] = 0
13056 return 0;
13058 _ACEOF
13059 if ac_fn_c_try_compile "$LINENO"; then :
13061 cat >>confdefs.h <<_ACEOF
13062 #define intptr_t $ac_type
13063 _ACEOF
13065 ac_type=
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 test -z "$ac_type" && break
13069 done
13073 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13074 case $ac_cv_c_uint8_t in #(
13075 no|yes) ;; #(
13078 $as_echo "#define _UINT8_T 1" >>confdefs.h
13081 cat >>confdefs.h <<_ACEOF
13082 #define uint8_t $ac_cv_c_uint8_t
13083 _ACEOF
13085 esac
13087 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
13088 case $ac_cv_c_uint16_t in #(
13089 no|yes) ;; #(
13093 cat >>confdefs.h <<_ACEOF
13094 #define uint16_t $ac_cv_c_uint16_t
13095 _ACEOF
13097 esac
13099 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13100 case $ac_cv_c_uint32_t in #(
13101 no|yes) ;; #(
13104 $as_echo "#define _UINT32_T 1" >>confdefs.h
13107 cat >>confdefs.h <<_ACEOF
13108 #define uint32_t $ac_cv_c_uint32_t
13109 _ACEOF
13111 esac
13113 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
13114 case $ac_cv_c_uint64_t in #(
13115 no|yes) ;; #(
13118 $as_echo "#define _UINT64_T 1" >>confdefs.h
13121 cat >>confdefs.h <<_ACEOF
13122 #define uint64_t $ac_cv_c_uint64_t
13123 _ACEOF
13125 esac
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
13129 $as_echo_n "checking for unsigned long long int... " >&6; }
13130 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* For now, do not test the preprocessor; as of 2007 there are too many
13137 implementations with broken preprocessors. Perhaps this can
13138 be revisited in 2012. In the meantime, code should not expect
13139 #if to work with literals wider than 32 bits. */
13140 /* Test literals. */
13141 long long int ll = 9223372036854775807ll;
13142 long long int nll = -9223372036854775807LL;
13143 unsigned long long int ull = 18446744073709551615ULL;
13144 /* Test constant expressions. */
13145 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
13146 ? 1 : -1)];
13147 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
13148 ? 1 : -1)];
13149 int i = 63;
13151 main ()
13153 /* Test availability of runtime routines for shift and division. */
13154 long long int llmax = 9223372036854775807ll;
13155 unsigned long long int ullmax = 18446744073709551615ull;
13156 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13157 | (llmax / ll) | (llmax % ll)
13158 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
13159 | (ullmax / ull) | (ullmax % ull));
13161 return 0;
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 ac_cv_type_unsigned_long_long_int=yes
13167 else
13168 ac_cv_type_unsigned_long_long_int=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
13174 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13175 if test $ac_cv_type_unsigned_long_long_int = yes; then
13177 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13183 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
13184 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13186 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
13188 else
13189 test $ac_cv_type_unsigned_long_long_int = yes \
13190 && ac_type='unsigned long long int' \
13191 || ac_type='unsigned long int'
13193 cat >>confdefs.h <<_ACEOF
13194 #define uintmax_t $ac_type
13195 _ACEOF
13201 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13202 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13204 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13206 else
13207 for ac_type in 'unsigned int' 'unsigned long int' \
13208 'unsigned long long int'; do
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 $ac_includes_default
13213 main ()
13215 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13216 test_array [0] = 0
13219 return 0;
13221 _ACEOF
13222 if ac_fn_c_try_compile "$LINENO"; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define uintptr_t $ac_type
13226 _ACEOF
13228 ac_type=
13230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13231 test -z "$ac_type" && break
13232 done
13249 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13250 #ifdef HAVE_STDINT_H
13251 #include <stdint.h>
13252 #endif
13253 #ifdef HAVE_INTTYPES_H
13254 #include <inttypes.h>
13255 #endif
13257 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_INT_LEAST32_T 1
13261 _ACEOF
13265 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13266 #ifdef HAVE_STDINT_H
13267 #include <stdint.h>
13268 #endif
13269 #ifdef HAVE_INTTYPES_H
13270 #include <inttypes.h>
13271 #endif
13273 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
13275 cat >>confdefs.h <<_ACEOF
13276 #define HAVE_INT_FAST32_T 1
13277 _ACEOF
13286 ac_config_commands="$ac_config_commands bfd_stdint.h"
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13291 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13292 if test "${ac_cv_header_time+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297 #include <sys/types.h>
13298 #include <sys/time.h>
13299 #include <time.h>
13302 main ()
13304 if ((struct tm *) 0)
13305 return 0;
13307 return 0;
13309 _ACEOF
13310 if ac_fn_c_try_compile "$LINENO"; then :
13311 ac_cv_header_time=yes
13312 else
13313 ac_cv_header_time=no
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13318 $as_echo "$ac_cv_header_time" >&6; }
13319 if test $ac_cv_header_time = yes; then
13321 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13325 ac_header_dirent=no
13326 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13327 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13329 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #include <sys/types.h>
13336 #include <$ac_hdr>
13339 main ()
13341 if ((DIR *) 0)
13342 return 0;
13344 return 0;
13346 _ACEOF
13347 if ac_fn_c_try_compile "$LINENO"; then :
13348 eval "$as_ac_Header=yes"
13349 else
13350 eval "$as_ac_Header=no"
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 eval ac_res=\$$as_ac_Header
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13356 $as_echo "$ac_res" >&6; }
13357 eval as_val=\$$as_ac_Header
13358 if test "x$as_val" = x""yes; then :
13359 cat >>confdefs.h <<_ACEOF
13360 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13361 _ACEOF
13363 ac_header_dirent=$ac_hdr; break
13366 done
13367 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13368 if test $ac_header_dirent = dirent.h; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13370 $as_echo_n "checking for library containing opendir... " >&6; }
13371 if test "${ac_cv_search_opendir+set}" = set; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 ac_func_search_save_LIBS=$LIBS
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char opendir ();
13386 main ()
13388 return opendir ();
13390 return 0;
13392 _ACEOF
13393 for ac_lib in '' dir; do
13394 if test -z "$ac_lib"; then
13395 ac_res="none required"
13396 else
13397 ac_res=-l$ac_lib
13398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13400 if ac_fn_c_try_link "$LINENO"; then :
13401 ac_cv_search_opendir=$ac_res
13403 rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext
13405 if test "${ac_cv_search_opendir+set}" = set; then :
13406 break
13408 done
13409 if test "${ac_cv_search_opendir+set}" = set; then :
13411 else
13412 ac_cv_search_opendir=no
13414 rm conftest.$ac_ext
13415 LIBS=$ac_func_search_save_LIBS
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13418 $as_echo "$ac_cv_search_opendir" >&6; }
13419 ac_res=$ac_cv_search_opendir
13420 if test "$ac_res" != no; then :
13421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13427 $as_echo_n "checking for library containing opendir... " >&6; }
13428 if test "${ac_cv_search_opendir+set}" = set; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 ac_func_search_save_LIBS=$LIBS
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char opendir ();
13443 main ()
13445 return opendir ();
13447 return 0;
13449 _ACEOF
13450 for ac_lib in '' x; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13453 else
13454 ac_res=-l$ac_lib
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 if ac_fn_c_try_link "$LINENO"; then :
13458 ac_cv_search_opendir=$ac_res
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext
13462 if test "${ac_cv_search_opendir+set}" = set; then :
13463 break
13465 done
13466 if test "${ac_cv_search_opendir+set}" = set; then :
13468 else
13469 ac_cv_search_opendir=no
13471 rm conftest.$ac_ext
13472 LIBS=$ac_func_search_save_LIBS
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13475 $as_echo "$ac_cv_search_opendir" >&6; }
13476 ac_res=$ac_cv_search_opendir
13477 if test "$ac_res" != no; then :
13478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13485 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13486 if test "${gcc_cv_header_string+set}" = set; then :
13487 $as_echo_n "(cached) " >&6
13488 else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 #include <string.h>
13492 #include <strings.h>
13494 main ()
13498 return 0;
13500 _ACEOF
13501 if ac_fn_c_try_compile "$LINENO"; then :
13502 gcc_cv_header_string=yes
13503 else
13504 gcc_cv_header_string=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13509 $as_echo "$gcc_cv_header_string" >&6; }
13510 if test $gcc_cv_header_string = yes; then
13512 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13516 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13517 do :
13518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13520 eval as_val=\$$as_ac_var
13521 if test "x$as_val" = x""yes; then :
13522 cat >>confdefs.h <<_ACEOF
13523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13524 _ACEOF
13527 done
13529 for ac_func in strtoull
13530 do :
13531 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13532 if test "x$ac_cv_func_strtoull" = x""yes; then :
13533 cat >>confdefs.h <<_ACEOF
13534 #define HAVE_STRTOULL 1
13535 _ACEOF
13538 done
13541 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13542 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13543 ac_have_decl=1
13544 else
13545 ac_have_decl=0
13548 cat >>confdefs.h <<_ACEOF
13549 #define HAVE_DECL_BASENAME $ac_have_decl
13550 _ACEOF
13552 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13553 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13554 ac_have_decl=1
13555 else
13556 ac_have_decl=0
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_DECL_FTELLO $ac_have_decl
13561 _ACEOF
13563 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13564 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13565 ac_have_decl=1
13566 else
13567 ac_have_decl=0
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_DECL_FTELLO64 $ac_have_decl
13572 _ACEOF
13574 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13575 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13576 ac_have_decl=1
13577 else
13578 ac_have_decl=0
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_DECL_FSEEKO $ac_have_decl
13583 _ACEOF
13585 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13586 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13587 ac_have_decl=1
13588 else
13589 ac_have_decl=0
13592 cat >>confdefs.h <<_ACEOF
13593 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13594 _ACEOF
13598 case "${host}" in
13599 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13601 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13603 esac
13605 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13606 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13607 ac_have_decl=1
13608 else
13609 ac_have_decl=0
13612 cat >>confdefs.h <<_ACEOF
13613 #define HAVE_DECL_FFS $ac_have_decl
13614 _ACEOF
13616 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13617 if test "x$ac_cv_have_decl_free" = x""yes; then :
13618 ac_have_decl=1
13619 else
13620 ac_have_decl=0
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_DECL_FREE $ac_have_decl
13625 _ACEOF
13627 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13628 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13629 ac_have_decl=1
13630 else
13631 ac_have_decl=0
13634 cat >>confdefs.h <<_ACEOF
13635 #define HAVE_DECL_GETENV $ac_have_decl
13636 _ACEOF
13638 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13639 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13640 ac_have_decl=1
13641 else
13642 ac_have_decl=0
13645 cat >>confdefs.h <<_ACEOF
13646 #define HAVE_DECL_MALLOC $ac_have_decl
13647 _ACEOF
13649 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13650 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13651 ac_have_decl=1
13652 else
13653 ac_have_decl=0
13656 cat >>confdefs.h <<_ACEOF
13657 #define HAVE_DECL_REALLOC $ac_have_decl
13658 _ACEOF
13660 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13661 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13662 ac_have_decl=1
13663 else
13664 ac_have_decl=0
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_DECL_STPCPY $ac_have_decl
13669 _ACEOF
13671 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13672 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13673 ac_have_decl=1
13674 else
13675 ac_have_decl=0
13678 cat >>confdefs.h <<_ACEOF
13679 #define HAVE_DECL_STRSTR $ac_have_decl
13680 _ACEOF
13682 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13683 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13684 ac_have_decl=1
13685 else
13686 ac_have_decl=0
13689 cat >>confdefs.h <<_ACEOF
13690 #define HAVE_DECL_SNPRINTF $ac_have_decl
13691 _ACEOF
13693 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13694 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13695 ac_have_decl=1
13696 else
13697 ac_have_decl=0
13700 cat >>confdefs.h <<_ACEOF
13701 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13702 _ACEOF
13705 # Link in zlib if we can. This allows us to read compressed debug sections.
13706 # This is used only by compress.c.
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13708 $as_echo_n "checking for library containing zlibVersion... " >&6; }
13709 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 ac_func_search_save_LIBS=$LIBS
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13716 /* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
13719 #ifdef __cplusplus
13720 extern "C"
13721 #endif
13722 char zlibVersion ();
13724 main ()
13726 return zlibVersion ();
13728 return 0;
13730 _ACEOF
13731 for ac_lib in '' z; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13734 else
13735 ac_res=-l$ac_lib
13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_search_zlibVersion=$ac_res
13741 rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext
13743 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13744 break
13746 done
13747 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13749 else
13750 ac_cv_search_zlibVersion=no
13752 rm conftest.$ac_ext
13753 LIBS=$ac_func_search_save_LIBS
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13756 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13757 ac_res=$ac_cv_search_zlibVersion
13758 if test "$ac_res" != no; then :
13759 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13760 for ac_header in zlib.h
13761 do :
13762 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13763 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_ZLIB_H 1
13766 _ACEOF
13770 done
13775 # If we are configured native, pick a core file support file.
13776 COREFILE=
13777 COREFLAG=
13778 TRAD_HEADER=
13779 if test "${target}" = "${host}"; then
13780 case "${host}" in
13781 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13782 COREFILE=''
13784 alpha*-*-linux-*)
13785 COREFILE=trad-core.lo
13786 TRAD_HEADER='"hosts/alphalinux.h"'
13788 alpha*-*-netbsd* | alpha*-*-openbsd*)
13789 COREFILE=netbsd-core.lo
13791 alpha*-*-*) COREFILE=osf-core.lo ;;
13792 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13793 COREFILE='' ;;
13794 arm-*-netbsd* | arm-*-openbsd*)
13795 COREFILE=netbsd-core.lo
13797 arm-*-riscix) COREFILE=trad-core.lo ;;
13798 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13799 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13800 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13801 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13802 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13803 hppa*-*-netbsd* | hppa*-*-openbsd*)
13804 COREFILE=netbsd-core.lo
13807 i370-*-*)
13808 COREFILE=trad-core.lo
13809 TRAD_HEADER='"hosts/i370linux.h"'
13812 i[3-7]86-sequent-bsd*)
13813 COREFILE=trad-core.lo
13814 TRAD_HEADER='"hosts/symmetry.h"'
13816 i[3-7]86-sequent-sysv4*) ;;
13817 i[3-7]86-sequent-sysv*)
13818 COREFILE=trad-core.lo
13819 TRAD_HEADER='"hosts/symmetry.h"'
13821 i[3-7]86-*-bsdi)
13822 COREFILE=
13824 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
13825 COREFILE=trad-core.lo
13826 TRAD_HEADER='"hosts/i386bsd.h"'
13828 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13829 COREFILE=''
13830 TRAD_HEADER='"hosts/i386bsd.h"'
13832 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13833 COREFILE=netbsd-core.lo
13835 i[3-7]86-esix-sysv3*)
13836 COREFILE=trad-core.lo
13837 TRAD_HEADER='"hosts/esix.h"'
13839 i[3-7]86-*-sco3.2v5*)
13840 COREFILE=sco5-core.lo
13842 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13843 COREFILE=trad-core.lo
13844 TRAD_HEADER='"hosts/i386sco.h"'
13846 i[3-7]86-*-mach3*)
13847 COREFILE=trad-core.lo
13848 TRAD_HEADER='"hosts/i386mach3.h"'
13850 i[3-7]86-*-linux-*)
13851 COREFILE=trad-core.lo
13852 TRAD_HEADER='"hosts/i386linux.h"'
13854 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13855 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13856 i860-*-mach3* | i860-*-osf1*)
13857 COREFILE=trad-core.lo
13858 TRAD_HEADER='"hosts/i860mach3.h"'
13860 mips-*-netbsd* | mips*-*-openbsd*)
13861 COREFILE=netbsd-core.lo
13863 mips-dec-*)
13864 COREFILE=trad-core.lo
13865 TRAD_HEADER='"hosts/decstation.h"'
13867 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13868 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13869 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13870 mips-*-sysv4*) ;;
13871 mips-*-sysv* | mips-*-riscos*)
13872 COREFILE=trad-core.lo
13873 TRAD_HEADER='"hosts/riscos.h"'
13875 mips-sony-bsd*)
13876 COREFILE=trad-core.lo
13877 TRAD_HEADER='"hosts/news-mips.h"'
13879 m68*-bull*-sysv*)
13880 COREFILE=trad-core.lo
13881 TRAD_HEADER='"hosts/dpx2.h"'
13883 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13884 m68*-hp-bsd*)
13885 COREFILE=trad-core.lo
13886 TRAD_HEADER='"hosts/hp300bsd.h"'
13888 m68*-*-linux-*)
13889 COREFILE=trad-core.lo
13890 TRAD_HEADER='"hosts/m68klinux.h"'
13892 m68*-motorola-sysv*)
13893 COREFILE=trad-core.lo
13894 TRAD_HEADER='"hosts/delta68.h"'
13896 m68*-sony-*)
13897 COREFILE=trad-core.lo
13898 TRAD_HEADER='"hosts/news.h"'
13900 m68*-*-netbsd* | m68*-*-openbsd*)
13901 COREFILE=netbsd-core.lo
13903 m68*-apple-aux*)
13904 COREFILE=trad-core.lo
13905 TRAD_HEADER='"hosts/m68kaux.h"'
13907 m88*-*-sysv4*)
13909 m88*-motorola-sysv*)
13910 COREFILE=ptrace-core.lo
13912 m88*-*-mach3*)
13913 COREFILE=trad-core.lo
13914 TRAD_HEADER='"hosts/m88kmach3.h"'
13916 m88*-*-openbsd*)
13917 COREFILE=netbsd-core.lo
13919 ns32k-pc532-mach)
13920 COREFILE=trad-core.lo
13921 TRAD_HEADER='"hosts/pc532mach.h"'
13923 ns32k-*-netbsd* | ns32k-*-openbsd*)
13924 COREFILE=netbsd-core.lo
13926 rs6000-*-lynx*)
13927 COREFILE=lynx-core.lo
13929 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13930 COREFILE=rs6000-core.lo
13931 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13933 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13934 COREFILE=rs6000-core.lo
13935 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13936 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13937 # have c_impl as a member of struct core_dumpx
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13939 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13942 #include <core.h>
13944 main ()
13946 struct core_dumpx c; c.c_impl = 0;
13948 return 0;
13950 _ACEOF
13951 if ac_fn_c_try_compile "$LINENO"; then :
13953 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13956 $as_echo "yes" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13964 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13965 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13966 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13967 powerpc-*-beos*) ;;
13968 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13969 COREFILE='' ;;
13970 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13971 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13972 s390*-*-*) COREFILE=trad-core.lo ;;
13973 sh*-*-netbsd* | sh*-*-openbsd*)
13974 COREFILE=netbsd-core.lo
13976 sparc-*-netbsd* | sparc*-*-openbsd*)
13977 COREFILE=netbsd-core.lo
13979 tahoe-*-*)
13980 COREFILE=trad-core.lo
13981 TRAD_HEADER='"hosts/tahoe.h"'
13983 vax-*-netbsd* | vax-*-openbsd*)
13984 COREFILE=netbsd-core.lo
13986 vax-*-ultrix2*)
13987 COREFILE=trad-core.lo
13988 TRAD_HEADER='"hosts/vaxult2.h"'
13990 vax-*-ultrix*)
13991 COREFILE=trad-core.lo
13992 TRAD_HEADER='"hosts/vaxult2.h"'
13994 vax-*-linux-*)
13995 COREFILE=trad-core.lo
13996 TRAD_HEADER='"hosts/vaxlinux.h"'
13998 vax-*-*)
13999 COREFILE=trad-core.lo
14000 TRAD_HEADER='"hosts/vaxbsd.h"'
14002 x86_64-*-netbsd* | x86_64-*-openbsd*)
14003 COREFILE=netbsd-core.lo
14005 esac
14007 case "$COREFILE" in
14008 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14009 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14010 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14011 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14012 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14013 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14014 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14015 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14016 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14017 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14018 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14019 esac
14021 # ELF corefile support has several flavors, but all of
14022 # them use something called <sys/procfs.h>
14023 for ac_header in sys/procfs.h
14024 do :
14025 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14026 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14027 cat >>confdefs.h <<_ACEOF
14028 #define HAVE_SYS_PROCFS_H 1
14029 _ACEOF
14033 done
14035 if test "$ac_cv_header_sys_procfs_h" = yes; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14037 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14038 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 #define _SYSCALL32
14045 #include <sys/procfs.h>
14047 main ()
14049 prstatus_t avar
14051 return 0;
14053 _ACEOF
14054 if ac_fn_c_try_compile "$LINENO"; then :
14055 bfd_cv_have_sys_procfs_type_prstatus_t=yes
14056 else
14057 bfd_cv_have_sys_procfs_type_prstatus_t=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14063 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
14065 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14069 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14072 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14073 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14079 #define _SYSCALL32
14080 #include <sys/procfs.h>
14082 main ()
14084 prstatus32_t avar
14086 return 0;
14088 _ACEOF
14089 if ac_fn_c_try_compile "$LINENO"; then :
14090 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
14091 else
14092 bfd_cv_have_sys_procfs_type_prstatus32_t=no
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14100 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14104 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14107 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14108 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14114 #define _SYSCALL32
14115 #include <sys/procfs.h>
14117 main ()
14119 prstatus_t avar; void* aref = (void*) &avar.pr_who
14121 return 0;
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14126 else
14127 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14135 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14139 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14142 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14143 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 #define _SYSCALL32
14150 #include <sys/procfs.h>
14152 main ()
14154 prstatus32_t avar; void* aref = (void*) &avar.pr_who
14156 return 0;
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
14161 else
14162 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14170 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14174 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14177 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14178 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14184 #define _SYSCALL32
14185 #include <sys/procfs.h>
14187 main ()
14189 pstatus_t avar
14191 return 0;
14193 _ACEOF
14194 if ac_fn_c_try_compile "$LINENO"; then :
14195 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14196 else
14197 bfd_cv_have_sys_procfs_type_pstatus_t=no
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14205 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14209 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14212 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14213 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 #define _SYSCALL32
14220 #include <sys/procfs.h>
14222 main ()
14224 pxstatus_t avar
14226 return 0;
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14231 else
14232 bfd_cv_have_sys_procfs_type_pxstatus_t=no
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14240 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14244 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14247 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14248 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 #define _SYSCALL32
14255 #include <sys/procfs.h>
14257 main ()
14259 pstatus32_t avar
14261 return 0;
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"; then :
14265 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14266 else
14267 bfd_cv_have_sys_procfs_type_pstatus32_t=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14275 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14279 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14282 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14283 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14289 #define _SYSCALL32
14290 #include <sys/procfs.h>
14292 main ()
14294 prpsinfo_t avar
14296 return 0;
14298 _ACEOF
14299 if ac_fn_c_try_compile "$LINENO"; then :
14300 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14301 else
14302 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14310 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14314 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14317 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14318 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 #define _SYSCALL32
14325 #include <sys/procfs.h>
14327 main ()
14329 prpsinfo32_t avar
14331 return 0;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14336 else
14337 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14345 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14349 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14352 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14353 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14359 #define _SYSCALL32
14360 #include <sys/procfs.h>
14362 main ()
14364 psinfo_t avar
14366 return 0;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 bfd_cv_have_sys_procfs_type_psinfo_t=yes
14371 else
14372 bfd_cv_have_sys_procfs_type_psinfo_t=no
14375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14380 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14384 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14387 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14388 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14394 #define _SYSCALL32
14395 #include <sys/procfs.h>
14397 main ()
14399 psinfo32_t avar
14401 return 0;
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14406 else
14407 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14415 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14419 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14422 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14423 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14429 #define _SYSCALL32
14430 #include <sys/procfs.h>
14432 main ()
14434 lwpstatus_t avar
14436 return 0;
14438 _ACEOF
14439 if ac_fn_c_try_compile "$LINENO"; then :
14440 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14441 else
14442 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14450 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14454 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14457 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14458 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14460 else
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14464 #define _SYSCALL32
14465 #include <sys/procfs.h>
14467 main ()
14469 lwpxstatus_t avar
14471 return 0;
14473 _ACEOF
14474 if ac_fn_c_try_compile "$LINENO"; then :
14475 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14476 else
14477 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14485 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14489 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14492 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14493 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14499 #define _SYSCALL32
14500 #include <sys/procfs.h>
14502 main ()
14504 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14506 return 0;
14508 _ACEOF
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14511 else
14512 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14520 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14524 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14527 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14528 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14530 else
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14534 #define _SYSCALL32
14535 #include <sys/procfs.h>
14537 main ()
14539 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14541 return 0;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"; then :
14545 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14546 else
14547 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14555 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14559 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14562 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14563 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14569 #define _SYSCALL32
14570 #include <sys/procfs.h>
14572 main ()
14574 win32_pstatus_t avar
14576 return 0;
14578 _ACEOF
14579 if ac_fn_c_try_compile "$LINENO"; then :
14580 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14581 else
14582 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14590 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14594 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14600 if test -n "$TRAD_HEADER"; then
14602 cat >>confdefs.h <<_ACEOF
14603 #define TRAD_HEADER $TRAD_HEADER
14604 _ACEOF
14608 # Check if linker supports --as-needed and --no-as-needed options
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14610 $as_echo_n "checking linker --as-needed support... " >&6; }
14611 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 bfd_cv_ld_as_needed=no
14615 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14616 bfd_cv_ld_as_needed=yes
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14621 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14623 LIBM=
14624 case $host in
14625 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
14626 # These system don't have libm, or don't need it
14628 *-ncr-sysv4.3*)
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14630 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14631 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14634 ac_check_lib_save_LIBS=$LIBS
14635 LIBS="-lmw $LIBS"
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14639 /* Override any GCC internal prototype to avoid an error.
14640 Use char because int might match the return type of a GCC
14641 builtin and then its argument prototype would still apply. */
14642 #ifdef __cplusplus
14643 extern "C"
14644 #endif
14645 char _mwvalidcheckl ();
14647 main ()
14649 return _mwvalidcheckl ();
14651 return 0;
14653 _ACEOF
14654 if ac_fn_c_try_link "$LINENO"; then :
14655 ac_cv_lib_mw__mwvalidcheckl=yes
14656 else
14657 ac_cv_lib_mw__mwvalidcheckl=no
14659 rm -f core conftest.err conftest.$ac_objext \
14660 conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14664 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14665 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14666 LIBM="-lmw"
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14670 $as_echo_n "checking for cos in -lm... " >&6; }
14671 if test "${ac_cv_lib_m_cos+set}" = set; then :
14672 $as_echo_n "(cached) " >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lm $LIBS"
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 char cos ();
14687 main ()
14689 return cos ();
14691 return 0;
14693 _ACEOF
14694 if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_lib_m_cos=yes
14696 else
14697 ac_cv_lib_m_cos=no
14699 rm -f core conftest.err conftest.$ac_objext \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14704 $as_echo "$ac_cv_lib_m_cos" >&6; }
14705 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14706 LIBM="$LIBM -lm"
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14712 $as_echo_n "checking for cos in -lm... " >&6; }
14713 if test "${ac_cv_lib_m_cos+set}" = set; then :
14714 $as_echo_n "(cached) " >&6
14715 else
14716 ac_check_lib_save_LIBS=$LIBS
14717 LIBS="-lm $LIBS"
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14721 /* Override any GCC internal prototype to avoid an error.
14722 Use char because int might match the return type of a GCC
14723 builtin and then its argument prototype would still apply. */
14724 #ifdef __cplusplus
14725 extern "C"
14726 #endif
14727 char cos ();
14729 main ()
14731 return cos ();
14733 return 0;
14735 _ACEOF
14736 if ac_fn_c_try_link "$LINENO"; then :
14737 ac_cv_lib_m_cos=yes
14738 else
14739 ac_cv_lib_m_cos=no
14741 rm -f core conftest.err conftest.$ac_objext \
14742 conftest$ac_exeext conftest.$ac_ext
14743 LIBS=$ac_check_lib_save_LIBS
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14746 $as_echo "$ac_cv_lib_m_cos" >&6; }
14747 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14748 LIBM="-lm"
14752 esac
14756 # When building a shared libbfd, link against the pic version of libiberty
14757 # so that apps that use libbfd won't need libiberty just to satisfy any
14758 # libbfd references.
14759 # We can't do that if a pic libiberty is unavailable since including non-pic
14760 # code would insert text relocations into libbfd.
14761 SHARED_LIBADD=
14762 SHARED_LDFLAGS=
14763 if test "$enable_shared" = "yes"; then
14764 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14765 if test -n "$x"; then
14766 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14769 # More hacks to build DLLs on Windows.
14770 case "${host}" in
14771 *-*-cygwin*)
14772 SHARED_LDFLAGS="-no-undefined"
14773 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14775 esac
14777 if test -n "$SHARED_LIBADD"; then
14778 if test -n "$LIBM"; then
14779 if test x"$bfd_cv_ld_as_needed" = xyes; then
14780 # Link against libm only when needed. Put -lc, -lm inside -Wl
14781 # to stop libtool reordering these options.
14782 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14783 else
14784 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14792 # target stuff:
14794 # Canonicalize the secondary target names.
14795 if test -n "$enable_targets" ; then
14796 for targ in `echo $enable_targets | sed 's/,/ /g'`
14798 result=`$ac_config_sub $targ 2>/dev/null`
14799 if test -n "$result" ; then
14800 canon_targets="$canon_targets $result"
14801 else
14802 # Allow targets that config.sub doesn't recognize, like "all".
14803 canon_targets="$canon_targets $targ"
14805 done
14808 all_targets=false
14809 defvec=
14810 selvecs=
14811 assocvecs=
14812 selarchs=
14813 TDEFINES=
14814 for targ in $target $canon_targets
14816 if test "x$targ" = "xall"; then
14817 all_targets=true
14818 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14819 else
14820 . $srcdir/config.bfd
14821 if test "x$targ" = "x$target"; then
14822 defvec=$targ_defvec
14824 selvecs="$selvecs $targ_defvec $targ_selvecs"
14825 selarchs="$selarchs $targ_archs"
14826 TDEFINES="$TDEFINES $targ_cflags"
14828 done
14831 # This processing still needs to be done if we're to decide properly whether
14832 # 64-bit support needs to be compiled in. Currently, it will be included if
14833 # the default or any other explicitly requested target requires it; it
14834 # will not be included on a 32-bit host if no 64-bit target is requested, and
14835 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14836 # used.
14838 # uniq the default and selected vectors in all the configured targets.
14839 f=""
14840 for i in $selvecs ; do
14841 case " $f " in
14842 *" $i "*) ;;
14843 *) f="$f $i" ;;
14844 esac
14845 done
14846 selvecs="$f"
14849 # uniq the associated vectors in all the configured targets.
14850 f=""
14851 for i in $assocvecs ; do
14852 case " $f " in
14853 *" $i "*) ;;
14854 *) f="$f $i" ;;
14855 esac
14856 done
14857 assocvecs="$f"
14860 # uniq the architectures in all the configured targets.
14861 f=""
14862 for i in $selarchs ; do
14863 case " $f " in
14864 *" $i "*) ;;
14865 *) f="$f $i" ;;
14866 esac
14867 done
14868 selarchs="$f"
14870 # Target backend .o files.
14873 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14874 elf-eh-frame.lo dwarf1.lo"
14876 for vec in $selvecs
14878 target_size=32
14879 case "$vec" in
14880 # This list is alphabetized to make it easy to compare
14881 # with the two vector lists in targets.c. For the same reason,
14882 # use one entry per line, even though this leads to long lines.
14883 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14884 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14885 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14886 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14887 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14888 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14889 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14890 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14891 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14892 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14893 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14894 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14895 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14896 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14897 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14898 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14899 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14900 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14901 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14902 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14903 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14904 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
14905 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
14906 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
14907 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14908 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14909 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14910 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14911 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14912 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14913 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14914 bfd_elf32_bigarm_symbian_vec)
14915 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14916 bfd_elf32_bigarm_vxworks_vec)
14917 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14918 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14919 bfd_elf32_bigmips_vxworks_vec)
14920 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14921 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14922 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14923 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14924 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14925 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14926 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14927 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14928 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14929 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14930 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14931 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14932 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14933 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14934 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14935 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14936 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
14937 bfd_elf32_i386_dragonfly_vec)
14938 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14939 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14940 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14941 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
14942 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14943 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14944 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
14945 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
14946 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
14947 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14948 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14949 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14950 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14951 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14952 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14953 bfd_elf32_littlearm_symbian_vec)
14954 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14955 bfd_elf32_littlearm_vxworks_vec)
14956 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14957 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
14958 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14959 bfd_elf32_littlemips_vxworks_vec)
14960 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
14961 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14962 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14963 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14964 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14965 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14966 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14967 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14968 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14969 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
14970 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14971 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14972 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14973 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14974 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14975 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14976 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14977 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14978 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14979 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14980 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14981 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14982 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
14983 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
14984 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
14985 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14986 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
14987 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14988 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14989 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14990 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14991 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14992 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
14993 # FIXME: We include cofflink.lo not because it's needed for
14994 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
14995 # which needs it but does not list it. Should be fixed in right place.
14996 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14997 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14998 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
14999 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15000 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15001 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15002 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15003 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15004 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15005 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15006 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15007 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15008 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15009 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15010 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15011 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15012 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15013 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
15014 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15015 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15016 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15017 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15018 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15019 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15020 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15021 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15022 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15023 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15024 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15025 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15026 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15027 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15028 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15029 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15030 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15031 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15032 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15033 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15034 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15035 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15036 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15037 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15038 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15039 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15040 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15041 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15042 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15043 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15044 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15045 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15046 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15047 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15048 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15049 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15050 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15051 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15052 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15053 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15054 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15055 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15056 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15057 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15058 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15059 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15060 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15061 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15062 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15063 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15064 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15065 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15066 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15067 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15068 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15069 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15070 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15071 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15072 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15073 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15074 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15075 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15076 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15077 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15078 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15079 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15080 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15081 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15082 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15083 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15084 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15085 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15086 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15087 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15088 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15089 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15090 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15091 ieee_vec) tb="$tb ieee.lo" ;;
15092 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15093 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15094 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15095 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15096 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15097 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15098 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15099 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15100 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15101 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15102 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15103 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15104 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15105 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15106 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
15107 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15108 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15109 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15110 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15111 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15112 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15113 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15114 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15115 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15116 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15117 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15118 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15119 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15120 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15121 pef_vec) tb="$tb pef.lo" ;;
15122 pef_xlib_vec) tb="$tb pef.lo" ;;
15123 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15124 plugin_vec) tb="$tb plugin.lo" ;;
15125 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15126 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15127 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15128 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15129 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15130 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15131 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15132 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15133 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15134 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15135 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15136 som_vec) tb="$tb som.lo" ;;
15137 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15138 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15139 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15140 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15141 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15142 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15143 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15144 sym_vec) tb="$tb xsym.lo" ;;
15145 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15146 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15147 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15148 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15149 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15150 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15151 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15152 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15153 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15154 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15155 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15156 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15157 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15158 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15159 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15160 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15161 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15162 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15163 versados_vec) tb="$tb versados.lo" ;;
15164 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
15165 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15166 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15167 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15168 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15169 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
15171 # These appear out of order in targets.c
15172 srec_vec) tb="$tb srec.lo" ;;
15173 symbolsrec_vec) tb="$tb srec.lo" ;;
15174 tekhex_vec) tb="$tb tekhex.lo" ;;
15175 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15176 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
15178 "") ;;
15179 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15180 esac
15182 if test ${target_size} = 64; then
15183 target64=true
15185 if test x"${vec}" = x"${defvec}"; then
15186 bfd_default_target_size=${target_size}
15188 done
15190 # Target architecture .o files.
15191 # A couple of CPUs use shorter file names to avoid problems on DOS
15192 # filesystems.
15193 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15195 # Weed out duplicate .o files.
15196 f=""
15197 for i in $tb ; do
15198 case " $f " in
15199 *" $i "*) ;;
15200 *) f="$f $i" ;;
15201 esac
15202 done
15203 tb="$f"
15205 f=""
15206 for i in $ta ; do
15207 case " $f " in
15208 *" $i "*) ;;
15209 *) f="$f $i" ;;
15210 esac
15211 done
15212 ta="$f"
15214 bfd_backends="$tb"
15215 bfd_machines="$ta"
15217 if test x${all_targets} = xtrue ; then
15218 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15219 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15220 selvecs=
15221 havevecs=
15222 selarchs=
15223 test -n "$assocvecs" &&
15224 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15225 else # all_targets is true
15226 # Only set these if they will be nonempty, for the clever echo.
15227 havevecs=
15228 assocvecs=
15229 test -n "$selvecs" &&
15230 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15231 test -n "$selvecs" &&
15232 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15233 test -n "$selarchs" &&
15234 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15235 fi # all_targets is true
15237 case ${host64}-${target64}-${want64} in
15238 *true*)
15239 wordsize=64
15240 bfd64_libs='$(BFD64_LIBS)'
15241 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15242 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15244 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15246 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15248 if test -n "$GCC" ; then
15249 bad_64bit_gcc=no;
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15251 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15252 # Add more tests for gcc versions with non-working 64-bit support here.
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255 :__GNUC__:__GNUC_MINOR__:__i386__:
15256 _ACEOF
15257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15258 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15259 bad_64bit_gcc=yes;
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15261 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15262 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264 $as_echo "no" >&6; }
15266 rm -f conftest*
15268 if test $bad_64bit_gcc = yes ; then
15269 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15273 false-false-false)
15274 wordsize=32
15275 all_backends='$(BFD32_BACKENDS)'
15277 esac
15286 if test "$plugins" = "yes"; then
15287 supports_plugins=1
15288 else
15289 supports_plugins=0
15293 # Determine the host dependant file_ptr a.k.a. off_t type. In order
15294 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15295 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15296 # Hopefully a reasonable assumption since fseeko et.al. should be
15297 # upward compatible.
15298 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15299 do :
15300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15302 eval as_val=\$$as_ac_var
15303 if test "x$as_val" = x""yes; then :
15304 cat >>confdefs.h <<_ACEOF
15305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15306 _ACEOF
15309 done
15311 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15312 # The cast to long int works around a bug in the HP C Compiler
15313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15315 # This bug is HP SR number 8606223364.
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15317 $as_echo_n "checking size of off_t... " >&6; }
15318 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15323 else
15324 if test "$ac_cv_type_off_t" = yes; then
15325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15327 { as_fn_set_status 77
15328 as_fn_error "cannot compute sizeof (off_t)
15329 See \`config.log' for more details." "$LINENO" 5; }; }
15330 else
15331 ac_cv_sizeof_off_t=0
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15337 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15341 cat >>confdefs.h <<_ACEOF
15342 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15343 _ACEOF
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15348 $as_echo_n "checking file_ptr type... " >&6; }
15349 bfd_file_ptr="long"
15350 bfd_ufile_ptr="unsigned long"
15351 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15352 -o x"${ac_cv_sizeof_off_t}" = x8; then
15353 bfd_file_ptr=BFD_HOST_64_BIT
15354 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15357 $as_echo "$bfd_file_ptr" >&6; }
15362 tdefaults=""
15363 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15364 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15365 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15366 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15367 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15370 for ac_header in stdlib.h unistd.h
15371 do :
15372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15374 eval as_val=\$$as_ac_Header
15375 if test "x$as_val" = x""yes; then :
15376 cat >>confdefs.h <<_ACEOF
15377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378 _ACEOF
15382 done
15384 for ac_func in getpagesize
15385 do :
15386 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15387 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_GETPAGESIZE 1
15390 _ACEOF
15393 done
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15396 $as_echo_n "checking for working mmap... " >&6; }
15397 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 if test "$cross_compiling" = yes; then :
15401 ac_cv_func_mmap_fixed_mapped=no
15402 else
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 /* malloc might have been renamed as rpl_malloc. */
15407 #undef malloc
15409 /* Thanks to Mike Haertel and Jim Avera for this test.
15410 Here is a matrix of mmap possibilities:
15411 mmap private not fixed
15412 mmap private fixed at somewhere currently unmapped
15413 mmap private fixed at somewhere already mapped
15414 mmap shared not fixed
15415 mmap shared fixed at somewhere currently unmapped
15416 mmap shared fixed at somewhere already mapped
15417 For private mappings, we should verify that changes cannot be read()
15418 back from the file, nor mmap's back from the file at a different
15419 address. (There have been systems where private was not correctly
15420 implemented like the infamous i386 svr4.0, and systems where the
15421 VM page cache was not coherent with the file system buffer cache
15422 like early versions of FreeBSD and possibly contemporary NetBSD.)
15423 For shared mappings, we should conversely verify that changes get
15424 propagated back to all the places they're supposed to be.
15426 Grep wants private fixed already mapped.
15427 The main things grep needs to know about mmap are:
15428 * does it exist and is it safe to write into the mmap'd area
15429 * how to use it (BSD variants) */
15431 #include <fcntl.h>
15432 #include <sys/mman.h>
15434 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15435 char *malloc ();
15436 #endif
15438 /* This mess was copied from the GNU getpagesize.h. */
15439 #ifndef HAVE_GETPAGESIZE
15440 /* Assume that all systems that can run configure have sys/param.h. */
15441 # ifndef HAVE_SYS_PARAM_H
15442 # define HAVE_SYS_PARAM_H 1
15443 # endif
15445 # ifdef _SC_PAGESIZE
15446 # define getpagesize() sysconf(_SC_PAGESIZE)
15447 # else /* no _SC_PAGESIZE */
15448 # ifdef HAVE_SYS_PARAM_H
15449 # include <sys/param.h>
15450 # ifdef EXEC_PAGESIZE
15451 # define getpagesize() EXEC_PAGESIZE
15452 # else /* no EXEC_PAGESIZE */
15453 # ifdef NBPG
15454 # define getpagesize() NBPG * CLSIZE
15455 # ifndef CLSIZE
15456 # define CLSIZE 1
15457 # endif /* no CLSIZE */
15458 # else /* no NBPG */
15459 # ifdef NBPC
15460 # define getpagesize() NBPC
15461 # else /* no NBPC */
15462 # ifdef PAGESIZE
15463 # define getpagesize() PAGESIZE
15464 # endif /* PAGESIZE */
15465 # endif /* no NBPC */
15466 # endif /* no NBPG */
15467 # endif /* no EXEC_PAGESIZE */
15468 # else /* no HAVE_SYS_PARAM_H */
15469 # define getpagesize() 8192 /* punt totally */
15470 # endif /* no HAVE_SYS_PARAM_H */
15471 # endif /* no _SC_PAGESIZE */
15473 #endif /* no HAVE_GETPAGESIZE */
15476 main ()
15478 char *data, *data2, *data3;
15479 int i, pagesize;
15480 int fd;
15482 pagesize = getpagesize ();
15484 /* First, make a file with some known garbage in it. */
15485 data = (char *) malloc (pagesize);
15486 if (!data)
15487 return 1;
15488 for (i = 0; i < pagesize; ++i)
15489 *(data + i) = rand ();
15490 umask (0);
15491 fd = creat ("conftest.mmap", 0600);
15492 if (fd < 0)
15493 return 1;
15494 if (write (fd, data, pagesize) != pagesize)
15495 return 1;
15496 close (fd);
15498 /* Next, try to mmap the file at a fixed address which already has
15499 something else allocated at it. If we can, also make sure that
15500 we see the same garbage. */
15501 fd = open ("conftest.mmap", O_RDWR);
15502 if (fd < 0)
15503 return 1;
15504 data2 = (char *) malloc (2 * pagesize);
15505 if (!data2)
15506 return 1;
15507 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15508 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15509 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15510 return 1;
15511 for (i = 0; i < pagesize; ++i)
15512 if (*(data + i) != *(data2 + i))
15513 return 1;
15515 /* Finally, make sure that changes to the mapped area do not
15516 percolate back to the file as seen by read(). (This is a bug on
15517 some variants of i386 svr4.0.) */
15518 for (i = 0; i < pagesize; ++i)
15519 *(data2 + i) = *(data2 + i) + 1;
15520 data3 = (char *) malloc (pagesize);
15521 if (!data3)
15522 return 1;
15523 if (read (fd, data3, pagesize) != pagesize)
15524 return 1;
15525 for (i = 0; i < pagesize; ++i)
15526 if (*(data + i) != *(data3 + i))
15527 return 1;
15528 close (fd);
15529 return 0;
15531 _ACEOF
15532 if ac_fn_c_try_run "$LINENO"; then :
15533 ac_cv_func_mmap_fixed_mapped=yes
15534 else
15535 ac_cv_func_mmap_fixed_mapped=no
15537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15538 conftest.$ac_objext conftest.beam conftest.$ac_ext
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15543 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15546 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15549 rm -f conftest.mmap
15551 for ac_func in madvise mprotect
15552 do :
15553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15555 eval as_val=\$$as_ac_var
15556 if test "x$as_val" = x""yes; then :
15557 cat >>confdefs.h <<_ACEOF
15558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15559 _ACEOF
15562 done
15564 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15565 true+yes )
15566 $as_echo "#define USE_MMAP 1" >>confdefs.h
15568 esac
15570 rm -f doc/config.status
15571 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15574 ac_config_commands="$ac_config_commands default"
15582 cat >confcache <<\_ACEOF
15583 # This file is a shell script that caches the results of configure
15584 # tests run on this system so they can be shared between configure
15585 # scripts and configure runs, see configure's option --config-cache.
15586 # It is not useful on other systems. If it contains results you don't
15587 # want to keep, you may remove or edit it.
15589 # config.status only pays attention to the cache file if you give it
15590 # the --recheck option to rerun configure.
15592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15594 # following values.
15596 _ACEOF
15598 # The following way of writing the cache mishandles newlines in values,
15599 # but we know of no workaround that is simple, portable, and efficient.
15600 # So, we kill variables containing newlines.
15601 # Ultrix sh set writes to stderr and can't be redirected directly,
15602 # and sets the high bit in the cache file unless we assign to the vars.
15604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15605 eval ac_val=\$$ac_var
15606 case $ac_val in #(
15607 *${as_nl}*)
15608 case $ac_var in #(
15609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15611 esac
15612 case $ac_var in #(
15613 _ | IFS | as_nl) ;; #(
15614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15615 *) { eval $ac_var=; unset $ac_var;} ;;
15616 esac ;;
15617 esac
15618 done
15620 (set) 2>&1 |
15621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15622 *${as_nl}ac_space=\ *)
15623 # `set' does not quote correctly, so add quotes: double-quote
15624 # substitution turns \\\\ into \\, and sed turns \\ into \.
15625 sed -n \
15626 "s/'/'\\\\''/g;
15627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15628 ;; #(
15630 # `set' quotes correctly as required by POSIX, so do not add quotes.
15631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15633 esac |
15634 sort
15636 sed '
15637 /^ac_cv_env_/b end
15638 t clear
15639 :clear
15640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15641 t end
15642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15643 :end' >>confcache
15644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15645 if test -w "$cache_file"; then
15646 test "x$cache_file" != "x/dev/null" &&
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15648 $as_echo "$as_me: updating cache $cache_file" >&6;}
15649 cat confcache >$cache_file
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15655 rm -f confcache
15657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15658 # Let make expand exec_prefix.
15659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15661 DEFS=-DHAVE_CONFIG_H
15663 ac_libobjs=
15664 ac_ltlibobjs=
15665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15666 # 1. Remove the extension, and $U if already installed.
15667 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15668 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15670 # will be set to the directory where LIBOBJS objects are built.
15671 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15672 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15673 done
15674 LIBOBJS=$ac_libobjs
15676 LTLIBOBJS=$ac_ltlibobjs
15679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15680 as_fn_error "conditional \"AMDEP\" was never defined.
15681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15684 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 if test -n "$EXEEXT"; then
15688 am__EXEEXT_TRUE=
15689 am__EXEEXT_FALSE='#'
15690 else
15691 am__EXEEXT_TRUE='#'
15692 am__EXEEXT_FALSE=
15695 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15696 as_fn_error "conditional \"PLUGINS\" was never defined.
15697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15700 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15704 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15708 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15712 : ${CONFIG_STATUS=./config.status}
15713 ac_write_fail=0
15714 ac_clean_files_save=$ac_clean_files
15715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15718 as_write_fail=0
15719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15720 #! $SHELL
15721 # Generated by $as_me.
15722 # Run this file to recreate the current configuration.
15723 # Compiler output produced by configure, useful for debugging
15724 # configure, is in config.log if it exists.
15726 debug=false
15727 ac_cs_recheck=false
15728 ac_cs_silent=false
15730 SHELL=\${CONFIG_SHELL-$SHELL}
15731 export SHELL
15732 _ASEOF
15733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15734 ## -------------------- ##
15735 ## M4sh Initialization. ##
15736 ## -------------------- ##
15738 # Be more Bourne compatible
15739 DUALCASE=1; export DUALCASE # for MKS sh
15740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15741 emulate sh
15742 NULLCMD=:
15743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15744 # is contrary to our usage. Disable this feature.
15745 alias -g '${1+"$@"}'='"$@"'
15746 setopt NO_GLOB_SUBST
15747 else
15748 case `(set -o) 2>/dev/null` in #(
15749 *posix*) :
15750 set -o posix ;; #(
15751 *) :
15753 esac
15757 as_nl='
15759 export as_nl
15760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15764 # Prefer a ksh shell builtin over an external printf program on Solaris,
15765 # but without wasting forks for bash or zsh.
15766 if test -z "$BASH_VERSION$ZSH_VERSION" \
15767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15768 as_echo='print -r --'
15769 as_echo_n='print -rn --'
15770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15771 as_echo='printf %s\n'
15772 as_echo_n='printf %s'
15773 else
15774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15775 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15776 as_echo_n='/usr/ucb/echo -n'
15777 else
15778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15779 as_echo_n_body='eval
15780 arg=$1;
15781 case $arg in #(
15782 *"$as_nl"*)
15783 expr "X$arg" : "X\\(.*\\)$as_nl";
15784 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15785 esac;
15786 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15788 export as_echo_n_body
15789 as_echo_n='sh -c $as_echo_n_body as_echo'
15791 export as_echo_body
15792 as_echo='sh -c $as_echo_body as_echo'
15795 # The user is always right.
15796 if test "${PATH_SEPARATOR+set}" != set; then
15797 PATH_SEPARATOR=:
15798 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15799 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15800 PATH_SEPARATOR=';'
15805 # IFS
15806 # We need space, tab and new line, in precisely that order. Quoting is
15807 # there to prevent editors from complaining about space-tab.
15808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15809 # splitting by setting IFS to empty value.)
15810 IFS=" "" $as_nl"
15812 # Find who we are. Look in the path if we contain no directory separator.
15813 case $0 in #((
15814 *[\\/]* ) as_myself=$0 ;;
15815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15818 IFS=$as_save_IFS
15819 test -z "$as_dir" && as_dir=.
15820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15821 done
15822 IFS=$as_save_IFS
15825 esac
15826 # We did not find ourselves, most probably we were run as `sh COMMAND'
15827 # in which case we are not to be found in the path.
15828 if test "x$as_myself" = x; then
15829 as_myself=$0
15831 if test ! -f "$as_myself"; then
15832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15833 exit 1
15836 # Unset variables that we do not need and which cause bugs (e.g. in
15837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15838 # suppresses any "Segmentation fault" message there. '((' could
15839 # trigger a bug in pdksh 5.2.14.
15840 for as_var in BASH_ENV ENV MAIL MAILPATH
15841 do eval test x\${$as_var+set} = xset \
15842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15843 done
15844 PS1='$ '
15845 PS2='> '
15846 PS4='+ '
15848 # NLS nuisances.
15849 LC_ALL=C
15850 export LC_ALL
15851 LANGUAGE=C
15852 export LANGUAGE
15854 # CDPATH.
15855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15858 # as_fn_error ERROR [LINENO LOG_FD]
15859 # ---------------------------------
15860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15862 # script with status $?, using 1 if that was 0.
15863 as_fn_error ()
15865 as_status=$?; test $as_status -eq 0 && as_status=1
15866 if test "$3"; then
15867 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15870 $as_echo "$as_me: error: $1" >&2
15871 as_fn_exit $as_status
15872 } # as_fn_error
15875 # as_fn_set_status STATUS
15876 # -----------------------
15877 # Set $? to STATUS, without forking.
15878 as_fn_set_status ()
15880 return $1
15881 } # as_fn_set_status
15883 # as_fn_exit STATUS
15884 # -----------------
15885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15886 as_fn_exit ()
15888 set +e
15889 as_fn_set_status $1
15890 exit $1
15891 } # as_fn_exit
15893 # as_fn_unset VAR
15894 # ---------------
15895 # Portably unset VAR.
15896 as_fn_unset ()
15898 { eval $1=; unset $1;}
15900 as_unset=as_fn_unset
15901 # as_fn_append VAR VALUE
15902 # ----------------------
15903 # Append the text in VALUE to the end of the definition contained in VAR. Take
15904 # advantage of any shell optimizations that allow amortized linear growth over
15905 # repeated appends, instead of the typical quadratic growth present in naive
15906 # implementations.
15907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15908 eval 'as_fn_append ()
15910 eval $1+=\$2
15912 else
15913 as_fn_append ()
15915 eval $1=\$$1\$2
15917 fi # as_fn_append
15919 # as_fn_arith ARG...
15920 # ------------------
15921 # Perform arithmetic evaluation on the ARGs, and store the result in the
15922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15923 # must be portable across $(()) and expr.
15924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15925 eval 'as_fn_arith ()
15927 as_val=$(( $* ))
15929 else
15930 as_fn_arith ()
15932 as_val=`expr "$@" || test $? -eq 1`
15934 fi # as_fn_arith
15937 if expr a : '\(a\)' >/dev/null 2>&1 &&
15938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15939 as_expr=expr
15940 else
15941 as_expr=false
15944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15945 as_basename=basename
15946 else
15947 as_basename=false
15950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15951 as_dirname=dirname
15952 else
15953 as_dirname=false
15956 as_me=`$as_basename -- "$0" ||
15957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15958 X"$0" : 'X\(//\)$' \| \
15959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15960 $as_echo X/"$0" |
15961 sed '/^.*\/\([^/][^/]*\)\/*$/{
15962 s//\1/
15965 /^X\/\(\/\/\)$/{
15966 s//\1/
15969 /^X\/\(\/\).*/{
15970 s//\1/
15973 s/.*/./; q'`
15975 # Avoid depending upon Character Ranges.
15976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15979 as_cr_digits='0123456789'
15980 as_cr_alnum=$as_cr_Letters$as_cr_digits
15982 ECHO_C= ECHO_N= ECHO_T=
15983 case `echo -n x` in #(((((
15984 -n*)
15985 case `echo 'xy\c'` in
15986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15987 xy) ECHO_C='\c';;
15988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15989 ECHO_T=' ';;
15990 esac;;
15992 ECHO_N='-n';;
15993 esac
15995 rm -f conf$$ conf$$.exe conf$$.file
15996 if test -d conf$$.dir; then
15997 rm -f conf$$.dir/conf$$.file
15998 else
15999 rm -f conf$$.dir
16000 mkdir conf$$.dir 2>/dev/null
16002 if (echo >conf$$.file) 2>/dev/null; then
16003 if ln -s conf$$.file conf$$ 2>/dev/null; then
16004 as_ln_s='ln -s'
16005 # ... but there are two gotchas:
16006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16008 # In both cases, we have to default to `cp -p'.
16009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16010 as_ln_s='cp -p'
16011 elif ln conf$$.file conf$$ 2>/dev/null; then
16012 as_ln_s=ln
16013 else
16014 as_ln_s='cp -p'
16016 else
16017 as_ln_s='cp -p'
16019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16020 rmdir conf$$.dir 2>/dev/null
16023 # as_fn_mkdir_p
16024 # -------------
16025 # Create "$as_dir" as a directory, including parents if necessary.
16026 as_fn_mkdir_p ()
16029 case $as_dir in #(
16030 -*) as_dir=./$as_dir;;
16031 esac
16032 test -d "$as_dir" || eval $as_mkdir_p || {
16033 as_dirs=
16034 while :; do
16035 case $as_dir in #(
16036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16037 *) as_qdir=$as_dir;;
16038 esac
16039 as_dirs="'$as_qdir' $as_dirs"
16040 as_dir=`$as_dirname -- "$as_dir" ||
16041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16042 X"$as_dir" : 'X\(//\)[^/]' \| \
16043 X"$as_dir" : 'X\(//\)$' \| \
16044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16045 $as_echo X"$as_dir" |
16046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16047 s//\1/
16050 /^X\(\/\/\)[^/].*/{
16051 s//\1/
16054 /^X\(\/\/\)$/{
16055 s//\1/
16058 /^X\(\/\).*/{
16059 s//\1/
16062 s/.*/./; q'`
16063 test -d "$as_dir" && break
16064 done
16065 test -z "$as_dirs" || eval "mkdir $as_dirs"
16066 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16069 } # as_fn_mkdir_p
16070 if mkdir -p . 2>/dev/null; then
16071 as_mkdir_p='mkdir -p "$as_dir"'
16072 else
16073 test -d ./-p && rmdir ./-p
16074 as_mkdir_p=false
16077 if test -x / >/dev/null 2>&1; then
16078 as_test_x='test -x'
16079 else
16080 if ls -dL / >/dev/null 2>&1; then
16081 as_ls_L_option=L
16082 else
16083 as_ls_L_option=
16085 as_test_x='
16086 eval sh -c '\''
16087 if test -d "$1"; then
16088 test -d "$1/.";
16089 else
16090 case $1 in #(
16091 -*)set "./$1";;
16092 esac;
16093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16094 ???[sx]*):;;*)false;;esac;fi
16095 '\'' sh
16098 as_executable_p=$as_test_x
16100 # Sed expression to map a string onto a valid CPP name.
16101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16103 # Sed expression to map a string onto a valid variable name.
16104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16107 exec 6>&1
16108 ## ----------------------------------- ##
16109 ## Main body of $CONFIG_STATUS script. ##
16110 ## ----------------------------------- ##
16111 _ASEOF
16112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16115 # Save the log message, to keep $0 and so on meaningful, and to
16116 # report actual input values of CONFIG_FILES etc. instead of their
16117 # values after options handling.
16118 ac_log="
16119 This file was extended by $as_me, which was
16120 generated by GNU Autoconf 2.64. Invocation command line was
16122 CONFIG_FILES = $CONFIG_FILES
16123 CONFIG_HEADERS = $CONFIG_HEADERS
16124 CONFIG_LINKS = $CONFIG_LINKS
16125 CONFIG_COMMANDS = $CONFIG_COMMANDS
16126 $ $0 $@
16128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16131 _ACEOF
16133 case $ac_config_files in *"
16134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16135 esac
16137 case $ac_config_headers in *"
16138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16139 esac
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 # Files that config.status was made for.
16144 config_files="$ac_config_files"
16145 config_headers="$ac_config_headers"
16146 config_commands="$ac_config_commands"
16148 _ACEOF
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151 ac_cs_usage="\
16152 \`$as_me' instantiates files and other configuration actions
16153 from templates according to the current configuration. Unless the files
16154 and actions are specified as TAGs, all are instantiated by default.
16156 Usage: $0 [OPTION]... [TAG]...
16158 -h, --help print this help, then exit
16159 -V, --version print version number and configuration settings, then exit
16160 -q, --quiet, --silent
16161 do not print progress messages
16162 -d, --debug don't remove temporary files
16163 --recheck update $as_me by reconfiguring in the same conditions
16164 --file=FILE[:TEMPLATE]
16165 instantiate the configuration file FILE
16166 --header=FILE[:TEMPLATE]
16167 instantiate the configuration header FILE
16169 Configuration files:
16170 $config_files
16172 Configuration headers:
16173 $config_headers
16175 Configuration commands:
16176 $config_commands
16178 Report bugs to the package provider."
16180 _ACEOF
16181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16182 ac_cs_version="\\
16183 config.status
16184 configured by $0, generated by GNU Autoconf 2.64,
16185 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16187 Copyright (C) 2009 Free Software Foundation, Inc.
16188 This config.status script is free software; the Free Software Foundation
16189 gives unlimited permission to copy, distribute and modify it."
16191 ac_pwd='$ac_pwd'
16192 srcdir='$srcdir'
16193 INSTALL='$INSTALL'
16194 MKDIR_P='$MKDIR_P'
16195 AWK='$AWK'
16196 test -n "\$AWK" || AWK=awk
16197 _ACEOF
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 # The default lists apply if the user does not specify any file.
16201 ac_need_defaults=:
16202 while test $# != 0
16204 case $1 in
16205 --*=*)
16206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16208 ac_shift=:
16211 ac_option=$1
16212 ac_optarg=$2
16213 ac_shift=shift
16215 esac
16217 case $ac_option in
16218 # Handling of the options.
16219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16220 ac_cs_recheck=: ;;
16221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16222 $as_echo "$ac_cs_version"; exit ;;
16223 --debug | --debu | --deb | --de | --d | -d )
16224 debug=: ;;
16225 --file | --fil | --fi | --f )
16226 $ac_shift
16227 case $ac_optarg in
16228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16229 esac
16230 as_fn_append CONFIG_FILES " '$ac_optarg'"
16231 ac_need_defaults=false;;
16232 --header | --heade | --head | --hea )
16233 $ac_shift
16234 case $ac_optarg in
16235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16236 esac
16237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16238 ac_need_defaults=false;;
16239 --he | --h)
16240 # Conflict between --help and --header
16241 as_fn_error "ambiguous option: \`$1'
16242 Try \`$0 --help' for more information.";;
16243 --help | --hel | -h )
16244 $as_echo "$ac_cs_usage"; exit ;;
16245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16247 ac_cs_silent=: ;;
16249 # This is an error.
16250 -*) as_fn_error "unrecognized option: \`$1'
16251 Try \`$0 --help' for more information." ;;
16253 *) as_fn_append ac_config_targets " $1"
16254 ac_need_defaults=false ;;
16256 esac
16257 shift
16258 done
16260 ac_configure_extra_args=
16262 if $ac_cs_silent; then
16263 exec 6>/dev/null
16264 ac_configure_extra_args="$ac_configure_extra_args --silent"
16267 _ACEOF
16268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16269 if \$ac_cs_recheck; then
16270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16271 shift
16272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16273 CONFIG_SHELL='$SHELL'
16274 export CONFIG_SHELL
16275 exec "\$@"
16278 _ACEOF
16279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16280 exec 5>>config.log
16282 echo
16283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16284 ## Running $as_me. ##
16285 _ASBOX
16286 $as_echo "$ac_log"
16287 } >&5
16289 _ACEOF
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16292 # INIT-COMMANDS
16294 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16297 # The HP-UX ksh and POSIX shell print the target directory to stdout
16298 # if CDPATH is set.
16299 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16301 sed_quote_subst='$sed_quote_subst'
16302 double_quote_subst='$double_quote_subst'
16303 delay_variable_subst='$delay_variable_subst'
16304 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16305 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16306 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16307 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16308 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16309 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16310 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16311 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16312 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16313 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16314 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16315 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16316 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16317 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16318 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16319 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16320 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16321 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16322 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16323 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16324 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16325 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16326 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16327 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16328 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16329 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16330 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16331 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16332 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16333 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16334 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16335 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16336 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16337 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16338 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16339 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16340 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16341 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16342 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16343 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16344 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16345 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16346 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16347 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16348 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16350 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16351 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16352 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16353 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16354 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16355 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16356 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16357 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16358 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16359 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16360 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16361 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16362 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16363 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16364 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16365 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16366 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16367 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16368 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16369 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16370 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16371 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16372 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16373 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16374 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16375 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16376 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16377 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16378 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16379 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16380 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16381 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16382 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16383 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16384 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16385 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16386 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16387 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16388 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16389 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16390 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16391 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16392 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16393 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16394 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16395 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16396 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16397 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16398 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16399 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16400 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16401 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16402 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16403 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16404 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16405 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16406 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16407 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16408 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16409 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16410 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16411 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16412 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16413 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16414 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16415 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16416 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16417 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16418 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16419 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16420 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16421 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16423 LTCC='$LTCC'
16424 LTCFLAGS='$LTCFLAGS'
16425 compiler='$compiler_DEFAULT'
16427 # Quote evaled strings.
16428 for var in SED \
16429 GREP \
16430 EGREP \
16431 FGREP \
16432 LD \
16433 NM \
16434 LN_S \
16435 lt_SP2NL \
16436 lt_NL2SP \
16437 reload_flag \
16438 OBJDUMP \
16439 deplibs_check_method \
16440 file_magic_cmd \
16441 AR \
16442 AR_FLAGS \
16443 STRIP \
16444 RANLIB \
16445 CC \
16446 CFLAGS \
16447 compiler \
16448 lt_cv_sys_global_symbol_pipe \
16449 lt_cv_sys_global_symbol_to_cdecl \
16450 lt_cv_sys_global_symbol_to_c_name_address \
16451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16452 SHELL \
16453 ECHO \
16454 lt_prog_compiler_no_builtin_flag \
16455 lt_prog_compiler_wl \
16456 lt_prog_compiler_pic \
16457 lt_prog_compiler_static \
16458 lt_cv_prog_compiler_c_o \
16459 need_locks \
16460 DSYMUTIL \
16461 NMEDIT \
16462 LIPO \
16463 OTOOL \
16464 OTOOL64 \
16465 shrext_cmds \
16466 export_dynamic_flag_spec \
16467 whole_archive_flag_spec \
16468 compiler_needs_object \
16469 with_gnu_ld \
16470 allow_undefined_flag \
16471 no_undefined_flag \
16472 hardcode_libdir_flag_spec \
16473 hardcode_libdir_flag_spec_ld \
16474 hardcode_libdir_separator \
16475 fix_srcfile_path \
16476 exclude_expsyms \
16477 include_expsyms \
16478 file_list_spec \
16479 variables_saved_for_relink \
16480 libname_spec \
16481 library_names_spec \
16482 soname_spec \
16483 finish_eval \
16484 old_striplib \
16485 striplib; do
16486 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16487 *[\\\\\\\`\\"\\\$]*)
16488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16493 esac
16494 done
16496 # Double-quote double-evaled strings.
16497 for var in reload_cmds \
16498 old_postinstall_cmds \
16499 old_postuninstall_cmds \
16500 old_archive_cmds \
16501 extract_expsyms_cmds \
16502 old_archive_from_new_cmds \
16503 old_archive_from_expsyms_cmds \
16504 archive_cmds \
16505 archive_expsym_cmds \
16506 module_cmds \
16507 module_expsym_cmds \
16508 export_symbols_cmds \
16509 prelink_cmds \
16510 postinstall_cmds \
16511 postuninstall_cmds \
16512 finish_cmds \
16513 sys_lib_search_path_spec \
16514 sys_lib_dlsearch_path_spec; do
16515 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16516 *[\\\\\\\`\\"\\\$]*)
16517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16522 esac
16523 done
16525 # Fix-up fallback echo if it was mangled by the above quoting rules.
16526 case \$lt_ECHO in
16527 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16529 esac
16531 ac_aux_dir='$ac_aux_dir'
16532 xsi_shell='$xsi_shell'
16533 lt_shell_append='$lt_shell_append'
16535 # See if we are running on zsh, and set the options which allow our
16536 # commands through without removal of \ escapes INIT.
16537 if test -n "\${ZSH_VERSION+set}" ; then
16538 setopt NO_GLOB_SUBST
16542 PACKAGE='$PACKAGE'
16543 VERSION='$VERSION'
16544 TIMESTAMP='$TIMESTAMP'
16545 RM='$RM'
16546 ofile='$ofile'
16550 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16551 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16552 # from automake.
16553 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16554 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16555 LINGUAS="${LINGUAS-%UNSET%}"
16558 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16559 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16563 _ACEOF
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567 # Handling of arguments.
16568 for ac_config_target in $ac_config_targets
16570 case $ac_config_target in
16571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16573 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16574 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16575 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16576 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16577 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16578 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16579 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16580 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16582 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16583 esac
16584 done
16587 # If the user did not use the arguments to specify the items to instantiate,
16588 # then the envvar interface is used. Set only those that are not.
16589 # We use the long form for the default assignment because of an extremely
16590 # bizarre bug on SunOS 4.1.3.
16591 if $ac_need_defaults; then
16592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16597 # Have a temporary directory for convenience. Make it in the build tree
16598 # simply because there is no reason against having it here, and in addition,
16599 # creating and moving files from /tmp can sometimes cause problems.
16600 # Hook for its removal unless debugging.
16601 # Note that there is a small window in which the directory will not be cleaned:
16602 # after its creation but before its name has been assigned to `$tmp'.
16603 $debug ||
16605 tmp=
16606 trap 'exit_status=$?
16607 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16609 trap 'as_fn_exit 1' 1 2 13 15
16611 # Create a (secure) tmp directory for tmp files.
16614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16615 test -n "$tmp" && test -d "$tmp"
16616 } ||
16618 tmp=./conf$$-$RANDOM
16619 (umask 077 && mkdir "$tmp")
16620 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16622 # Set up the scripts for CONFIG_FILES section.
16623 # No need to generate them if there are no CONFIG_FILES.
16624 # This happens for instance with `./config.status config.h'.
16625 if test -n "$CONFIG_FILES"; then
16628 ac_cr=`echo X | tr X '\015'`
16629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16630 # But we know of no other shell where ac_cr would be empty at this
16631 # point, so we can use a bashism as a fallback.
16632 if test "x$ac_cr" = x; then
16633 eval ac_cr=\$\'\\r\'
16635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16637 ac_cs_awk_cr='\r'
16638 else
16639 ac_cs_awk_cr=$ac_cr
16642 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16643 _ACEOF
16647 echo "cat >conf$$subs.awk <<_ACEOF" &&
16648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16649 echo "_ACEOF"
16650 } >conf$$subs.sh ||
16651 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16653 ac_delim='%!_!# '
16654 for ac_last_try in false false false false false :; do
16655 . ./conf$$subs.sh ||
16656 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16659 if test $ac_delim_n = $ac_delim_num; then
16660 break
16661 elif $ac_last_try; then
16662 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16663 else
16664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16666 done
16667 rm -f conf$$subs.sh
16669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16670 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16671 _ACEOF
16672 sed -n '
16674 s/^/S["/; s/!.*/"]=/
16677 s/^[^!]*!//
16678 :repl
16679 t repl
16680 s/'"$ac_delim"'$//
16681 t delim
16684 s/\(.\{148\}\).*/\1/
16685 t more1
16686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16689 b repl
16690 :more1
16691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16694 s/.\{148\}//
16695 t nl
16696 :delim
16698 s/\(.\{148\}\).*/\1/
16699 t more2
16700 s/["\\]/\\&/g; s/^/"/; s/$/"/
16703 :more2
16704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16707 s/.\{148\}//
16708 t delim
16709 ' <conf$$subs.awk | sed '
16710 /^[^""]/{
16712 s/\n//
16714 ' >>$CONFIG_STATUS || ac_write_fail=1
16715 rm -f conf$$subs.awk
16716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16717 _ACAWK
16718 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16719 for (key in S) S_is_set[key] = 1
16720 FS = "\a"
16724 line = $ 0
16725 nfields = split(line, field, "@")
16726 substed = 0
16727 len = length(field[1])
16728 for (i = 2; i < nfields; i++) {
16729 key = field[i]
16730 keylen = length(key)
16731 if (S_is_set[key]) {
16732 value = S[key]
16733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16734 len += length(value) + length(field[++i])
16735 substed = 1
16736 } else
16737 len += 1 + keylen
16740 print line
16743 _ACAWK
16744 _ACEOF
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16748 else
16750 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16751 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16752 _ACEOF
16754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16756 # trailing colons and then remove the whole line if VPATH becomes empty
16757 # (actually we leave an empty line to preserve line numbers).
16758 if test "x$srcdir" = x.; then
16759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16760 s/:*\$(srcdir):*/:/
16761 s/:*\${srcdir}:*/:/
16762 s/:*@srcdir@:*/:/
16763 s/^\([^=]*=[ ]*\):*/\1/
16764 s/:*$//
16765 s/^[^=]*=[ ]*$//
16769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16770 fi # test -n "$CONFIG_FILES"
16772 # Set up the scripts for CONFIG_HEADERS section.
16773 # No need to generate them if there are no CONFIG_HEADERS.
16774 # This happens for instance with `./config.status Makefile'.
16775 if test -n "$CONFIG_HEADERS"; then
16776 cat >"$tmp/defines.awk" <<\_ACAWK ||
16777 BEGIN {
16778 _ACEOF
16780 # Transform confdefs.h into an awk script `defines.awk', embedded as
16781 # here-document in config.status, that substitutes the proper values into
16782 # config.h.in to produce config.h.
16784 # Create a delimiter string that does not exist in confdefs.h, to ease
16785 # handling of long lines.
16786 ac_delim='%!_!# '
16787 for ac_last_try in false false :; do
16788 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16789 if test -z "$ac_t"; then
16790 break
16791 elif $ac_last_try; then
16792 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16793 else
16794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16796 done
16798 # For the awk script, D is an array of macro values keyed by name,
16799 # likewise P contains macro parameters if any. Preserve backslash
16800 # newline sequences.
16802 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16803 sed -n '
16804 s/.\{148\}/&'"$ac_delim"'/g
16805 t rset
16806 :rset
16807 s/^[ ]*#[ ]*define[ ][ ]*/ /
16808 t def
16810 :def
16811 s/\\$//
16812 t bsnl
16813 s/["\\]/\\&/g
16814 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16815 D["\1"]=" \3"/p
16816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16818 :bsnl
16819 s/["\\]/\\&/g
16820 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16821 D["\1"]=" \3\\\\\\n"\\/p
16822 t cont
16823 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16824 t cont
16826 :cont
16828 s/.\{148\}/&'"$ac_delim"'/g
16829 t clear
16830 :clear
16831 s/\\$//
16832 t bsnlc
16833 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16835 :bsnlc
16836 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16837 b cont
16838 ' <confdefs.h | sed '
16839 s/'"$ac_delim"'/"\\\
16840 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16843 for (key in D) D_is_set[key] = 1
16844 FS = "\a"
16846 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16847 line = \$ 0
16848 split(line, arg, " ")
16849 if (arg[1] == "#") {
16850 defundef = arg[2]
16851 mac1 = arg[3]
16852 } else {
16853 defundef = substr(arg[1], 2)
16854 mac1 = arg[2]
16856 split(mac1, mac2, "(") #)
16857 macro = mac2[1]
16858 prefix = substr(line, 1, index(line, defundef) - 1)
16859 if (D_is_set[macro]) {
16860 # Preserve the white space surrounding the "#".
16861 print prefix "define", macro P[macro] D[macro]
16862 next
16863 } else {
16864 # Replace #undef with comments. This is necessary, for example,
16865 # in the case of _POSIX_SOURCE, which is predefined and required
16866 # on some systems where configure will not decide to define it.
16867 if (defundef == "undef") {
16868 print "/*", prefix defundef, macro, "*/"
16869 next
16873 { print }
16874 _ACAWK
16875 _ACEOF
16876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16877 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16878 fi # test -n "$CONFIG_HEADERS"
16881 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16882 shift
16883 for ac_tag
16885 case $ac_tag in
16886 :[FHLC]) ac_mode=$ac_tag; continue;;
16887 esac
16888 case $ac_mode$ac_tag in
16889 :[FHL]*:*);;
16890 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16891 :[FH]-) ac_tag=-:-;;
16892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16893 esac
16894 ac_save_IFS=$IFS
16895 IFS=:
16896 set x $ac_tag
16897 IFS=$ac_save_IFS
16898 shift
16899 ac_file=$1
16900 shift
16902 case $ac_mode in
16903 :L) ac_source=$1;;
16904 :[FH])
16905 ac_file_inputs=
16906 for ac_f
16908 case $ac_f in
16909 -) ac_f="$tmp/stdin";;
16910 *) # Look for the file first in the build tree, then in the source tree
16911 # (if the path is not absolute). The absolute path cannot be DOS-style,
16912 # because $ac_f cannot contain `:'.
16913 test -f "$ac_f" ||
16914 case $ac_f in
16915 [\\/$]*) false;;
16916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16917 esac ||
16918 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16919 esac
16920 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16921 as_fn_append ac_file_inputs " '$ac_f'"
16922 done
16924 # Let's still pretend it is `configure' which instantiates (i.e., don't
16925 # use $as_me), people would be surprised to read:
16926 # /* config.h. Generated by config.status. */
16927 configure_input='Generated from '`
16928 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16929 `' by configure.'
16930 if test x"$ac_file" != x-; then
16931 configure_input="$ac_file. $configure_input"
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16933 $as_echo "$as_me: creating $ac_file" >&6;}
16935 # Neutralize special characters interpreted by sed in replacement strings.
16936 case $configure_input in #(
16937 *\&* | *\|* | *\\* )
16938 ac_sed_conf_input=`$as_echo "$configure_input" |
16939 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16940 *) ac_sed_conf_input=$configure_input;;
16941 esac
16943 case $ac_tag in
16944 *:-:* | *:-) cat >"$tmp/stdin" \
16945 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16946 esac
16948 esac
16950 ac_dir=`$as_dirname -- "$ac_file" ||
16951 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16952 X"$ac_file" : 'X\(//\)[^/]' \| \
16953 X"$ac_file" : 'X\(//\)$' \| \
16954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16955 $as_echo X"$ac_file" |
16956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16957 s//\1/
16960 /^X\(\/\/\)[^/].*/{
16961 s//\1/
16964 /^X\(\/\/\)$/{
16965 s//\1/
16968 /^X\(\/\).*/{
16969 s//\1/
16972 s/.*/./; q'`
16973 as_dir="$ac_dir"; as_fn_mkdir_p
16974 ac_builddir=.
16976 case "$ac_dir" in
16977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16979 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16980 # A ".." for each directory in $ac_dir_suffix.
16981 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16982 case $ac_top_builddir_sub in
16983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16985 esac ;;
16986 esac
16987 ac_abs_top_builddir=$ac_pwd
16988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16989 # for backward compatibility:
16990 ac_top_builddir=$ac_top_build_prefix
16992 case $srcdir in
16993 .) # We are building in place.
16994 ac_srcdir=.
16995 ac_top_srcdir=$ac_top_builddir_sub
16996 ac_abs_top_srcdir=$ac_pwd ;;
16997 [\\/]* | ?:[\\/]* ) # Absolute name.
16998 ac_srcdir=$srcdir$ac_dir_suffix;
16999 ac_top_srcdir=$srcdir
17000 ac_abs_top_srcdir=$srcdir ;;
17001 *) # Relative name.
17002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17003 ac_top_srcdir=$ac_top_build_prefix$srcdir
17004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17005 esac
17006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17009 case $ac_mode in
17012 # CONFIG_FILE
17015 case $INSTALL in
17016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17018 esac
17019 ac_MKDIR_P=$MKDIR_P
17020 case $MKDIR_P in
17021 [\\/$]* | ?:[\\/]* ) ;;
17022 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17023 esac
17024 _ACEOF
17026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17027 # If the template does not know about datarootdir, expand it.
17028 # FIXME: This hack should be removed a few years after 2.60.
17029 ac_datarootdir_hack=; ac_datarootdir_seen=
17030 ac_sed_dataroot='
17031 /datarootdir/ {
17035 /@datadir@/p
17036 /@docdir@/p
17037 /@infodir@/p
17038 /@localedir@/p
17039 /@mandir@/p'
17040 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17041 *datarootdir*) ac_datarootdir_seen=yes;;
17042 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17044 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17045 _ACEOF
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047 ac_datarootdir_hack='
17048 s&@datadir@&$datadir&g
17049 s&@docdir@&$docdir&g
17050 s&@infodir@&$infodir&g
17051 s&@localedir@&$localedir&g
17052 s&@mandir@&$mandir&g
17053 s&\\\${datarootdir}&$datarootdir&g' ;;
17054 esac
17055 _ACEOF
17057 # Neutralize VPATH when `$srcdir' = `.'.
17058 # Shell code in configure.ac might set extrasub.
17059 # FIXME: do we really want to maintain this feature?
17060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17061 ac_sed_extra="$ac_vpsub
17062 $extrasub
17063 _ACEOF
17064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17067 s|@configure_input@|$ac_sed_conf_input|;t t
17068 s&@top_builddir@&$ac_top_builddir_sub&;t t
17069 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17070 s&@srcdir@&$ac_srcdir&;t t
17071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17072 s&@top_srcdir@&$ac_top_srcdir&;t t
17073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17074 s&@builddir@&$ac_builddir&;t t
17075 s&@abs_builddir@&$ac_abs_builddir&;t t
17076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17077 s&@INSTALL@&$ac_INSTALL&;t t
17078 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17079 $ac_datarootdir_hack
17081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17082 || as_fn_error "could not create $ac_file" "$LINENO" 5
17084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17085 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17088 which seems to be undefined. Please make sure it is defined." >&5
17089 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17090 which seems to be undefined. Please make sure it is defined." >&2;}
17092 rm -f "$tmp/stdin"
17093 case $ac_file in
17094 -) cat "$tmp/out" && rm -f "$tmp/out";;
17095 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17096 esac \
17097 || as_fn_error "could not create $ac_file" "$LINENO" 5
17101 # CONFIG_HEADER
17103 if test x"$ac_file" != x-; then
17105 $as_echo "/* $configure_input */" \
17106 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17107 } >"$tmp/config.h" \
17108 || as_fn_error "could not create $ac_file" "$LINENO" 5
17109 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17112 else
17113 rm -f "$ac_file"
17114 mv "$tmp/config.h" "$ac_file" \
17115 || as_fn_error "could not create $ac_file" "$LINENO" 5
17117 else
17118 $as_echo "/* $configure_input */" \
17119 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17120 || as_fn_error "could not create -" "$LINENO" 5
17122 # Compute "$ac_file"'s index in $config_headers.
17123 _am_arg="$ac_file"
17124 _am_stamp_count=1
17125 for _am_header in $config_headers :; do
17126 case $_am_header in
17127 $_am_arg | $_am_arg:* )
17128 break ;;
17130 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17131 esac
17132 done
17133 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17134 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17135 X"$_am_arg" : 'X\(//\)[^/]' \| \
17136 X"$_am_arg" : 'X\(//\)$' \| \
17137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17138 $as_echo X"$_am_arg" |
17139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17140 s//\1/
17143 /^X\(\/\/\)[^/].*/{
17144 s//\1/
17147 /^X\(\/\/\)$/{
17148 s//\1/
17151 /^X\(\/\).*/{
17152 s//\1/
17155 s/.*/./; q'`/stamp-h$_am_stamp_count
17158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17159 $as_echo "$as_me: executing $ac_file commands" >&6;}
17161 esac
17164 case $ac_file$ac_mode in
17165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17166 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17167 # are listed without --file. Let's play safe and only enable the eval
17168 # if we detect the quoting.
17169 case $CONFIG_FILES in
17170 *\'*) eval set x "$CONFIG_FILES" ;;
17171 *) set x $CONFIG_FILES ;;
17172 esac
17173 shift
17174 for mf
17176 # Strip MF so we end up with the name of the file.
17177 mf=`echo "$mf" | sed -e 's/:.*$//'`
17178 # Check whether this is an Automake generated Makefile or not.
17179 # We used to match only the files named `Makefile.in', but
17180 # some people rename them; so instead we look at the file content.
17181 # Grep'ing the first line is not enough: some people post-process
17182 # each Makefile.in and add a new line on top of each file to say so.
17183 # Grep'ing the whole file is not good either: AIX grep has a line
17184 # limit of 2048, but all sed's we know have understand at least 4000.
17185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17186 dirpart=`$as_dirname -- "$mf" ||
17187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17188 X"$mf" : 'X\(//\)[^/]' \| \
17189 X"$mf" : 'X\(//\)$' \| \
17190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17191 $as_echo X"$mf" |
17192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17193 s//\1/
17196 /^X\(\/\/\)[^/].*/{
17197 s//\1/
17200 /^X\(\/\/\)$/{
17201 s//\1/
17204 /^X\(\/\).*/{
17205 s//\1/
17208 s/.*/./; q'`
17209 else
17210 continue
17212 # Extract the definition of DEPDIR, am__include, and am__quote
17213 # from the Makefile without running `make'.
17214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17215 test -z "$DEPDIR" && continue
17216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17217 test -z "am__include" && continue
17218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17219 # When using ansi2knr, U may be empty or an underscore; expand it
17220 U=`sed -n 's/^U = //p' < "$mf"`
17221 # Find all dependency output files, they are included files with
17222 # $(DEPDIR) in their names. We invoke sed twice because it is the
17223 # simplest approach to changing $(DEPDIR) to its actual value in the
17224 # expansion.
17225 for file in `sed -n "
17226 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17227 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17228 # Make sure the directory exists.
17229 test -f "$dirpart/$file" && continue
17230 fdir=`$as_dirname -- "$file" ||
17231 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17232 X"$file" : 'X\(//\)[^/]' \| \
17233 X"$file" : 'X\(//\)$' \| \
17234 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17235 $as_echo X"$file" |
17236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17237 s//\1/
17240 /^X\(\/\/\)[^/].*/{
17241 s//\1/
17244 /^X\(\/\/\)$/{
17245 s//\1/
17248 /^X\(\/\).*/{
17249 s//\1/
17252 s/.*/./; q'`
17253 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17254 # echo "creating $dirpart/$file"
17255 echo '# dummy' > "$dirpart/$file"
17256 done
17257 done
17260 "libtool":C)
17262 # See if we are running on zsh, and set the options which allow our
17263 # commands through without removal of \ escapes.
17264 if test -n "${ZSH_VERSION+set}" ; then
17265 setopt NO_GLOB_SUBST
17268 cfgfile="${ofile}T"
17269 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17270 $RM "$cfgfile"
17272 cat <<_LT_EOF >> "$cfgfile"
17273 #! $SHELL
17275 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17276 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17277 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17278 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17280 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17281 # 2006, 2007, 2008 Free Software Foundation, Inc.
17282 # Written by Gordon Matzigkeit, 1996
17284 # This file is part of GNU Libtool.
17286 # GNU Libtool is free software; you can redistribute it and/or
17287 # modify it under the terms of the GNU General Public License as
17288 # published by the Free Software Foundation; either version 2 of
17289 # the License, or (at your option) any later version.
17291 # As a special exception to the GNU General Public License,
17292 # if you distribute this file as part of a program or library that
17293 # is built using GNU Libtool, you may include this file under the
17294 # same distribution terms that you use for the rest of that program.
17296 # GNU Libtool is distributed in the hope that it will be useful,
17297 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17299 # GNU General Public License for more details.
17301 # You should have received a copy of the GNU General Public License
17302 # along with GNU Libtool; see the file COPYING. If not, a copy
17303 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17304 # obtained by writing to the Free Software Foundation, Inc.,
17305 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17308 # The names of the tagged configurations supported by this script.
17309 available_tags=""
17311 # ### BEGIN LIBTOOL CONFIG
17313 # Whether or not to build shared libraries.
17314 build_libtool_libs=$enable_shared
17316 # Which release of libtool.m4 was used?
17317 macro_version=$macro_version
17318 macro_revision=$macro_revision
17320 # Whether or not to build static libraries.
17321 build_old_libs=$enable_static
17323 # What type of objects to build.
17324 pic_mode=$pic_mode
17326 # Whether or not to optimize for fast installation.
17327 fast_install=$enable_fast_install
17329 # The host system.
17330 host_alias=$host_alias
17331 host=$host
17332 host_os=$host_os
17334 # The build system.
17335 build_alias=$build_alias
17336 build=$build
17337 build_os=$build_os
17339 # A sed program that does not truncate output.
17340 SED=$lt_SED
17342 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17343 Xsed="\$SED -e 1s/^X//"
17345 # A grep program that handles long lines.
17346 GREP=$lt_GREP
17348 # An ERE matcher.
17349 EGREP=$lt_EGREP
17351 # A literal string matcher.
17352 FGREP=$lt_FGREP
17354 # A BSD- or MS-compatible name lister.
17355 NM=$lt_NM
17357 # Whether we need soft or hard links.
17358 LN_S=$lt_LN_S
17360 # What is the maximum length of a command?
17361 max_cmd_len=$max_cmd_len
17363 # Object file suffix (normally "o").
17364 objext=$ac_objext
17366 # Executable file suffix (normally "").
17367 exeext=$exeext
17369 # whether the shell understands "unset".
17370 lt_unset=$lt_unset
17372 # turn spaces into newlines.
17373 SP2NL=$lt_lt_SP2NL
17375 # turn newlines into spaces.
17376 NL2SP=$lt_lt_NL2SP
17378 # How to create reloadable object files.
17379 reload_flag=$lt_reload_flag
17380 reload_cmds=$lt_reload_cmds
17382 # An object symbol dumper.
17383 OBJDUMP=$lt_OBJDUMP
17385 # Method to check whether dependent libraries are shared objects.
17386 deplibs_check_method=$lt_deplibs_check_method
17388 # Command to use when deplibs_check_method == "file_magic".
17389 file_magic_cmd=$lt_file_magic_cmd
17391 # The archiver.
17392 AR=$lt_AR
17393 AR_FLAGS=$lt_AR_FLAGS
17395 # A symbol stripping program.
17396 STRIP=$lt_STRIP
17398 # Commands used to install an old-style archive.
17399 RANLIB=$lt_RANLIB
17400 old_postinstall_cmds=$lt_old_postinstall_cmds
17401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17403 # A C compiler.
17404 LTCC=$lt_CC
17406 # LTCC compiler flags.
17407 LTCFLAGS=$lt_CFLAGS
17409 # Take the output of nm and produce a listing of raw symbols and C names.
17410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17412 # Transform the output of nm in a proper C declaration.
17413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17415 # Transform the output of nm in a C name address pair.
17416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17418 # Transform the output of nm in a C name address pair when lib prefix is needed.
17419 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17421 # The name of the directory that contains temporary libtool files.
17422 objdir=$objdir
17424 # Shell to use when invoking shell scripts.
17425 SHELL=$lt_SHELL
17427 # An echo program that does not interpret backslashes.
17428 ECHO=$lt_ECHO
17430 # Used to examine libraries when file_magic_cmd begins with "file".
17431 MAGIC_CMD=$MAGIC_CMD
17433 # Must we lock files when doing compilation?
17434 need_locks=$lt_need_locks
17436 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17437 DSYMUTIL=$lt_DSYMUTIL
17439 # Tool to change global to local symbols on Mac OS X.
17440 NMEDIT=$lt_NMEDIT
17442 # Tool to manipulate fat objects and archives on Mac OS X.
17443 LIPO=$lt_LIPO
17445 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17446 OTOOL=$lt_OTOOL
17448 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17449 OTOOL64=$lt_OTOOL64
17451 # Old archive suffix (normally "a").
17452 libext=$libext
17454 # Shared library suffix (normally ".so").
17455 shrext_cmds=$lt_shrext_cmds
17457 # The commands to extract the exported symbol list from a shared archive.
17458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17460 # Variables whose values should be saved in libtool wrapper scripts and
17461 # restored at link time.
17462 variables_saved_for_relink=$lt_variables_saved_for_relink
17464 # Do we need the "lib" prefix for modules?
17465 need_lib_prefix=$need_lib_prefix
17467 # Do we need a version for libraries?
17468 need_version=$need_version
17470 # Library versioning type.
17471 version_type=$version_type
17473 # Shared library runtime path variable.
17474 runpath_var=$runpath_var
17476 # Shared library path variable.
17477 shlibpath_var=$shlibpath_var
17479 # Is shlibpath searched before the hard-coded library search path?
17480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17482 # Format of library name prefix.
17483 libname_spec=$lt_libname_spec
17485 # List of archive names. First name is the real one, the rest are links.
17486 # The last name is the one that the linker finds with -lNAME
17487 library_names_spec=$lt_library_names_spec
17489 # The coded name of the library, if different from the real name.
17490 soname_spec=$lt_soname_spec
17492 # Command to use after installation of a shared archive.
17493 postinstall_cmds=$lt_postinstall_cmds
17495 # Command to use after uninstallation of a shared archive.
17496 postuninstall_cmds=$lt_postuninstall_cmds
17498 # Commands used to finish a libtool library installation in a directory.
17499 finish_cmds=$lt_finish_cmds
17501 # As "finish_cmds", except a single script fragment to be evaled but
17502 # not shown.
17503 finish_eval=$lt_finish_eval
17505 # Whether we should hardcode library paths into libraries.
17506 hardcode_into_libs=$hardcode_into_libs
17508 # Compile-time system search path for libraries.
17509 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17511 # Run-time system search path for libraries.
17512 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17514 # Whether dlopen is supported.
17515 dlopen_support=$enable_dlopen
17517 # Whether dlopen of programs is supported.
17518 dlopen_self=$enable_dlopen_self
17520 # Whether dlopen of statically linked programs is supported.
17521 dlopen_self_static=$enable_dlopen_self_static
17523 # Commands to strip libraries.
17524 old_striplib=$lt_old_striplib
17525 striplib=$lt_striplib
17528 # The linker used to build libraries.
17529 LD=$lt_LD
17531 # Commands used to build an old-style archive.
17532 old_archive_cmds=$lt_old_archive_cmds
17534 # A language specific compiler.
17535 CC=$lt_compiler
17537 # Is the compiler the GNU compiler?
17538 with_gcc=$GCC
17540 # Compiler flag to turn off builtin functions.
17541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17543 # How to pass a linker flag through the compiler.
17544 wl=$lt_lt_prog_compiler_wl
17546 # Additional compiler flags for building library objects.
17547 pic_flag=$lt_lt_prog_compiler_pic
17549 # Compiler flag to prevent dynamic linking.
17550 link_static_flag=$lt_lt_prog_compiler_static
17552 # Does compiler simultaneously support -c and -o options?
17553 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17555 # Whether or not to add -lc for building shared libraries.
17556 build_libtool_need_lc=$archive_cmds_need_lc
17558 # Whether or not to disallow shared libs when runtime libs are static.
17559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17561 # Compiler flag to allow reflexive dlopens.
17562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17564 # Compiler flag to generate shared objects directly from archives.
17565 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17567 # Whether the compiler copes with passing no objects directly.
17568 compiler_needs_object=$lt_compiler_needs_object
17570 # Create an old-style archive from a shared archive.
17571 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17573 # Create a temporary old-style archive to link instead of a shared archive.
17574 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17576 # Commands used to build a shared archive.
17577 archive_cmds=$lt_archive_cmds
17578 archive_expsym_cmds=$lt_archive_expsym_cmds
17580 # Commands used to build a loadable module if different from building
17581 # a shared archive.
17582 module_cmds=$lt_module_cmds
17583 module_expsym_cmds=$lt_module_expsym_cmds
17585 # Whether we are building with GNU ld or not.
17586 with_gnu_ld=$lt_with_gnu_ld
17588 # Flag that allows shared libraries with undefined symbols to be built.
17589 allow_undefined_flag=$lt_allow_undefined_flag
17591 # Flag that enforces no undefined symbols.
17592 no_undefined_flag=$lt_no_undefined_flag
17594 # Flag to hardcode \$libdir into a binary during linking.
17595 # This must work even if \$libdir does not exist
17596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17598 # If ld is used when linking, flag to hardcode \$libdir into a binary
17599 # during linking. This must work even if \$libdir does not exist.
17600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17602 # Whether we need a single "-rpath" flag with a separated argument.
17603 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17605 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17606 # DIR into the resulting binary.
17607 hardcode_direct=$hardcode_direct
17609 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17610 # DIR into the resulting binary and the resulting library dependency is
17611 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17612 # library is relocated.
17613 hardcode_direct_absolute=$hardcode_direct_absolute
17615 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17616 # into the resulting binary.
17617 hardcode_minus_L=$hardcode_minus_L
17619 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17620 # into the resulting binary.
17621 hardcode_shlibpath_var=$hardcode_shlibpath_var
17623 # Set to "yes" if building a shared library automatically hardcodes DIR
17624 # into the library and all subsequent libraries and executables linked
17625 # against it.
17626 hardcode_automatic=$hardcode_automatic
17628 # Set to yes if linker adds runtime paths of dependent libraries
17629 # to runtime path list.
17630 inherit_rpath=$inherit_rpath
17632 # Whether libtool must link a program against all its dependency libraries.
17633 link_all_deplibs=$link_all_deplibs
17635 # Fix the shell variable \$srcfile for the compiler.
17636 fix_srcfile_path=$lt_fix_srcfile_path
17638 # Set to "yes" if exported symbols are required.
17639 always_export_symbols=$always_export_symbols
17641 # The commands to list exported symbols.
17642 export_symbols_cmds=$lt_export_symbols_cmds
17644 # Symbols that should not be listed in the preloaded symbols.
17645 exclude_expsyms=$lt_exclude_expsyms
17647 # Symbols that must always be exported.
17648 include_expsyms=$lt_include_expsyms
17650 # Commands necessary for linking programs (against libraries) with templates.
17651 prelink_cmds=$lt_prelink_cmds
17653 # Specify filename containing input files.
17654 file_list_spec=$lt_file_list_spec
17656 # How to hardcode a shared library path into an executable.
17657 hardcode_action=$hardcode_action
17659 # ### END LIBTOOL CONFIG
17661 _LT_EOF
17663 case $host_os in
17664 aix3*)
17665 cat <<\_LT_EOF >> "$cfgfile"
17666 # AIX sometimes has problems with the GCC collect2 program. For some
17667 # reason, if we set the COLLECT_NAMES environment variable, the problems
17668 # vanish in a puff of smoke.
17669 if test "X${COLLECT_NAMES+set}" != Xset; then
17670 COLLECT_NAMES=
17671 export COLLECT_NAMES
17673 _LT_EOF
17675 esac
17678 ltmain="$ac_aux_dir/ltmain.sh"
17681 # We use sed instead of cat because bash on DJGPP gets confused if
17682 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17683 # text mode, it properly converts lines to CR/LF. This bash problem
17684 # is reportedly fixed, but why not run on old versions too?
17685 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17686 || (rm -f "$cfgfile"; exit 1)
17688 case $xsi_shell in
17689 yes)
17690 cat << \_LT_EOF >> "$cfgfile"
17692 # func_dirname file append nondir_replacement
17693 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17694 # otherwise set result to NONDIR_REPLACEMENT.
17695 func_dirname ()
17697 case ${1} in
17698 */*) func_dirname_result="${1%/*}${2}" ;;
17699 * ) func_dirname_result="${3}" ;;
17700 esac
17703 # func_basename file
17704 func_basename ()
17706 func_basename_result="${1##*/}"
17709 # func_dirname_and_basename file append nondir_replacement
17710 # perform func_basename and func_dirname in a single function
17711 # call:
17712 # dirname: Compute the dirname of FILE. If nonempty,
17713 # add APPEND to the result, otherwise set result
17714 # to NONDIR_REPLACEMENT.
17715 # value returned in "$func_dirname_result"
17716 # basename: Compute filename of FILE.
17717 # value retuned in "$func_basename_result"
17718 # Implementation must be kept synchronized with func_dirname
17719 # and func_basename. For efficiency, we do not delegate to
17720 # those functions but instead duplicate the functionality here.
17721 func_dirname_and_basename ()
17723 case ${1} in
17724 */*) func_dirname_result="${1%/*}${2}" ;;
17725 * ) func_dirname_result="${3}" ;;
17726 esac
17727 func_basename_result="${1##*/}"
17730 # func_stripname prefix suffix name
17731 # strip PREFIX and SUFFIX off of NAME.
17732 # PREFIX and SUFFIX must not contain globbing or regex special
17733 # characters, hashes, percent signs, but SUFFIX may contain a leading
17734 # dot (in which case that matches only a dot).
17735 func_stripname ()
17737 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17738 # positional parameters, so assign one to ordinary parameter first.
17739 func_stripname_result=${3}
17740 func_stripname_result=${func_stripname_result#"${1}"}
17741 func_stripname_result=${func_stripname_result%"${2}"}
17744 # func_opt_split
17745 func_opt_split ()
17747 func_opt_split_opt=${1%%=*}
17748 func_opt_split_arg=${1#*=}
17751 # func_lo2o object
17752 func_lo2o ()
17754 case ${1} in
17755 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17756 *) func_lo2o_result=${1} ;;
17757 esac
17760 # func_xform libobj-or-source
17761 func_xform ()
17763 func_xform_result=${1%.*}.lo
17766 # func_arith arithmetic-term...
17767 func_arith ()
17769 func_arith_result=$(( $* ))
17772 # func_len string
17773 # STRING may not start with a hyphen.
17774 func_len ()
17776 func_len_result=${#1}
17779 _LT_EOF
17781 *) # Bourne compatible functions.
17782 cat << \_LT_EOF >> "$cfgfile"
17784 # func_dirname file append nondir_replacement
17785 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17786 # otherwise set result to NONDIR_REPLACEMENT.
17787 func_dirname ()
17789 # Extract subdirectory from the argument.
17790 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17791 if test "X$func_dirname_result" = "X${1}"; then
17792 func_dirname_result="${3}"
17793 else
17794 func_dirname_result="$func_dirname_result${2}"
17798 # func_basename file
17799 func_basename ()
17801 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17805 # func_stripname prefix suffix name
17806 # strip PREFIX and SUFFIX off of NAME.
17807 # PREFIX and SUFFIX must not contain globbing or regex special
17808 # characters, hashes, percent signs, but SUFFIX may contain a leading
17809 # dot (in which case that matches only a dot).
17810 # func_strip_suffix prefix name
17811 func_stripname ()
17813 case ${2} in
17814 .*) func_stripname_result=`$ECHO "X${3}" \
17815 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17816 *) func_stripname_result=`$ECHO "X${3}" \
17817 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17818 esac
17821 # sed scripts:
17822 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17823 my_sed_long_arg='1s/^-[^=]*=//'
17825 # func_opt_split
17826 func_opt_split ()
17828 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17829 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17832 # func_lo2o object
17833 func_lo2o ()
17835 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17838 # func_xform libobj-or-source
17839 func_xform ()
17841 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17844 # func_arith arithmetic-term...
17845 func_arith ()
17847 func_arith_result=`expr "$@"`
17850 # func_len string
17851 # STRING may not start with a hyphen.
17852 func_len ()
17854 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17857 _LT_EOF
17858 esac
17860 case $lt_shell_append in
17861 yes)
17862 cat << \_LT_EOF >> "$cfgfile"
17864 # func_append var value
17865 # Append VALUE to the end of shell variable VAR.
17866 func_append ()
17868 eval "$1+=\$2"
17870 _LT_EOF
17873 cat << \_LT_EOF >> "$cfgfile"
17875 # func_append var value
17876 # Append VALUE to the end of shell variable VAR.
17877 func_append ()
17879 eval "$1=\$$1\$2"
17882 _LT_EOF
17884 esac
17887 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17888 || (rm -f "$cfgfile"; exit 1)
17890 mv -f "$cfgfile" "$ofile" ||
17891 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17892 chmod +x "$ofile"
17895 "default-1":C)
17896 for ac_file in $CONFIG_FILES; do
17897 # Support "outfile[:infile[:infile...]]"
17898 case "$ac_file" in
17899 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17900 esac
17901 # PO directories have a Makefile.in generated from Makefile.in.in.
17902 case "$ac_file" in */Makefile.in)
17903 # Adjust a relative srcdir.
17904 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17905 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17906 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17907 # In autoconf-2.13 it is called $ac_given_srcdir.
17908 # In autoconf-2.50 it is called $srcdir.
17909 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17910 case "$ac_given_srcdir" in
17911 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17912 /*) top_srcdir="$ac_given_srcdir" ;;
17913 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17914 esac
17915 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17916 rm -f "$ac_dir/POTFILES"
17917 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17918 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17919 POMAKEFILEDEPS="POTFILES.in"
17920 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17921 # on $ac_dir but don't depend on user-specified configuration
17922 # parameters.
17923 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17924 # The LINGUAS file contains the set of available languages.
17925 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17926 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17928 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17929 # Hide the ALL_LINGUAS assigment from automake.
17930 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17931 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17932 else
17933 # The set of available languages was given in configure.in.
17934 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17936 case "$ac_given_srcdir" in
17937 .) srcdirpre= ;;
17938 *) srcdirpre='$(srcdir)/' ;;
17939 esac
17940 POFILES=
17941 GMOFILES=
17942 UPDATEPOFILES=
17943 DUMMYPOFILES=
17944 for lang in $ALL_LINGUAS; do
17945 POFILES="$POFILES $srcdirpre$lang.po"
17946 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17947 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17948 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17949 done
17950 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17951 # environment variable.
17952 INST_LINGUAS=
17953 if test -n "$ALL_LINGUAS"; then
17954 for presentlang in $ALL_LINGUAS; do
17955 useit=no
17956 if test "%UNSET%" != "$LINGUAS"; then
17957 desiredlanguages="$LINGUAS"
17958 else
17959 desiredlanguages="$ALL_LINGUAS"
17961 for desiredlang in $desiredlanguages; do
17962 # Use the presentlang catalog if desiredlang is
17963 # a. equal to presentlang, or
17964 # b. a variant of presentlang (because in this case,
17965 # presentlang can be used as a fallback for messages
17966 # which are not translated in the desiredlang catalog).
17967 case "$desiredlang" in
17968 "$presentlang"*) useit=yes;;
17969 esac
17970 done
17971 if test $useit = yes; then
17972 INST_LINGUAS="$INST_LINGUAS $presentlang"
17974 done
17976 CATALOGS=
17977 if test -n "$INST_LINGUAS"; then
17978 for lang in $INST_LINGUAS; do
17979 CATALOGS="$CATALOGS $lang.gmo"
17980 done
17982 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17983 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17984 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17985 if test -f "$f"; then
17986 case "$f" in
17987 *.orig | *.bak | *~) ;;
17988 *) cat "$f" >> "$ac_dir/Makefile" ;;
17989 esac
17991 done
17994 esac
17995 done ;;
17996 "bfd_stdint.h":C)
17997 cat > $tmp/bfd_stdint.h <<EOF
17998 #ifndef GCC_GENERATED_STDINT_H
17999 #define GCC_GENERATED_STDINT_H 1
18001 #include "config.h"
18002 #include <sys/types.h>
18003 #ifdef HAVE_STDINT_H
18004 #include <stdint.h>
18005 #endif
18006 #ifdef HAVE_INTTYPES_H
18007 #include <inttypes.h>
18008 #endif
18011 if test "$ac_cv_type_int_least32_t" != yes; then
18012 sed 's/^ *//' >> $tmp/bfd_stdint.h <<EOF
18014 /* Define int_least types */
18015 typedef int8_t int_least8_t;
18016 typedef int16_t int_least16_t;
18017 typedef int32_t int_least32_t;
18018 typedef int64_t int_least64_t;
18020 typedef uint8_t uint_least8_t;
18021 typedef uint16_t uint_least16_t;
18022 typedef uint32_t uint_least32_t;
18023 typedef uint64_t uint_least64_t;
18027 if test "$ac_cv_type_int_fast32_t" != yes; then
18028 sed 's/^ *//' >> $tmp/bfd_stdint.h <<EOF
18030 /* Define int_fast types. short is often slow */
18031 typedef int8_t int_fast8_t;
18032 typedef int int_fast16_t;
18033 typedef int32_t int_fast32_t;
18034 typedef int64_t int_fast64_t;
18036 typedef uint8_t uint_fast8_t;
18037 typedef unsigned int uint_fast16_t;
18038 typedef uint32_t uint_fast32_t;
18039 typedef uint64_t uint_fast64_t;
18043 echo '#endif /* GCC_GENERATED_STDINT_H */' >> $tmp/bfd_stdint.h
18045 if test -r bfd_stdint.h && cmp -s $tmp/bfd_stdint.h bfd_stdint.h; then
18046 rm -f $tmp/bfd_stdint.h
18047 else
18048 mv -f $tmp/bfd_stdint.h bfd_stdint.h
18052 "default":C)
18053 case "$srcdir" in
18054 .) srcdirpre= ;;
18055 *) srcdirpre='$(srcdir)/' ;;
18056 esac
18057 POFILES=
18058 GMOFILES=
18059 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18060 if test $lang != dummy; then
18061 POFILES="$POFILES $srcdirpre$lang.po"
18062 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18064 done
18065 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18066 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18067 -e "s,@POFILES@,$POFILES," \
18068 -e "s,@GMOFILES@,$GMOFILES," \
18069 po/Makefile.in > po/Makefile ;;
18071 esac
18072 done # for ac_tag
18075 as_fn_exit 0
18076 _ACEOF
18077 ac_clean_files=$ac_clean_files_save
18079 test $ac_write_fail = 0 ||
18080 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18083 # configure is writing to config.log, and then calls config.status.
18084 # config.status does its own redirection, appending to config.log.
18085 # Unfortunately, on DOS this fails, as config.log is still kept open
18086 # by configure, so config.status won't be able to write to it; its
18087 # output is simply discarded. So we exec the FD to /dev/null,
18088 # effectively closing config.log, so it can be properly (re)opened and
18089 # appended to by config.status. When coming back to configure, we
18090 # need to make the FD available again.
18091 if test "$no_create" != yes; then
18092 ac_cs_success=:
18093 ac_config_status_args=
18094 test "$silent" = yes &&
18095 ac_config_status_args="$ac_config_status_args --quiet"
18096 exec 5>/dev/null
18097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18098 exec 5>>config.log
18099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18100 # would make configure fail if this is the last instruction.
18101 $ac_cs_success || as_fn_exit $?
18103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}