2010-04-01 Tristan Gingold <gingold@adacore.com>
[binutils.git] / bfd / configure
blob0f73da3c25767773000ec61f32d67ae9db37cef7
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
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="libbfd.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 tdefaults
606 bfd_ufile_ptr
607 bfd_file_ptr
608 supports_plugins
609 bfd_default_target_size
610 bfd_machines
611 bfd_backends
612 all_backends
613 bfd64_libs
614 wordsize
615 TDEFINES
616 SHARED_LIBADD
617 SHARED_LDFLAGS
618 LIBM
619 COREFLAG
620 COREFILE
621 EXEEXT_FOR_BUILD
622 CC_FOR_BUILD
623 BFD_HOSTPTR_T
624 BFD_HOST_U_64_BIT
625 BFD_HOST_64_BIT
626 BFD_HOST_64_BIT_DEFINED
627 BFD_HOST_64BIT_LONG_LONG
628 BFD_HOST_64BIT_LONG
629 HDEFINES
630 MSGMERGE
631 MSGFMT
632 MKINSTALLDIRS
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 bfdincludedir
646 bfdlibdir
647 target_noncanonical
648 host_noncanonical
649 INSTALL_LIBBFD_FALSE
650 INSTALL_LIBBFD_TRUE
651 GENINSRC_NEVER_FALSE
652 GENINSRC_NEVER_TRUE
653 MAINT
654 MAINTAINER_MODE_FALSE
655 MAINTAINER_MODE_TRUE
656 NO_WERROR
657 WARN_CFLAGS
658 REPORT_BUGS_TEXI
659 REPORT_BUGS_TO
660 PKGVERSION
661 DEBUGDIR
662 PLUGINS_FALSE
663 PLUGINS_TRUE
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 OBJDUMP
670 LN_S
672 ac_ct_DUMPBIN
673 DUMPBIN
675 FGREP
677 LIBTOOL
678 EGREP
679 GREP
681 RANLIB
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_dependency_tracking
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 enable_libtool_lock
782 enable_plugins
783 enable_largefile
784 enable_64_bit_bfd
785 enable_targets
786 with_mmap
787 enable_secureplt
788 with_separate_debug_dir
789 enable_elf_stt_common
790 with_pkgversion
791 with_bugurl
792 enable_werror
793 enable_build_warnings
794 enable_maintainer_mode
795 enable_install_libbfd
796 enable_nls
797 with_zlib
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP'
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
858 ac_prev=
859 ac_dashdash=
860 for ac_option
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
869 case $ac_option in
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *) ac_optarg=yes ;;
872 esac
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
878 ac_dashdash=yes ;;
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
897 --config-cache | -C)
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information."
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1263 If a cross compiler is detected then cross compile mode will be used." >&2
1264 elif test "x$build_alias" != "x$host_alias"; then
1265 cross_compiling=yes
1269 ac_tool_prefix=
1270 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272 test "$silent" = yes && exec 6>/dev/null
1275 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276 ac_ls_di=`ls -di .` &&
1277 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278 as_fn_error "working directory cannot be determined"
1279 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280 as_fn_error "pwd does not report name of working directory"
1283 # Find the source files, if location was not specified.
1284 if test -z "$srcdir"; then
1285 ac_srcdir_defaulted=yes
1286 # Try the directory containing this script, then the parent directory.
1287 ac_confdir=`$as_dirname -- "$as_myself" ||
1288 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289 X"$as_myself" : 'X\(//\)[^/]' \| \
1290 X"$as_myself" : 'X\(//\)$' \| \
1291 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292 $as_echo X"$as_myself" |
1293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 s//\1/
1297 /^X\(\/\/\)[^/].*/{
1298 s//\1/
1301 /^X\(\/\/\)$/{
1302 s//\1/
1305 /^X\(\/\).*/{
1306 s//\1/
1309 s/.*/./; q'`
1310 srcdir=$ac_confdir
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 srcdir=..
1314 else
1315 ac_srcdir_defaulted=no
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 ac_abs_confdir=`(
1323 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1324 pwd)`
1325 # When building in place, set srcdir=.
1326 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 srcdir=.
1329 # Remove unnecessary trailing slashes from srcdir.
1330 # Double slashes in file names in object file debugging info
1331 # mess up M-x gdb in Emacs.
1332 case $srcdir in
1333 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 esac
1335 for ac_var in $ac_precious_vars; do
1336 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_env_${ac_var}_value=\$${ac_var}
1338 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 done
1343 # Report the --help message.
1345 if test "$ac_init_help" = "long"; then
1346 # Omit some internal or obsolete options to make the list less imposing.
1347 # This message is too long to be a string in the A/UX 3.1 sh.
1348 cat <<_ACEOF
1349 \`configure' configures this package to adapt to many kinds of systems.
1351 Usage: $0 [OPTION]... [VAR=VALUE]...
1353 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354 VAR=VALUE. See below for descriptions of some of the useful variables.
1356 Defaults for the options are specified in brackets.
1358 Configuration:
1359 -h, --help display this help and exit
1360 --help=short display options specific to this package
1361 --help=recursive display the short help of all the included packages
1362 -V, --version display version information and exit
1363 -q, --quiet, --silent do not print \`checking...' messages
1364 --cache-file=FILE cache test results in FILE [disabled]
1365 -C, --config-cache alias for \`--cache-file=config.cache'
1366 -n, --no-create do not create output files
1367 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369 Installation directories:
1370 --prefix=PREFIX install architecture-independent files in PREFIX
1371 [$ac_default_prefix]
1372 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 [PREFIX]
1375 By default, \`make install' will install all the files in
1376 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1377 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378 for instance \`--prefix=\$HOME'.
1380 For better control, use the options below.
1382 Fine tuning of the installation directories:
1383 --bindir=DIR user executables [EPREFIX/bin]
1384 --sbindir=DIR system admin executables [EPREFIX/sbin]
1385 --libexecdir=DIR program executables [EPREFIX/libexec]
1386 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1387 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1388 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1404 cat <<\_ACEOF
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 --target=TARGET configure for building compilers for TARGET [HOST]
1415 _ACEOF
1418 if test -n "$ac_init_help"; then
1420 cat <<\_ACEOF
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --disable-dependency-tracking speeds up one-time build
1427 --enable-dependency-tracking do not reject slow dependency extractors
1428 --enable-shared[=PKGS] build shared libraries [default=no]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --enable-plugins Enable support for plugins (defaults no)
1434 --disable-largefile omit support for large files
1435 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1436 --enable-targets alternative target configurations
1437 --enable-secureplt Default to creating read-only plt entries
1438 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1439 --enable-werror treat compile warnings as errors
1440 --enable-build-warnings enable build-time compiler warnings
1441 --enable-maintainer-mode enable make rules and dependencies not useful
1442 (and sometimes confusing) to the casual installer
1443 --enable-install-libbfd controls installation of libbfd and related headers
1444 --disable-nls do not use Native Language Support
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 --with-mmap try using mmap for BFD input files if available
1453 --with-separate-debug-dir=DIR
1454 Look for global separate debug info in DIR
1455 [default=LIBDIR/debug]
1456 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1457 Binutils"
1458 --with-bugurl=URL Direct users to URL to report a bug
1459 --with-zlib include zlib support (auto/yes/no) default=auto
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CPP C preprocessor
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 configure
1538 generated by GNU Autoconf 2.64
1540 Copyright (C) 2009 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1582 ac_retval=1
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 return $ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 $as_test_x conftest$ac_exeext
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 ac_retval=1
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 return $ac_retval
1633 } # ac_fn_c_try_link
1635 # ac_fn_c_try_cpp LINENO
1636 # ----------------------
1637 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_cpp ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_cpp conftest.$ac_ext"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } >/dev/null && {
1657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 }; then :
1660 ac_retval=0
1661 else
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=1
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 return $ac_retval
1670 } # ac_fn_c_try_cpp
1672 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1675 # the include files in INCLUDES and setting the cache variable VAR
1676 # accordingly.
1677 ac_fn_c_check_header_mongrel ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 $as_echo_n "(cached) " >&6
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 else
1690 # Is the header compilable?
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1692 $as_echo_n "checking $2 usability... " >&6; }
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"; then :
1699 ac_header_compiler=yes
1700 else
1701 ac_header_compiler=no
1703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1705 $as_echo "$ac_header_compiler" >&6; }
1707 # Is the header present?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1709 $as_echo_n "checking $2 presence... " >&6; }
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_cpp "$LINENO"; then :
1715 ac_header_preproc=yes
1716 else
1717 ac_header_preproc=no
1719 rm -f conftest.err conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1721 $as_echo "$ac_header_preproc" >&6; }
1723 # So? What about this header?
1724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1725 yes:no: )
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1727 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1729 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1731 no:yes:* )
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1733 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1735 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1737 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1739 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1741 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 esac
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 eval "$3=\$ac_header_compiler"
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_check_header_mongrel
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1763 ac_fn_c_try_run ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1774 ac_status=$?
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1784 ac_status=$?
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=$ac_status
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 return $ac_retval
1799 } # ac_fn_c_try_run
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820 else
1821 eval "$3=no"
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_header_compile
1832 # ac_fn_c_check_func LINENO FUNC VAR
1833 # ----------------------------------
1834 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1835 ac_fn_c_check_func ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847 #define $2 innocuous_$2
1849 /* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1854 #ifdef __STDC__
1855 # include <limits.h>
1856 #else
1857 # include <assert.h>
1858 #endif
1860 #undef $2
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865 #ifdef __cplusplus
1866 extern "C"
1867 #endif
1868 char $2 ();
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1873 choke me
1874 #endif
1877 main ()
1879 return $2 ();
1881 return 0;
1883 _ACEOF
1884 if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1892 eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_func
1899 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1900 # --------------------------------------------
1901 # Tries to find the compile-time value of EXPR in a program that includes
1902 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1903 # computed
1904 ac_fn_c_compute_int ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if test "$cross_compiling" = yes; then
1908 # Depending upon the size, compute the lo and hi bounds.
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1913 main ()
1915 static int test_array [1 - 2 * !(($2) >= 0)];
1916 test_array [0] = 0
1919 return 0;
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_lo=0 ac_mid=0
1924 while :; do
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1932 test_array [0] = 0
1935 return 0;
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=$ac_mid; break
1940 else
1941 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1942 if test $ac_lo -le $ac_mid; then
1943 ac_lo= ac_hi=
1944 break
1946 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 static int test_array [1 - 2 * !(($2) < 0)];
1958 test_array [0] = 0
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=-1 ac_mid=-1
1966 while :; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1971 main ()
1973 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1974 test_array [0] = 0
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=$ac_mid; break
1982 else
1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1984 if test $ac_mid -le $ac_hi; then
1985 ac_lo= ac_hi=
1986 break
1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 done
1992 else
1993 ac_lo= ac_hi=
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 # Binary search between lo and hi bounds.
1999 while test "x$ac_lo" != "x$ac_hi"; do
2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid
2016 else
2017 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 done
2021 case $ac_lo in #((
2022 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2023 '') ac_retval=1 ;;
2024 esac
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2029 static long int longval () { return $2; }
2030 static unsigned long int ulongval () { return $2; }
2031 #include <stdio.h>
2032 #include <stdlib.h>
2034 main ()
2037 FILE *f = fopen ("conftest.val", "w");
2038 if (! f)
2039 return 1;
2040 if (($2) < 0)
2042 long int i = longval ();
2043 if (i != ($2))
2044 return 1;
2045 fprintf (f, "%ld", i);
2047 else
2049 unsigned long int i = ulongval ();
2050 if (i != ($2))
2051 return 1;
2052 fprintf (f, "%lu", i);
2054 /* Do not output a trailing newline, as this causes \r\n confusion
2055 on some platforms. */
2056 return ferror (f) || fclose (f) != 0;
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_run "$LINENO"; then :
2063 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2064 else
2065 ac_retval=1
2067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2068 conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f conftest.val
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 return $ac_retval
2075 } # ac_fn_c_compute_int
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 if (sizeof ($2))
2097 return 0;
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 if (sizeof (($2)))
2110 return 0;
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2117 else
2118 eval "$3=yes"
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 } # ac_fn_c_check_type
2131 # ac_fn_c_check_decl LINENO SYMBOL VAR
2132 # ------------------------------------
2133 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2134 ac_fn_c_check_decl ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2138 $as_echo_n "checking whether $2 is declared... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 #ifndef $2
2149 (void) $2;
2150 #endif
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$3=yes"
2158 else
2159 eval "$3=no"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 } # ac_fn_c_check_decl
2169 cat >config.log <<_ACEOF
2170 This file contains any messages produced by compilers while
2171 running configure, to aid debugging if configure makes a mistake.
2173 It was created by $as_me, which was
2174 generated by GNU Autoconf 2.64. Invocation command line was
2176 $ $0 $@
2178 _ACEOF
2179 exec 5>>config.log
2181 cat <<_ASUNAME
2182 ## --------- ##
2183 ## Platform. ##
2184 ## --------- ##
2186 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2187 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2188 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2189 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2190 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2193 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2195 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2196 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2197 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2198 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2199 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2200 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2201 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2203 _ASUNAME
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 $as_echo "PATH: $as_dir"
2211 done
2212 IFS=$as_save_IFS
2214 } >&5
2216 cat >&5 <<_ACEOF
2219 ## ----------- ##
2220 ## Core tests. ##
2221 ## ----------- ##
2223 _ACEOF
2226 # Keep a trace of the command line.
2227 # Strip out --no-create and --no-recursion so they do not pile up.
2228 # Strip out --silent because we don't want to record it for future runs.
2229 # Also quote any args containing shell meta-characters.
2230 # Make two passes to allow for proper duplicate-argument suppression.
2231 ac_configure_args=
2232 ac_configure_args0=
2233 ac_configure_args1=
2234 ac_must_keep_next=false
2235 for ac_pass in 1 2
2237 for ac_arg
2239 case $ac_arg in
2240 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2242 | -silent | --silent | --silen | --sile | --sil)
2243 continue ;;
2244 *\'*)
2245 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 case $ac_pass in
2248 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 as_fn_append ac_configure_args1 " '$ac_arg'"
2251 if test $ac_must_keep_next = true; then
2252 ac_must_keep_next=false # Got value, back to normal.
2253 else
2254 case $ac_arg in
2255 *=* | --config-cache | -C | -disable-* | --disable-* \
2256 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2257 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2258 | -with-* | --with-* | -without-* | --without-* | --x)
2259 case "$ac_configure_args0 " in
2260 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2261 esac
2263 -* ) ac_must_keep_next=true ;;
2264 esac
2266 as_fn_append ac_configure_args " '$ac_arg'"
2268 esac
2269 done
2270 done
2271 { ac_configure_args0=; unset ac_configure_args0;}
2272 { ac_configure_args1=; unset ac_configure_args1;}
2274 # When interrupted or exit'd, cleanup temporary files, and complete
2275 # config.log. We remove comments because anyway the quotes in there
2276 # would cause problems or look ugly.
2277 # WARNING: Use '\'' to represent an apostrophe within the trap.
2278 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2279 trap 'exit_status=$?
2280 # Save into config.log some information that might help in debugging.
2282 echo
2284 cat <<\_ASBOX
2285 ## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##
2288 _ASBOX
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317 esac |
2318 sort
2320 echo
2322 cat <<\_ASBOX
2323 ## ----------------- ##
2324 ## Output variables. ##
2325 ## ----------------- ##
2326 _ASBOX
2327 echo
2328 for ac_var in $ac_subst_vars
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2338 if test -n "$ac_subst_files"; then
2339 cat <<\_ASBOX
2340 ## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##
2343 _ASBOX
2344 echo
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2356 if test -s confdefs.h; then
2357 cat <<\_ASBOX
2358 ## ----------- ##
2359 ## confdefs.h. ##
2360 ## ----------- ##
2361 _ASBOX
2362 echo
2363 cat confdefs.h
2364 echo
2366 test "$ac_signal" != 0 &&
2367 $as_echo "$as_me: caught signal $ac_signal"
2368 $as_echo "$as_me: exit $exit_status"
2369 } >&5
2370 rm -f core *.core core.conftest.* &&
2371 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 exit $exit_status
2374 for ac_signal in 1 2 13 15; do
2375 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2376 done
2377 ac_signal=0
2379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2380 rm -f -r conftest* confdefs.h
2382 $as_echo "/* confdefs.h */" > confdefs.h
2384 # Predefined preprocessor variables.
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 _ACEOF
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 _ACEOF
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 _ACEOF
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_URL "$PACKAGE_URL"
2408 _ACEOF
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2413 ac_site_file1=NONE
2414 ac_site_file2=NONE
2415 if test -n "$CONFIG_SITE"; then
2416 ac_site_file1=$CONFIG_SITE
2417 elif test "x$prefix" != xNONE; then
2418 ac_site_file1=$prefix/share/config.site
2419 ac_site_file2=$prefix/etc/config.site
2420 else
2421 ac_site_file1=$ac_default_prefix/share/config.site
2422 ac_site_file2=$ac_default_prefix/etc/config.site
2424 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 test "x$ac_site_file" = xNONE && continue
2427 if test -r "$ac_site_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2429 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2430 sed 's/^/| /' "$ac_site_file" >&5
2431 . "$ac_site_file"
2433 done
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special
2437 # files actually), so we avoid doing that.
2438 if test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2452 # Check that the precious variables saved in the cache have kept the same
2453 # value.
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2501 done
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 ac_aux_dir=
2526 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527 for ac_t in install-sh install.sh shtool; do
2528 if test -f "$ac_dir/$ac_t"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/$ac_t -c"
2531 break 2
2533 done
2534 done
2535 if test -z "$ac_aux_dir"; then
2536 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2548 # Make sure we can run config.sub.
2549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2550 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2553 $as_echo_n "checking build system type... " >&6; }
2554 if test "${ac_cv_build+set}" = set; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 ac_build_alias=$build_alias
2558 test "x$ac_build_alias" = x &&
2559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2560 test "x$ac_build_alias" = x &&
2561 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2563 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2567 $as_echo "$ac_cv_build" >&6; }
2568 case $ac_cv_build in
2569 *-*-*) ;;
2570 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2571 esac
2572 build=$ac_cv_build
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_build
2575 shift
2576 build_cpu=$1
2577 build_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 build_os=$*
2582 IFS=$ac_save_IFS
2583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2587 $as_echo_n "checking host system type... " >&6; }
2588 if test "${ac_cv_host+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test "x$host_alias" = x; then
2592 ac_cv_host=$ac_cv_build
2593 else
2594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2595 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2600 $as_echo "$ac_cv_host" >&6; }
2601 case $ac_cv_host in
2602 *-*-*) ;;
2603 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2604 esac
2605 host=$ac_cv_host
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_host
2608 shift
2609 host_cpu=$1
2610 host_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 host_os=$*
2615 IFS=$ac_save_IFS
2616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2620 $as_echo_n "checking target system type... " >&6; }
2621 if test "${ac_cv_target+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test "x$target_alias" = x; then
2625 ac_cv_target=$ac_cv_host
2626 else
2627 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2628 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2633 $as_echo "$ac_cv_target" >&6; }
2634 case $ac_cv_target in
2635 *-*-*) ;;
2636 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2637 esac
2638 target=$ac_cv_target
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_target
2641 shift
2642 target_cpu=$1
2643 target_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 target_os=$*
2648 IFS=$ac_save_IFS
2649 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2652 # The aliases save the names the user supplied, while $host etc.
2653 # will get canonicalized.
2654 test -n "$target_alias" &&
2655 test "$program_prefix$program_suffix$program_transform_name" = \
2656 NONENONEs,x,x, &&
2657 program_prefix=${target_alias}-
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2685 done
2686 done
2687 IFS=$as_save_IFS
2691 CC=$ac_cv_prog_CC
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2702 if test -z "$ac_cv_prog_CC"; then
2703 ac_ct_CC=$CC
2704 # Extract the first word of "gcc", so it can be a program name with args.
2705 set dummy gcc; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_ac_ct_CC="gcc"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2725 done
2726 done
2727 IFS=$as_save_IFS
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734 $as_echo "$ac_ct_CC" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2748 esac
2749 CC=$ac_ct_CC
2751 else
2752 CC="$ac_cv_prog_CC"
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}cc; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="${ac_tool_prefix}cc"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2778 done
2779 done
2780 IFS=$as_save_IFS
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc; ac_word=$2
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then :
2802 $as_echo_n "(cached) " >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 ac_prog_rejected=no
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2817 continue
2819 ac_cv_prog_CC="cc"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2825 IFS=$as_save_IFS
2827 if test $ac_prog_rejected = yes; then
2828 # We found a bogon in the path, so make sure we never use it.
2829 set dummy $ac_cv_prog_CC
2830 shift
2831 if test $# != 0; then
2832 # We chose a different compiler from the bogus one.
2833 # However, it has the same basename, so the bogon will be chosen
2834 # first if we set CC to just the basename; use the full file name.
2835 shift
2836 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$CC"; then
2853 if test -n "$ac_tool_prefix"; then
2854 for ac_prog in cl.exe
2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2879 IFS=$as_save_IFS
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2893 test -n "$CC" && break
2894 done
2896 if test -z "$CC"; then
2897 ac_ct_CC=$CC
2898 for ac_prog in cl.exe
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_CC="$ac_prog"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2937 test -n "$ac_ct_CC" && break
2938 done
2940 if test "x$ac_ct_CC" = x; then
2941 CC=""
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2948 esac
2949 CC=$ac_ct_CC
2956 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error "no acceptable C compiler found in \$PATH
2959 See \`config.log' for more details." "$LINENO" 5; }
2961 # Provide some information about the compiler.
2962 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2963 set X $ac_compile
2964 ac_compiler=$2
2965 for ac_option in --version -v -V -qversion; do
2966 { { ac_try="$ac_compiler $ac_option >&5"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2974 ac_status=$?
2975 if test -s conftest.err; then
2976 sed '10a\
2977 ... rest of stderr output deleted ...
2978 10q' conftest.err >conftest.er1
2979 cat conftest.er1 >&5
2980 rm -f conftest.er1 conftest.err
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }
2984 done
2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2990 main ()
2994 return 0;
2996 _ACEOF
2997 ac_clean_files_save=$ac_clean_files
2998 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2999 # Try to create an executable without -o first, disregard a.out.
3000 # It will help us diagnose broken compilers, and finding out an intuition
3001 # of exeext.
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3003 $as_echo_n "checking for C compiler default output file name... " >&6; }
3004 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006 # The possible output files:
3007 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009 ac_rmfiles=
3010 for ac_file in $ac_files
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3014 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3015 esac
3016 done
3017 rm -f $ac_rmfiles
3019 if { { ac_try="$ac_link_default"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link_default") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }; then :
3030 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3031 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3032 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3033 # so that the user can short-circuit this test for compilers unknown to
3034 # Autoconf.
3035 for ac_file in $ac_files ''
3037 test -f "$ac_file" || continue
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041 [ab].out )
3042 # We found the default executable, but exeext='' is most
3043 # certainly right.
3044 break;;
3045 *.* )
3046 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047 then :; else
3048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 # We set ac_cv_exeext here because the later test for it is not
3051 # safe: cross compilers may not add the suffix if given an `-o'
3052 # argument, so we may need to know it at that point already.
3053 # Even if this section looks crufty: it has the advantage of
3054 # actually working.
3055 break;;
3057 break;;
3058 esac
3059 done
3060 test "$ac_cv_exeext" = no && ac_cv_exeext=
3062 else
3063 ac_file=''
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3066 $as_echo "$ac_file" >&6; }
3067 if test -z "$ac_file"; then :
3068 $as_echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 { as_fn_set_status 77
3074 as_fn_error "C compiler cannot create executables
3075 See \`config.log' for more details." "$LINENO" 5; }; }
3077 ac_exeext=$ac_cv_exeext
3079 # Check that the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3082 $as_echo_n "checking whether the C compiler works... " >&6; }
3083 # If not cross compiling, check that we can run a simple program.
3084 if test "$cross_compiling" != yes; then
3085 if { ac_try='./$ac_file'
3086 { { case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091 $as_echo "$ac_try_echo"; } >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; }; then
3096 cross_compiling=no
3097 else
3098 if test "$cross_compiling" = maybe; then
3099 cross_compiling=yes
3100 else
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error "cannot run C compiled programs.
3104 If you meant to cross compile, use \`--host'.
3105 See \`config.log' for more details." "$LINENO" 5; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3112 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3113 ac_clean_files=$ac_clean_files_save
3114 # Check that the compiler produces executables we can run. If not, either
3115 # the compiler is broken, or we cross compile.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3117 $as_echo_n "checking whether we are cross compiling... " >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3119 $as_echo "$cross_compiling" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3122 $as_echo_n "checking for suffix of executables... " >&6; }
3123 if { { ac_try="$ac_link"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3135 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3136 # work properly (i.e., refer to `conftest.exe'), while it won't with
3137 # `rm'.
3138 for ac_file in conftest.exe conftest conftest.*; do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3143 break;;
3144 * ) break;;
3145 esac
3146 done
3147 else
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error "cannot compute suffix of executables: cannot compile and link
3151 See \`config.log' for more details." "$LINENO" 5; }
3153 rm -f conftest$ac_cv_exeext
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3155 $as_echo "$ac_cv_exeext" >&6; }
3157 rm -f conftest.$ac_ext
3158 EXEEXT=$ac_cv_exeext
3159 ac_exeext=$EXEEXT
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161 $as_echo_n "checking for suffix of object files... " >&6; }
3162 if test "${ac_cv_objext+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3169 main ()
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.o conftest.obj
3177 if { { ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195 done
3196 else
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error "cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details." "$LINENO" 5; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3222 #ifndef __GNUC__
3223 choke me
3224 #endif
3227 return 0;
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_compiler_gnu=yes
3232 else
3233 ac_compiler_gnu=no
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3242 GCC=yes
3243 else
3244 GCC=
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if test "${ac_cv_prog_cc_g+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3255 ac_cv_prog_cc_g=no
3256 CFLAGS="-g"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3261 main ()
3265 return 0;
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_cv_prog_cc_g=yes
3270 else
3271 CFLAGS=""
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3285 else
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3292 main ()
3296 return 0;
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3319 else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 ac_cv_prog_cc_c89=no
3332 ac_save_CC=$CC
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <stdarg.h>
3336 #include <stdio.h>
3337 #include <sys/types.h>
3338 #include <sys/stat.h>
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3343 char **p;
3344 int i;
3346 return p[i];
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3350 char *s;
3351 va_list v;
3352 va_start (v,p);
3353 s = g (p, va_arg (v,int));
3354 va_end (v);
3355 return s;
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
3361 as 'x'. The following induces an error, until -std is added to get
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
3364 that's true only with -std. */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3369 #define FOO(x) 'x'
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 int argc;
3377 char **argv;
3379 main ()
3381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3383 return 0;
3385 _ACEOF
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 CC="$ac_save_CC $ac_arg"
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_cv_prog_cc_c89=$ac_arg
3393 rm -f core conftest.err conftest.$ac_objext
3394 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 done
3396 rm -f conftest.$ac_ext
3397 CC=$ac_save_CC
3400 # AC_CACHE_VAL
3401 case "x$ac_cv_prog_cc_c89" in
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404 $as_echo "none needed" >&6; } ;;
3405 xno)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3407 $as_echo "unsupported" >&6; } ;;
3409 CC="$CC $ac_cv_prog_cc_c89"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3412 esac
3413 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3425 $as_echo_n "checking for library containing strerror... " >&6; }
3426 if test "${ac_cv_search_strerror+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 ac_func_search_save_LIBS=$LIBS
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3433 /* Override any GCC internal prototype to avoid an error.
3434 Use char because int might match the return type of a GCC
3435 builtin and then its argument prototype would still apply. */
3436 #ifdef __cplusplus
3437 extern "C"
3438 #endif
3439 char strerror ();
3441 main ()
3443 return strerror ();
3445 return 0;
3447 _ACEOF
3448 for ac_lib in '' cposix; do
3449 if test -z "$ac_lib"; then
3450 ac_res="none required"
3451 else
3452 ac_res=-l$ac_lib
3453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3455 if ac_fn_c_try_link "$LINENO"; then :
3456 ac_cv_search_strerror=$ac_res
3458 rm -f core conftest.err conftest.$ac_objext \
3459 conftest$ac_exeext
3460 if test "${ac_cv_search_strerror+set}" = set; then :
3461 break
3463 done
3464 if test "${ac_cv_search_strerror+set}" = set; then :
3466 else
3467 ac_cv_search_strerror=no
3469 rm conftest.$ac_ext
3470 LIBS=$ac_func_search_save_LIBS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3473 $as_echo "$ac_cv_search_strerror" >&6; }
3474 ac_res=$ac_cv_search_strerror
3475 if test "$ac_res" != no; then :
3476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3481 am__api_version='1.11'
3483 # Find a good install program. We prefer a C program (faster),
3484 # so one script is as good as another. But avoid the broken or
3485 # incompatible versions:
3486 # SysV /etc/install, /usr/sbin/install
3487 # SunOS /usr/etc/install
3488 # IRIX /sbin/install
3489 # AIX /bin/install
3490 # AmigaOS /C/install, which installs bootblocks on floppy discs
3491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3494 # OS/2's system install, which has a completely different semantic
3495 # ./install, which can be erroneously created by make from ./install.sh.
3496 # Reject install programs that cannot install multiple files.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3498 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3499 if test -z "$INSTALL"; then
3500 if test "${ac_cv_path_install+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 # Account for people who put trailing slashes in PATH elements.
3509 case $as_dir/ in #((
3510 ./ | .// | /[cC]/* | \
3511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3512 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3513 /usr/ucb/* ) ;;
3515 # OSF1 and SCO ODT 3.0 have their own names for install.
3516 # Don't use installbsd from OSF since it installs stuff as root
3517 # by default.
3518 for ac_prog in ginstall scoinst install; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3521 if test $ac_prog = install &&
3522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523 # AIX install. It has an incompatible calling convention.
3525 elif test $ac_prog = install &&
3526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # program-specific install script used by HP pwplus--don't use.
3529 else
3530 rm -rf conftest.one conftest.two conftest.dir
3531 echo one > conftest.one
3532 echo two > conftest.two
3533 mkdir conftest.dir
3534 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3535 test -s conftest.one && test -s conftest.two &&
3536 test -s conftest.dir/conftest.one &&
3537 test -s conftest.dir/conftest.two
3538 then
3539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3540 break 3
3544 done
3545 done
3547 esac
3549 done
3550 IFS=$as_save_IFS
3552 rm -rf conftest.one conftest.two conftest.dir
3555 if test "${ac_cv_path_install+set}" = set; then
3556 INSTALL=$ac_cv_path_install
3557 else
3558 # As a last resort, use the slow shell script. Don't cache a
3559 # value for INSTALL within a source directory, because that will
3560 # break other packages using the cache if that directory is
3561 # removed, or if the value is a relative name.
3562 INSTALL=$ac_install_sh
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3566 $as_echo "$INSTALL" >&6; }
3568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3569 # It thinks the first close brace ends the variable substitution.
3570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3577 $as_echo_n "checking whether build environment is sane... " >&6; }
3578 # Just in case
3579 sleep 1
3580 echo timestamp > conftest.file
3581 # Reject unsafe characters in $srcdir or the absolute working directory
3582 # name. Accept space and tab only in the latter.
3583 am_lf='
3585 case `pwd` in
3586 *[\\\"\#\$\&\'\`$am_lf]*)
3587 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3588 esac
3589 case $srcdir in
3590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3591 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3592 esac
3594 # Do `set' in a subshell so we don't clobber the current shell's
3595 # arguments. Must try -L first in case configure is actually a
3596 # symlink; some systems play weird games with the mod time of symlinks
3597 # (eg FreeBSD returns the mod time of the symlink's containing
3598 # directory).
3599 if (
3600 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3601 if test "$*" = "X"; then
3602 # -L didn't work.
3603 set X `ls -t "$srcdir/configure" conftest.file`
3605 rm -f conftest.file
3606 if test "$*" != "X $srcdir/configure conftest.file" \
3607 && test "$*" != "X conftest.file $srcdir/configure"; then
3609 # If neither matched, then we have a broken ls. This can happen
3610 # if, for instance, CONFIG_SHELL is bash and it inherits a
3611 # broken ls alias from the environment. This has actually
3612 # happened. Such a system could not be considered "sane".
3613 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3614 alias in your environment" "$LINENO" 5
3617 test "$2" = conftest.file
3619 then
3620 # Ok.
3622 else
3623 as_fn_error "newly created file is older than distributed files!
3624 Check your system clock" "$LINENO" 5
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3628 test "$program_prefix" != NONE &&
3629 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3630 # Use a double $ so make ignores it.
3631 test "$program_suffix" != NONE &&
3632 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3633 # Double any \ or $.
3634 # By default was `s,x,x', remove it if useless.
3635 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3636 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3638 # expand $ac_aux_dir to an absolute path
3639 am_aux_dir=`cd $ac_aux_dir && pwd`
3641 if test x"${MISSING+set}" != xset; then
3642 case $am_aux_dir in
3643 *\ * | *\ *)
3644 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3646 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3647 esac
3649 # Use eval to expand $SHELL
3650 if eval "$MISSING --run true"; then
3651 am_missing_run="$MISSING --run "
3652 else
3653 am_missing_run=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3655 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3658 if test x"${install_sh}" != xset; then
3659 case $am_aux_dir in
3660 *\ * | *\ *)
3661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3663 install_sh="\${SHELL} $am_aux_dir/install-sh"
3664 esac
3667 # Installed binaries are usually stripped using `strip' when the user
3668 # run `make install-strip'. However `strip' might not be the right
3669 # tool to use in cross-compilation environments, therefore Automake
3670 # will honor the `STRIP' environment variable to overrule this program.
3671 if test "$cross_compiling" != no; then
3672 if test -n "$ac_tool_prefix"; then
3673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3674 set dummy ${ac_tool_prefix}strip; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if test "${ac_cv_prog_STRIP+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$STRIP"; then
3681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3700 STRIP=$ac_cv_prog_STRIP
3701 if test -n "$STRIP"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3703 $as_echo "$STRIP" >&6; }
3704 else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3711 if test -z "$ac_cv_prog_STRIP"; then
3712 ac_ct_STRIP=$STRIP
3713 # Extract the first word of "strip", so it can be a program name with args.
3714 set dummy strip; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -n "$ac_ct_STRIP"; then
3721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_prog_ac_ct_STRIP="strip"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3734 done
3735 done
3736 IFS=$as_save_IFS
3740 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3741 if test -n "$ac_ct_STRIP"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3743 $as_echo "$ac_ct_STRIP" >&6; }
3744 else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3749 if test "x$ac_ct_STRIP" = x; then
3750 STRIP=":"
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758 STRIP=$ac_ct_STRIP
3760 else
3761 STRIP="$ac_cv_prog_STRIP"
3765 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3768 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3769 if test -z "$MKDIR_P"; then
3770 if test "${ac_cv_path_mkdir+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in mkdir gmkdir; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3781 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3782 'mkdir (GNU coreutils) '* | \
3783 'mkdir (coreutils) '* | \
3784 'mkdir (fileutils) '4.1*)
3785 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3786 break 3;;
3787 esac
3788 done
3789 done
3790 done
3791 IFS=$as_save_IFS
3795 if test "${ac_cv_path_mkdir+set}" = set; then
3796 MKDIR_P="$ac_cv_path_mkdir -p"
3797 else
3798 # As a last resort, use the slow shell script. Don't cache a
3799 # value for MKDIR_P within a source directory, because that will
3800 # break other packages using the cache if that directory is
3801 # removed, or if the value is a relative name.
3802 test -d ./--version && rmdir ./--version
3803 MKDIR_P="$ac_install_sh -d"
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3807 $as_echo "$MKDIR_P" >&6; }
3809 mkdir_p="$MKDIR_P"
3810 case $mkdir_p in
3811 [\\/$]* | ?:[\\/]*) ;;
3812 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3813 esac
3815 for ac_prog in gawk mawk nawk awk
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if test "${ac_cv_prog_AWK+set}" = set; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -n "$AWK"; then
3825 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 ac_cv_prog_AWK="$ac_prog"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3840 IFS=$as_save_IFS
3844 AWK=$ac_cv_prog_AWK
3845 if test -n "$AWK"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3847 $as_echo "$AWK" >&6; }
3848 else
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3854 test -n "$AWK" && break
3855 done
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3858 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3859 set x ${MAKE-make}
3860 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3861 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 cat >conftest.make <<\_ACEOF
3865 SHELL = /bin/sh
3866 all:
3867 @echo '@@@%%%=$(MAKE)=@@@%%%'
3868 _ACEOF
3869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3870 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3871 *@@@%%%=?*=@@@%%%*)
3872 eval ac_cv_prog_make_${ac_make}_set=yes;;
3874 eval ac_cv_prog_make_${ac_make}_set=no;;
3875 esac
3876 rm -f conftest.make
3878 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880 $as_echo "yes" >&6; }
3881 SET_MAKE=
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3885 SET_MAKE="MAKE=${MAKE-make}"
3888 rm -rf .tst 2>/dev/null
3889 mkdir .tst 2>/dev/null
3890 if test -d .tst; then
3891 am__leading_dot=.
3892 else
3893 am__leading_dot=_
3895 rmdir .tst 2>/dev/null
3897 DEPDIR="${am__leading_dot}deps"
3899 ac_config_commands="$ac_config_commands depfiles"
3902 am_make=${MAKE-make}
3903 cat > confinc << 'END'
3904 am__doit:
3905 @echo this is the am__doit target
3906 .PHONY: am__doit
3908 # If we don't find an include directive, just comment out the code.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3910 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3911 am__include="#"
3912 am__quote=
3913 _am_result=none
3914 # First try GNU make style include.
3915 echo "include confinc" > confmf
3916 # Ignore all kinds of additional output from `make'.
3917 case `$am_make -s -f confmf 2> /dev/null` in #(
3918 *the\ am__doit\ target*)
3919 am__include=include
3920 am__quote=
3921 _am_result=GNU
3923 esac
3924 # Now try BSD make style include.
3925 if test "$am__include" = "#"; then
3926 echo '.include "confinc"' > confmf
3927 case `$am_make -s -f confmf 2> /dev/null` in #(
3928 *the\ am__doit\ target*)
3929 am__include=.include
3930 am__quote="\""
3931 _am_result=BSD
3933 esac
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3938 $as_echo "$_am_result" >&6; }
3939 rm -f confinc confmf
3941 # Check whether --enable-dependency-tracking was given.
3942 if test "${enable_dependency_tracking+set}" = set; then :
3943 enableval=$enable_dependency_tracking;
3946 if test "x$enable_dependency_tracking" != xno; then
3947 am_depcomp="$ac_aux_dir/depcomp"
3948 AMDEPBACKSLASH='\'
3950 if test "x$enable_dependency_tracking" != xno; then
3951 AMDEP_TRUE=
3952 AMDEP_FALSE='#'
3953 else
3954 AMDEP_TRUE='#'
3955 AMDEP_FALSE=
3959 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3960 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3961 # is not polluted with repeated "-I."
3962 am__isrc=' -I$(srcdir)'
3963 # test to see if srcdir already configured
3964 if test -f $srcdir/config.status; then
3965 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3969 # test whether we have cygpath
3970 if test -z "$CYGPATH_W"; then
3971 if (cygpath --version) >/dev/null 2>/dev/null; then
3972 CYGPATH_W='cygpath -w'
3973 else
3974 CYGPATH_W=echo
3979 # Define the identity of the package.
3980 PACKAGE=bfd
3981 VERSION=2.20.51
3984 cat >>confdefs.h <<_ACEOF
3985 #define PACKAGE "$PACKAGE"
3986 _ACEOF
3989 cat >>confdefs.h <<_ACEOF
3990 #define VERSION "$VERSION"
3991 _ACEOF
3993 # Some tools Automake needs.
3995 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3998 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4001 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4007 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4009 # We need awk for the "check" target. The system "awk" is bad on
4010 # some platforms.
4011 # Always define AMTAR for backward compatibility.
4013 AMTAR=${AMTAR-"${am_missing_run}tar"}
4015 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4020 depcc="$CC" am_compiler_list=
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4023 $as_echo_n "checking dependency style of $depcc... " >&6; }
4024 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
4031 # making a dummy file named `D' -- because `-MD' means `put the output
4032 # in D'.
4033 mkdir conftest.dir
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4037 cd conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4043 # directory.
4044 mkdir sub
4046 am_cv_CC_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4050 am__universal=false
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4053 esac
4055 for depmode in $am_compiler_list; do
4056 # Setup a source with many dependencies, because some compilers
4057 # like to wrap large dependency lists on column 80 (with \), and
4058 # we should not choose a depcomp mode which is confused by this.
4060 # We need to recreate these files for each test, as the compiler may
4061 # overwrite some of them when testing with obscure command lines.
4062 # This happens at least with the AIX C compiler.
4063 : > sub/conftest.c
4064 for i in 1 2 3 4 5 6; do
4065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4067 # Solaris 8's {/usr,}/bin/sh.
4068 touch sub/conftst$i.h
4069 done
4070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073 # mode. It turns out that the SunPro C++ compiler does not properly
4074 # handle `-M -o', and we need to detect this. Also, some Intel
4075 # versions had trouble with output in subdirs
4076 am__obj=sub/conftest.${OBJEXT-o}
4077 am__minus_obj="-o $am__obj"
4078 case $depmode in
4079 gcc)
4080 # This depmode causes a compiler race in universal mode.
4081 test "$am__universal" = false || continue
4083 nosideeffect)
4084 # after this tag, mechanisms are not by side-effect, so they'll
4085 # only be used when explicitly requested
4086 if test "x$enable_dependency_tracking" = xyes; then
4087 continue
4088 else
4089 break
4092 msvisualcpp | msvcmsys)
4093 # This compiler won't grok `-c -o', but also, the minuso test has
4094 # not run yet. These depmodes are late enough in the game, and
4095 # so weak that their functioning should not be impacted.
4096 am__obj=conftest.${OBJEXT-o}
4097 am__minus_obj=
4099 none) break ;;
4100 esac
4101 if depmode=$depmode \
4102 source=sub/conftest.c object=$am__obj \
4103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4105 >/dev/null 2>conftest.err &&
4106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CC_dependencies_compiler_type=$depmode
4120 break
4123 done
4125 cd ..
4126 rm -rf conftest.dir
4127 else
4128 am_cv_CC_dependencies_compiler_type=none
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4137 test "x$enable_dependency_tracking" != xno \
4138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4139 am__fastdepCC_TRUE=
4140 am__fastdepCC_FALSE='#'
4141 else
4142 am__fastdepCC_TRUE='#'
4143 am__fastdepCC_FALSE=
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}ar; ac_word=$2
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153 $as_echo_n "checking for $ac_word... " >&6; }
4154 if test "${ac_cv_prog_AR+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$AR"; then
4158 ac_cv_prog_AR="$AR" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_prog_AR="${ac_tool_prefix}ar"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4173 IFS=$as_save_IFS
4177 AR=$ac_cv_prog_AR
4178 if test -n "$AR"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4180 $as_echo "$AR" >&6; }
4181 else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4188 if test -z "$ac_cv_prog_AR"; then
4189 ac_ct_AR=$AR
4190 # Extract the first word of "ar", so it can be a program name with args.
4191 set dummy ar; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -n "$ac_ct_AR"; then
4198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_ac_ct_AR="ar"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4211 done
4212 done
4213 IFS=$as_save_IFS
4217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4218 if test -n "$ac_ct_AR"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4220 $as_echo "$ac_ct_AR" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4226 if test "x$ac_ct_AR" = x; then
4227 AR=""
4228 else
4229 case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4234 esac
4235 AR=$ac_ct_AR
4237 else
4238 AR="$ac_cv_prog_AR"
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$RANLIB"; then
4250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 RANLIB=$ac_cv_prog_RANLIB
4270 if test -n "$RANLIB"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4272 $as_echo "$RANLIB" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4280 if test -z "$ac_cv_prog_RANLIB"; then
4281 ac_ct_RANLIB=$RANLIB
4282 # Extract the first word of "ranlib", so it can be a program name with args.
4283 set dummy ranlib; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$ac_ct_RANLIB"; then
4290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_ac_ct_RANLIB="ranlib"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4310 if test -n "$ac_ct_RANLIB"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4312 $as_echo "$ac_ct_RANLIB" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4318 if test "x$ac_ct_RANLIB" = x; then
4319 RANLIB=":"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322 yes:)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325 ac_tool_warned=yes ;;
4326 esac
4327 RANLIB=$ac_ct_RANLIB
4329 else
4330 RANLIB="$ac_cv_prog_RANLIB"
4334 # Check whether --enable-shared was given.
4335 if test "${enable_shared+set}" = set; then :
4336 enableval=$enable_shared; p=${PACKAGE-default}
4337 case $enableval in
4338 yes) enable_shared=yes ;;
4339 no) enable_shared=no ;;
4341 enable_shared=no
4342 # Look at the argument we got. We use all the common list separators.
4343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4344 for pkg in $enableval; do
4345 IFS="$lt_save_ifs"
4346 if test "X$pkg" = "X$p"; then
4347 enable_shared=yes
4349 done
4350 IFS="$lt_save_ifs"
4352 esac
4353 else
4354 enable_shared=no
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if test "${ac_cv_prog_CC+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -n "$CC"; then
4380 ac_cv_prog_CC="$CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 CC=$ac_cv_prog_CC
4400 if test -n "$CC"; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4402 $as_echo "$CC" >&6; }
4403 else
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4410 if test -z "$ac_cv_prog_CC"; then
4411 ac_ct_CC=$CC
4412 # Extract the first word of "gcc", so it can be a program name with args.
4413 set dummy gcc; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$ac_ct_CC"; then
4420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_ac_ct_CC="gcc"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4440 if test -n "$ac_ct_CC"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4442 $as_echo "$ac_ct_CC" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4448 if test "x$ac_ct_CC" = x; then
4449 CC=""
4450 else
4451 case $cross_compiling:$ac_tool_warned in
4452 yes:)
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455 ac_tool_warned=yes ;;
4456 esac
4457 CC=$ac_ct_CC
4459 else
4460 CC="$ac_cv_prog_CC"
4463 if test -z "$CC"; then
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}cc; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_CC+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_CC="${ac_tool_prefix}cc"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 $as_echo "$CC" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4504 if test -z "$CC"; then
4505 # Extract the first word of "cc", so it can be a program name with args.
4506 set dummy cc; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_CC+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -n "$CC"; then
4513 ac_cv_prog_CC="$CC" # Let the user override the test.
4514 else
4515 ac_prog_rejected=no
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4524 ac_prog_rejected=yes
4525 continue
4527 ac_cv_prog_CC="cc"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4535 if test $ac_prog_rejected = yes; then
4536 # We found a bogon in the path, so make sure we never use it.
4537 set dummy $ac_cv_prog_CC
4538 shift
4539 if test $# != 0; then
4540 # We chose a different compiler from the bogus one.
4541 # However, it has the same basename, so the bogon will be chosen
4542 # first if we set CC to just the basename; use the full file name.
4543 shift
4544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552 $as_echo "$CC" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 for ac_prog in cl.exe
4564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_CC+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$CC"; then
4572 ac_cv_prog_CC="$CC" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 CC=$ac_cv_prog_CC
4592 if test -n "$CC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4594 $as_echo "$CC" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4601 test -n "$CC" && break
4602 done
4604 if test -z "$CC"; then
4605 ac_ct_CC=$CC
4606 for ac_prog in cl.exe
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609 set dummy $ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_CC"; then
4616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ac_ct_CC="$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4636 if test -n "$ac_ct_CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4638 $as_echo "$ac_ct_CC" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$ac_ct_CC" && break
4646 done
4648 if test "x$ac_ct_CC" = x; then
4649 CC=""
4650 else
4651 case $cross_compiling:$ac_tool_warned in
4652 yes:)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655 ac_tool_warned=yes ;;
4656 esac
4657 CC=$ac_ct_CC
4664 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666 as_fn_error "no acceptable C compiler found in \$PATH
4667 See \`config.log' for more details." "$LINENO" 5; }
4669 # Provide some information about the compiler.
4670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4671 set X $ac_compile
4672 ac_compiler=$2
4673 for ac_option in --version -v -V -qversion; do
4674 { { ac_try="$ac_compiler $ac_option >&5"
4675 case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4680 $as_echo "$ac_try_echo"; } >&5
4681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4682 ac_status=$?
4683 if test -s conftest.err; then
4684 sed '10a\
4685 ... rest of stderr output deleted ...
4686 10q' conftest.err >conftest.er1
4687 cat conftest.er1 >&5
4688 rm -f conftest.er1 conftest.err
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; }
4692 done
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4695 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4696 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4703 main ()
4705 #ifndef __GNUC__
4706 choke me
4707 #endif
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_compiler_gnu=yes
4715 else
4716 ac_compiler_gnu=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4723 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4724 if test $ac_compiler_gnu = yes; then
4725 GCC=yes
4726 else
4727 GCC=
4729 ac_test_CFLAGS=${CFLAGS+set}
4730 ac_save_CFLAGS=$CFLAGS
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4732 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4733 if test "${ac_cv_prog_cc_g+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_save_c_werror_flag=$ac_c_werror_flag
4737 ac_c_werror_flag=yes
4738 ac_cv_prog_cc_g=no
4739 CFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4744 main ()
4748 return 0;
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_prog_cc_g=yes
4753 else
4754 CFLAGS=""
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4759 main ()
4763 return 0;
4765 _ACEOF
4766 if ac_fn_c_try_compile "$LINENO"; then :
4768 else
4769 ac_c_werror_flag=$ac_save_c_werror_flag
4770 CFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4783 ac_cv_prog_cc_g=yes
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4793 $as_echo "$ac_cv_prog_cc_g" >&6; }
4794 if test "$ac_test_CFLAGS" = set; then
4795 CFLAGS=$ac_save_CFLAGS
4796 elif test $ac_cv_prog_cc_g = yes; then
4797 if test "$GCC" = yes; then
4798 CFLAGS="-g -O2"
4799 else
4800 CFLAGS="-g"
4802 else
4803 if test "$GCC" = yes; then
4804 CFLAGS="-O2"
4805 else
4806 CFLAGS=
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4811 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 ac_cv_prog_cc_c89=no
4815 ac_save_CC=$CC
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <stdarg.h>
4819 #include <stdio.h>
4820 #include <sys/types.h>
4821 #include <sys/stat.h>
4822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4823 struct buf { int x; };
4824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4825 static char *e (p, i)
4826 char **p;
4827 int i;
4829 return p[i];
4831 static char *f (char * (*g) (char **, int), char **p, ...)
4833 char *s;
4834 va_list v;
4835 va_start (v,p);
4836 s = g (p, va_arg (v,int));
4837 va_end (v);
4838 return s;
4841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4842 function prototypes and stuff, but not '\xHH' hex character constants.
4843 These don't provoke an error unfortunately, instead are silently treated
4844 as 'x'. The following induces an error, until -std is added to get
4845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4846 array size at least. It's necessary to write '\x00'==0 to get something
4847 that's true only with -std. */
4848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4851 inside strings and character constants. */
4852 #define FOO(x) 'x'
4853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4855 int test (int i, double x);
4856 struct s1 {int (*f) (int a);};
4857 struct s2 {int (*f) (double a);};
4858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4859 int argc;
4860 char **argv;
4862 main ()
4864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4866 return 0;
4868 _ACEOF
4869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4872 CC="$ac_save_CC $ac_arg"
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_prog_cc_c89=$ac_arg
4876 rm -f core conftest.err conftest.$ac_objext
4877 test "x$ac_cv_prog_cc_c89" != "xno" && break
4878 done
4879 rm -f conftest.$ac_ext
4880 CC=$ac_save_CC
4883 # AC_CACHE_VAL
4884 case "x$ac_cv_prog_cc_c89" in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4887 $as_echo "none needed" >&6; } ;;
4888 xno)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4890 $as_echo "unsupported" >&6; } ;;
4892 CC="$CC $ac_cv_prog_cc_c89"
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4895 esac
4896 if test "x$ac_cv_prog_cc_c89" != xno; then :
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4913 # On Suns, sometimes $CPP names a directory.
4914 if test -n "$CPP" && test -d "$CPP"; then
4915 CPP=
4917 if test -z "$CPP"; then
4918 if test "${ac_cv_prog_CPP+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 # Double quotes because CPP needs to be expanded
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4944 else
4945 # Broken: fails on valid input.
4946 continue
4948 rm -f conftest.err conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4964 rm -f conftest.err conftest.$ac_ext
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4970 break
4973 done
4974 ac_cv_prog_CPP=$CPP
4977 CPP=$ac_cv_prog_CPP
4978 else
4979 ac_cv_prog_CPP=$CPP
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982 $as_echo "$CPP" >&6; }
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999 Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5003 else
5004 # Broken: fails on valid input.
5005 continue
5007 rm -f conftest.err conftest.$ac_ext
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5017 continue
5018 else
5019 # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5023 rm -f conftest.err conftest.$ac_ext
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5030 else
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." "$LINENO" 5; }
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046 if test "${ac_cv_path_GREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -z "$GREP"; then
5050 ac_path_GREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in grep ggrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061 # Check for GNU ac_path_GREP and select it if it is found.
5062 # Check for GNU $ac_path_GREP
5063 case `"$ac_path_GREP" --version 2>&1` in
5064 *GNU*)
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5067 ac_count=0
5068 $as_echo_n 0123456789 >"conftest.in"
5069 while :
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'GREP' >> "conftest.nl"
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_GREP="$ac_path_GREP"
5081 ac_path_GREP_max=$ac_count
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5089 $ac_path_GREP_found && break 3
5090 done
5091 done
5092 done
5093 IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_GREP"; then
5095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 else
5098 ac_cv_path_GREP=$GREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103 $as_echo "$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108 $as_echo_n "checking for egrep... " >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5114 else
5115 if test -z "$EGREP"; then
5116 ac_path_EGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in egrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127 # Check for GNU ac_path_EGREP and select it if it is found.
5128 # Check for GNU $ac_path_EGREP
5129 case `"$ac_path_EGREP" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'EGREP' >> "conftest.nl"
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_EGREP="$ac_path_EGREP"
5147 ac_path_EGREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5155 $ac_path_EGREP_found && break 3
5156 done
5157 done
5158 done
5159 IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_EGREP"; then
5161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5163 else
5164 ac_cv_path_EGREP=$EGREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170 $as_echo "$ac_cv_path_EGREP" >&6; }
5171 EGREP="$ac_cv_path_EGREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175 $as_echo_n "checking for ANSI C header files... " >&6; }
5176 if test "${ac_cv_header_stdc+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <stdlib.h>
5182 #include <stdarg.h>
5183 #include <string.h>
5184 #include <float.h>
5187 main ()
5191 return 0;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_cv_header_stdc=yes
5196 else
5197 ac_cv_header_stdc=no
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <string.h>
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "memchr" >/dev/null 2>&1; then :
5211 else
5212 ac_cv_header_stdc=no
5214 rm -f conftest*
5218 if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <stdlib.h>
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "free" >/dev/null 2>&1; then :
5228 else
5229 ac_cv_header_stdc=no
5231 rm -f conftest*
5235 if test $ac_cv_header_stdc = yes; then
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237 if test "$cross_compiling" = yes; then :
5239 else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 #include <ctype.h>
5243 #include <stdlib.h>
5244 #if ((' ' & 0x0FF) == 0x020)
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247 #else
5248 # define ISLOWER(c) \
5249 (('a' <= (c) && (c) <= 'i') \
5250 || ('j' <= (c) && (c) <= 'r') \
5251 || ('s' <= (c) && (c) <= 'z'))
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253 #endif
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5257 main ()
5259 int i;
5260 for (i = 0; i < 256; i++)
5261 if (XOR (islower (i), ISLOWER (i))
5262 || toupper (i) != TOUPPER (i))
5263 return 2;
5264 return 0;
5266 _ACEOF
5267 if ac_fn_c_try_run "$LINENO"; then :
5269 else
5270 ac_cv_header_stdc=no
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279 $as_echo "$ac_cv_header_stdc" >&6; }
5280 if test $ac_cv_header_stdc = yes; then
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288 inttypes.h stdint.h unistd.h
5289 do :
5290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5293 eval as_val=\$$as_ac_Header
5294 if test "x$as_val" = x""yes; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5297 _ACEOF
5301 done
5305 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5306 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5307 MINIX=yes
5308 else
5309 MINIX=
5313 if test "$MINIX" = yes; then
5315 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5321 $as_echo "#define _MINIX 1" >>confdefs.h
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5327 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5328 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 # define __EXTENSIONS__ 1
5335 $ac_includes_default
5337 main ()
5341 return 0;
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 ac_cv_safe_to_define___extensions__=yes
5346 else
5347 ac_cv_safe_to_define___extensions__=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5352 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5353 test $ac_cv_safe_to_define___extensions__ = yes &&
5354 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5356 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5358 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5360 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5362 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5368 case `pwd` in
5369 *\ * | *\ *)
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5371 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5372 esac
5376 macro_version='2.2.7a'
5377 macro_revision='1.3134'
5391 ltmain="$ac_aux_dir/ltmain.sh"
5393 # Backslashify metacharacters that are still active within
5394 # double-quoted strings.
5395 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5397 # Same as above, but do not quote variable references.
5398 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5400 # Sed substitution to delay expansion of an escaped shell variable in a
5401 # double_quote_subst'ed string.
5402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5404 # Sed substitution to delay expansion of an escaped single quote.
5405 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5407 # Sed substitution to avoid accidental globbing in evaled expressions
5408 no_glob_subst='s/\*/\\\*/g'
5410 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5411 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5412 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5415 $as_echo_n "checking how to print strings... " >&6; }
5416 # Test print first, because it will be a builtin if present.
5417 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5418 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5419 ECHO='print -r --'
5420 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5421 ECHO='printf %s\n'
5422 else
5423 # Use this function as a fallback that always works.
5424 func_fallback_echo ()
5426 eval 'cat <<_LTECHO_EOF
5428 _LTECHO_EOF'
5430 ECHO='func_fallback_echo'
5433 # func_echo_all arg...
5434 # Invoke $ECHO with all args, space-separated.
5435 func_echo_all ()
5437 $ECHO ""
5440 case "$ECHO" in
5441 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5442 $as_echo "printf" >&6; } ;;
5443 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5444 $as_echo "print -r" >&6; } ;;
5445 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5446 $as_echo "cat" >&6; } ;;
5447 esac
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5463 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5464 if test "${ac_cv_path_SED+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5468 for ac_i in 1 2 3 4 5 6 7; do
5469 ac_script="$ac_script$as_nl$ac_script"
5470 done
5471 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5472 { ac_script=; unset ac_script;}
5473 if test -z "$SED"; then
5474 ac_path_SED_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_prog in sed gsed; do
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5484 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5485 # Check for GNU ac_path_SED and select it if it is found.
5486 # Check for GNU $ac_path_SED
5487 case `"$ac_path_SED" --version 2>&1` in
5488 *GNU*)
5489 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5491 ac_count=0
5492 $as_echo_n 0123456789 >"conftest.in"
5493 while :
5495 cat "conftest.in" "conftest.in" >"conftest.tmp"
5496 mv "conftest.tmp" "conftest.in"
5497 cp "conftest.in" "conftest.nl"
5498 $as_echo '' >> "conftest.nl"
5499 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501 as_fn_arith $ac_count + 1 && ac_count=$as_val
5502 if test $ac_count -gt ${ac_path_SED_max-0}; then
5503 # Best one so far, save it but keep looking for a better one
5504 ac_cv_path_SED="$ac_path_SED"
5505 ac_path_SED_max=$ac_count
5507 # 10*(2^10) chars as input seems more than enough
5508 test $ac_count -gt 10 && break
5509 done
5510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5511 esac
5513 $ac_path_SED_found && break 3
5514 done
5515 done
5516 done
5517 IFS=$as_save_IFS
5518 if test -z "$ac_cv_path_SED"; then
5519 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5521 else
5522 ac_cv_path_SED=$SED
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5527 $as_echo "$ac_cv_path_SED" >&6; }
5528 SED="$ac_cv_path_SED"
5529 rm -f conftest.sed
5531 test -z "$SED" && SED=sed
5532 Xsed="$SED -e 1s/^X//"
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5545 $as_echo_n "checking for fgrep... " >&6; }
5546 if test "${ac_cv_path_FGREP+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550 then ac_cv_path_FGREP="$GREP -F"
5551 else
5552 if test -z "$FGREP"; then
5553 ac_path_FGREP_found=false
5554 # Loop through the user's path and test for each of PROGNAME-LIST
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_prog in fgrep; do
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5563 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5564 # Check for GNU ac_path_FGREP and select it if it is found.
5565 # Check for GNU $ac_path_FGREP
5566 case `"$ac_path_FGREP" --version 2>&1` in
5567 *GNU*)
5568 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5570 ac_count=0
5571 $as_echo_n 0123456789 >"conftest.in"
5572 while :
5574 cat "conftest.in" "conftest.in" >"conftest.tmp"
5575 mv "conftest.tmp" "conftest.in"
5576 cp "conftest.in" "conftest.nl"
5577 $as_echo 'FGREP' >> "conftest.nl"
5578 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5580 as_fn_arith $ac_count + 1 && ac_count=$as_val
5581 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5582 # Best one so far, save it but keep looking for a better one
5583 ac_cv_path_FGREP="$ac_path_FGREP"
5584 ac_path_FGREP_max=$ac_count
5586 # 10*(2^10) chars as input seems more than enough
5587 test $ac_count -gt 10 && break
5588 done
5589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5590 esac
5592 $ac_path_FGREP_found && break 3
5593 done
5594 done
5595 done
5596 IFS=$as_save_IFS
5597 if test -z "$ac_cv_path_FGREP"; then
5598 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5600 else
5601 ac_cv_path_FGREP=$FGREP
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5607 $as_echo "$ac_cv_path_FGREP" >&6; }
5608 FGREP="$ac_cv_path_FGREP"
5611 test -z "$GREP" && GREP=grep
5631 # Check whether --with-gnu-ld was given.
5632 if test "${with_gnu_ld+set}" = set; then :
5633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5634 else
5635 with_gnu_ld=no
5638 ac_prog=ld
5639 if test "$GCC" = yes; then
5640 # Check if gcc -print-prog-name=ld gives a path.
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5642 $as_echo_n "checking for ld used by $CC... " >&6; }
5643 case $host in
5644 *-*-mingw*)
5645 # gcc leaves a trailing carriage return which upsets mingw
5646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5649 esac
5650 case $ac_prog in
5651 # Accept absolute paths.
5652 [\\/]* | ?:[\\/]*)
5653 re_direlt='/[^/][^/]*/\.\./'
5654 # Canonicalize the pathname of ld
5655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5658 done
5659 test -z "$LD" && LD="$ac_prog"
5662 # If it fails, then pretend we aren't using GCC.
5663 ac_prog=ld
5666 # If it is relative, then search for the first ld in PATH.
5667 with_gnu_ld=unknown
5669 esac
5670 elif test "$with_gnu_ld" = yes; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5672 $as_echo_n "checking for GNU ld... " >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5675 $as_echo_n "checking for non-GNU ld... " >&6; }
5677 if test "${lt_cv_path_LD+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 if test -z "$LD"; then
5681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5682 for ac_dir in $PATH; do
5683 IFS="$lt_save_ifs"
5684 test -z "$ac_dir" && ac_dir=.
5685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5686 lt_cv_path_LD="$ac_dir/$ac_prog"
5687 # Check to see if the program is GNU ld. I'd rather use --version,
5688 # but apparently some variants of GNU ld only accept -v.
5689 # Break only if it was the GNU/non-GNU ld that we prefer.
5690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5691 *GNU* | *'with BFD'*)
5692 test "$with_gnu_ld" != no && break
5695 test "$with_gnu_ld" != yes && break
5697 esac
5699 done
5700 IFS="$lt_save_ifs"
5701 else
5702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5706 LD="$lt_cv_path_LD"
5707 if test -n "$LD"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5709 $as_echo "$LD" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5714 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5716 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5717 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5721 case `$LD -v 2>&1 </dev/null` in
5722 *GNU* | *'with BFD'*)
5723 lt_cv_prog_gnu_ld=yes
5726 lt_cv_prog_gnu_ld=no
5728 esac
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5731 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5732 with_gnu_ld=$lt_cv_prog_gnu_ld
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5743 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5744 if test "${lt_cv_path_NM+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$NM"; then
5748 # Let the user override the test.
5749 lt_cv_path_NM="$NM"
5750 else
5751 lt_nm_to_check="${ac_tool_prefix}nm"
5752 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5753 lt_nm_to_check="$lt_nm_to_check nm"
5755 for lt_tmp_nm in $lt_nm_to_check; do
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5758 IFS="$lt_save_ifs"
5759 test -z "$ac_dir" && ac_dir=.
5760 tmp_nm="$ac_dir/$lt_tmp_nm"
5761 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5762 # Check to see if the nm accepts a BSD-compat flag.
5763 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5764 # nm: unknown option "B" ignored
5765 # Tru64's nm complains that /dev/null is an invalid object file
5766 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5767 */dev/null* | *'Invalid file or object type'*)
5768 lt_cv_path_NM="$tmp_nm -B"
5769 break
5772 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5773 */dev/null*)
5774 lt_cv_path_NM="$tmp_nm -p"
5775 break
5778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5779 continue # so that we can try to find one that supports BSD flags
5781 esac
5783 esac
5785 done
5786 IFS="$lt_save_ifs"
5787 done
5788 : ${lt_cv_path_NM=no}
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5792 $as_echo "$lt_cv_path_NM" >&6; }
5793 if test "$lt_cv_path_NM" != "no"; then
5794 NM="$lt_cv_path_NM"
5795 else
5796 # Didn't find any BSD compatible name lister, look for dumpbin.
5797 if test -n "$DUMPBIN"; then :
5798 # Let the user override the test.
5799 else
5800 if test -n "$ac_tool_prefix"; then
5801 for ac_prog in dumpbin "link -dump"
5803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$DUMPBIN"; then
5811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5826 IFS=$as_save_IFS
5830 DUMPBIN=$ac_cv_prog_DUMPBIN
5831 if test -n "$DUMPBIN"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5833 $as_echo "$DUMPBIN" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5840 test -n "$DUMPBIN" && break
5841 done
5843 if test -z "$DUMPBIN"; then
5844 ac_ct_DUMPBIN=$DUMPBIN
5845 for ac_prog in dumpbin "link -dump"
5847 # Extract the first word of "$ac_prog", so it can be a program name with args.
5848 set dummy $ac_prog; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_DUMPBIN"; then
5855 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5877 $as_echo "$ac_ct_DUMPBIN" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5884 test -n "$ac_ct_DUMPBIN" && break
5885 done
5887 if test "x$ac_ct_DUMPBIN" = x; then
5888 DUMPBIN=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 DUMPBIN=$ac_ct_DUMPBIN
5900 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5901 *COFF*)
5902 DUMPBIN="$DUMPBIN -symbols"
5905 DUMPBIN=:
5907 esac
5910 if test "$DUMPBIN" != ":"; then
5911 NM="$DUMPBIN"
5914 test -z "$NM" && NM=nm
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5922 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5923 if test "${lt_cv_nm_interface+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 lt_cv_nm_interface="BSD nm"
5927 echo "int some_variable = 0;" > conftest.$ac_ext
5928 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5929 (eval "$ac_compile" 2>conftest.err)
5930 cat conftest.err >&5
5931 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5932 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5933 cat conftest.err >&5
5934 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5935 cat conftest.out >&5
5936 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5937 lt_cv_nm_interface="MS dumpbin"
5939 rm -f conftest*
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5942 $as_echo "$lt_cv_nm_interface" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5945 $as_echo_n "checking whether ln -s works... " >&6; }
5946 LN_S=$as_ln_s
5947 if test "$LN_S" = "ln -s"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5949 $as_echo "yes" >&6; }
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5952 $as_echo "no, using $LN_S" >&6; }
5955 # find the maximum length of command line arguments
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5957 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5958 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5962 teststring="ABCD"
5964 case $build_os in
5965 msdosdjgpp*)
5966 # On DJGPP, this test can blow up pretty badly due to problems in libc
5967 # (any single argument exceeding 2000 bytes causes a buffer overrun
5968 # during glob expansion). Even if it were fixed, the result of this
5969 # check would be larger than it should be.
5970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5973 gnu*)
5974 # Under GNU Hurd, this test is not required because there is
5975 # no limit to the length of command line arguments.
5976 # Libtool will interpret -1 as no limit whatsoever
5977 lt_cv_sys_max_cmd_len=-1;
5980 cygwin* | mingw* | cegcc*)
5981 # On Win9x/ME, this test blows up -- it succeeds, but takes
5982 # about 5 minutes as the teststring grows exponentially.
5983 # Worse, since 9x/ME are not pre-emptively multitasking,
5984 # you end up with a "frozen" computer, even though with patience
5985 # the test eventually succeeds (with a max line length of 256k).
5986 # Instead, let's just punt: use the minimum linelength reported by
5987 # all of the supported platforms: 8192 (on NT/2K/XP).
5988 lt_cv_sys_max_cmd_len=8192;
5991 mint*)
5992 # On MiNT this can take a long time and run out of memory.
5993 lt_cv_sys_max_cmd_len=8192;
5996 amigaos*)
5997 # On AmigaOS with pdksh, this test takes hours, literally.
5998 # So we just punt and use a minimum line length of 8192.
5999 lt_cv_sys_max_cmd_len=8192;
6002 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6003 # This has been around since 386BSD, at least. Likely further.
6004 if test -x /sbin/sysctl; then
6005 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6006 elif test -x /usr/sbin/sysctl; then
6007 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6008 else
6009 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6011 # And add a safety zone
6012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6016 interix*)
6017 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6018 lt_cv_sys_max_cmd_len=196608
6021 osf*)
6022 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6023 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6024 # nice to cause kernel panics so lets avoid the loop below.
6025 # First set a reasonable default.
6026 lt_cv_sys_max_cmd_len=16384
6028 if test -x /sbin/sysconfig; then
6029 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6030 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6031 esac
6034 sco3.2v5*)
6035 lt_cv_sys_max_cmd_len=102400
6037 sysv5* | sco5v6* | sysv4.2uw2*)
6038 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6039 if test -n "$kargmax"; then
6040 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6041 else
6042 lt_cv_sys_max_cmd_len=32768
6046 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6047 if test -n "$lt_cv_sys_max_cmd_len"; then
6048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6050 else
6051 # Make teststring a little bigger before we do anything with it.
6052 # a 1K string should be a reasonable start.
6053 for i in 1 2 3 4 5 6 7 8 ; do
6054 teststring=$teststring$teststring
6055 done
6056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6057 # If test is not a shell built-in, we'll probably end up computing a
6058 # maximum length that is only half of the actual maximum length, but
6059 # we can't tell.
6060 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6061 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6062 test $i != 17 # 1/2 MB should be enough
6064 i=`expr $i + 1`
6065 teststring=$teststring$teststring
6066 done
6067 # Only check the string length outside the loop.
6068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6069 teststring=
6070 # Add a significant safety factor because C++ compilers can tack on
6071 # massive amounts of additional arguments before passing them to the
6072 # linker. It appears as though 1/2 is a usable value.
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6076 esac
6080 if test -n $lt_cv_sys_max_cmd_len ; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6082 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6085 $as_echo "none" >&6; }
6087 max_cmd_len=$lt_cv_sys_max_cmd_len
6094 : ${CP="cp -f"}
6095 : ${MV="mv -f"}
6096 : ${RM="rm -f"}
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6099 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6100 # Try some XSI features
6101 xsi_shell=no
6102 ( _lt_dummy="a/b/c"
6103 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6104 = c,a/b,, \
6105 && eval 'test $(( 1 + 1 )) -eq 2 \
6106 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6107 && xsi_shell=yes
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6109 $as_echo "$xsi_shell" >&6; }
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6113 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6114 lt_shell_append=no
6115 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6116 >/dev/null 2>&1 \
6117 && lt_shell_append=yes
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6119 $as_echo "$lt_shell_append" >&6; }
6122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6123 lt_unset=unset
6124 else
6125 lt_unset=false
6132 # test EBCDIC or ASCII
6133 case `echo X|tr X '\101'` in
6134 A) # ASCII based system
6135 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6136 lt_SP2NL='tr \040 \012'
6137 lt_NL2SP='tr \015\012 \040\040'
6139 *) # EBCDIC based system
6140 lt_SP2NL='tr \100 \n'
6141 lt_NL2SP='tr \r\n \100\100'
6143 esac
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6154 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6155 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 lt_cv_ld_reload_flag='-r'
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6161 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6162 reload_flag=$lt_cv_ld_reload_flag
6163 case $reload_flag in
6164 "" | " "*) ;;
6165 *) reload_flag=" $reload_flag" ;;
6166 esac
6167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 case $host_os in
6169 darwin*)
6170 if test "$GCC" = yes; then
6171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6172 else
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 esac
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$OBJDUMP"; then
6195 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 OBJDUMP=$ac_cv_prog_OBJDUMP
6215 if test -n "$OBJDUMP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6217 $as_echo "$OBJDUMP" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6225 if test -z "$ac_cv_prog_OBJDUMP"; then
6226 ac_ct_OBJDUMP=$OBJDUMP
6227 # Extract the first word of "objdump", so it can be a program name with args.
6228 set dummy objdump; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$ac_ct_OBJDUMP"; then
6235 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6248 done
6249 done
6250 IFS=$as_save_IFS
6254 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6255 if test -n "$ac_ct_OBJDUMP"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6257 $as_echo "$ac_ct_OBJDUMP" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6263 if test "x$ac_ct_OBJDUMP" = x; then
6264 OBJDUMP="false"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272 OBJDUMP=$ac_ct_OBJDUMP
6274 else
6275 OBJDUMP="$ac_cv_prog_OBJDUMP"
6278 test -z "$OBJDUMP" && OBJDUMP=objdump
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6289 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6290 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 lt_cv_file_magic_cmd='$MAGIC_CMD'
6294 lt_cv_file_magic_test_file=
6295 lt_cv_deplibs_check_method='unknown'
6296 # Need to set the preceding variable on all platforms that support
6297 # interlibrary dependencies.
6298 # 'none' -- dependencies not supported.
6299 # `unknown' -- same as none, but documents that we really don't know.
6300 # 'pass_all' -- all dependencies passed with no checks.
6301 # 'test_compile' -- check by making test program.
6302 # 'file_magic [[regex]]' -- check by looking for files in library path
6303 # which responds to the $file_magic_cmd with a given extended regex.
6304 # If you have `file' or equivalent on your system and you're not sure
6305 # whether `pass_all' will *always* work, you probably want this one.
6307 case $host_os in
6308 aix[4-9]*)
6309 lt_cv_deplibs_check_method=pass_all
6312 beos*)
6313 lt_cv_deplibs_check_method=pass_all
6316 bsdi[45]*)
6317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6318 lt_cv_file_magic_cmd='/usr/bin/file -L'
6319 lt_cv_file_magic_test_file=/shlib/libc.so
6322 cygwin*)
6323 # func_win32_libid is a shell function defined in ltmain.sh
6324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6325 lt_cv_file_magic_cmd='func_win32_libid'
6328 mingw* | pw32*)
6329 # Base MSYS/MinGW do not provide the 'file' command needed by
6330 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6331 # unless we find 'file', for example because we are cross-compiling.
6332 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6333 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6335 lt_cv_file_magic_cmd='func_win32_libid'
6336 else
6337 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6338 lt_cv_file_magic_cmd='$OBJDUMP -f'
6342 cegcc*)
6343 # use the weaker test based on 'objdump'. See mingw*.
6344 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6345 lt_cv_file_magic_cmd='$OBJDUMP -f'
6348 darwin* | rhapsody*)
6349 lt_cv_deplibs_check_method=pass_all
6352 freebsd* | dragonfly*)
6353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6354 case $host_cpu in
6355 i*86 )
6356 # Not sure whether the presence of OpenBSD here was a mistake.
6357 # Let's accept both of them until this is cleared up.
6358 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6359 lt_cv_file_magic_cmd=/usr/bin/file
6360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6362 esac
6363 else
6364 lt_cv_deplibs_check_method=pass_all
6368 gnu*)
6369 lt_cv_deplibs_check_method=pass_all
6372 haiku*)
6373 lt_cv_deplibs_check_method=pass_all
6376 hpux10.20* | hpux11*)
6377 lt_cv_file_magic_cmd=/usr/bin/file
6378 case $host_cpu in
6379 ia64*)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6383 hppa*64*)
6384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6391 esac
6394 interix[3-9]*)
6395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6399 irix5* | irix6* | nonstopux*)
6400 case $LD in
6401 *-32|*"-32 ") libmagic=32-bit;;
6402 *-n32|*"-n32 ") libmagic=N32;;
6403 *-64|*"-64 ") libmagic=64-bit;;
6404 *) libmagic=never-match;;
6405 esac
6406 lt_cv_deplibs_check_method=pass_all
6409 # This must be Linux ELF.
6410 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6411 lt_cv_deplibs_check_method=pass_all
6414 netbsd*)
6415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417 else
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6422 newos6*)
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6424 lt_cv_file_magic_cmd=/usr/bin/file
6425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6428 *nto* | *qnx*)
6429 lt_cv_deplibs_check_method=pass_all
6432 openbsd*)
6433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6435 else
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 osf3* | osf4* | osf5*)
6441 lt_cv_deplibs_check_method=pass_all
6444 rdos*)
6445 lt_cv_deplibs_check_method=pass_all
6448 solaris*)
6449 lt_cv_deplibs_check_method=pass_all
6452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6453 lt_cv_deplibs_check_method=pass_all
6456 sysv4 | sysv4.3*)
6457 case $host_vendor in
6458 motorola)
6459 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]'
6460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6462 ncr)
6463 lt_cv_deplibs_check_method=pass_all
6465 sequent)
6466 lt_cv_file_magic_cmd='/bin/file'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6469 sni)
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6472 lt_cv_file_magic_test_file=/lib/libc.so
6474 siemens)
6475 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_deplibs_check_method=pass_all
6480 esac
6483 tpf*)
6484 lt_cv_deplibs_check_method=pass_all
6486 esac
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6490 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6491 file_magic_cmd=$lt_cv_file_magic_cmd
6492 deplibs_check_method=$lt_cv_deplibs_check_method
6493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}ar; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_prog_AR+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_AR="${ac_tool_prefix}ar"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 AR=$ac_cv_prog_AR
6535 if test -n "$AR"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6537 $as_echo "$AR" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6545 if test -z "$ac_cv_prog_AR"; then
6546 ac_ct_AR=$AR
6547 # Extract the first word of "ar", so it can be a program name with args.
6548 set dummy ar; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test -n "$ac_ct_AR"; then
6555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_AR="ar"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6568 done
6569 done
6570 IFS=$as_save_IFS
6574 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6575 if test -n "$ac_ct_AR"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6577 $as_echo "$ac_ct_AR" >&6; }
6578 else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6583 if test "x$ac_ct_AR" = x; then
6584 AR="false"
6585 else
6586 case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592 AR=$ac_ct_AR
6594 else
6595 AR="$ac_cv_prog_AR"
6598 test -z "$AR" && AR=ar
6599 test -z "$AR_FLAGS" && AR_FLAGS=cru
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}strip; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if test "${ac_cv_prog_STRIP+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$STRIP"; then
6620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6633 done
6634 done
6635 IFS=$as_save_IFS
6639 STRIP=$ac_cv_prog_STRIP
6640 if test -n "$STRIP"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6642 $as_echo "$STRIP" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6650 if test -z "$ac_cv_prog_STRIP"; then
6651 ac_ct_STRIP=$STRIP
6652 # Extract the first word of "strip", so it can be a program name with args.
6653 set dummy strip; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_STRIP"; then
6660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_ac_ct_STRIP="strip"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6673 done
6674 done
6675 IFS=$as_save_IFS
6679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6680 if test -n "$ac_ct_STRIP"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6682 $as_echo "$ac_ct_STRIP" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6688 if test "x$ac_ct_STRIP" = x; then
6689 STRIP=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 STRIP=$ac_ct_STRIP
6699 else
6700 STRIP="$ac_cv_prog_STRIP"
6703 test -z "$STRIP" && STRIP=:
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6732 done
6733 done
6734 IFS=$as_save_IFS
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741 $as_echo "$RANLIB" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781 $as_echo "$ac_ct_RANLIB" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796 RANLIB=$ac_ct_RANLIB
6798 else
6799 RANLIB="$ac_cv_prog_RANLIB"
6802 test -z "$RANLIB" && RANLIB=:
6809 # Determine commands to create old-style static archives.
6810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6811 old_postinstall_cmds='chmod 644 $oldlib'
6812 old_postuninstall_cmds=
6814 if test -n "$RANLIB"; then
6815 case $host_os in
6816 openbsd*)
6817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6822 esac
6823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6826 case $host_os in
6827 darwin*)
6828 lock_old_archive_extraction=yes ;;
6830 lock_old_archive_extraction=no ;;
6831 esac
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900 symcode='[BCDT]'
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6905 hpux*)
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6910 irix* | nonstopux*)
6911 symcode='[BCDEGRST]'
6913 osf*)
6914 symcode='[BCDEGQRST]'
6916 solaris*)
6917 symcode='[BDRT]'
6919 sco3.2v5*)
6920 symcode='[DT]'
6922 sysv4.2uw2*)
6923 symcode='[DT]'
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926 symcode='[ABDT]'
6928 sysv4)
6929 symcode='[DFNSTU]'
6931 esac
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6937 esac
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6946 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'"
6948 # Handle CRLF in mingw tool chain
6949 opt_cr=
6950 case $build_os in
6951 mingw*)
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6954 esac
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 " {last_section=section; section=\$ 3};"\
6970 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 " \$ 0!~/External *\|/{next};"\
6972 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 " {if(hide[section]) next};"\
6974 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 " ' prfx=^$ac_symprfx"
6979 else
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983 # Check to see that the pipe works correctly.
6984 pipe_works=no
6986 rm -f conftest*
6987 cat > conftest.$ac_ext <<_LT_EOF
6988 #ifdef __cplusplus
6989 extern "C" {
6990 #endif
6991 char nm_test_var;
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6994 #ifdef __cplusplus
6996 #endif
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
6998 _LT_EOF
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 # Now try to grab the symbols.
7006 nlist=conftest.nm
7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7008 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7009 ac_status=$?
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011 test $ac_status = 0; } && test -s "$nlist"; then
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7015 else
7016 rm -f "$nlist"T
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7027 _LT_EOF
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031 cat <<_LT_EOF >> conftest.$ac_ext
7033 /* The mapping between symbol names and symbols. */
7034 const struct {
7035 const char *name;
7036 void *address;
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 { "@PROGRAM@", (void *) 0 },
7041 _LT_EOF
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7044 {0, (void *) 0}
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7052 #endif
7054 #ifdef __cplusplus
7056 #endif
7057 _LT_EOF
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7065 (eval $ac_link) 2>&5
7066 ac_status=$?
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7069 pipe_works=yes
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7073 else
7074 echo "cannot find nm_test_func in $nlist" >&5
7076 else
7077 echo "cannot find nm_test_var in $nlist" >&5
7079 else
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7082 else
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -rf conftest* conftst*
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7090 break
7091 else
7092 lt_cv_sys_global_symbol_pipe=
7094 done
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7103 $as_echo "failed" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7106 $as_echo "ok" >&6; }
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then :
7132 enableval=$enable_libtool_lock;
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137 # Some flags need to be propagated to the compiler or linker for good
7138 # libtool support.
7139 case $host in
7140 ia64-*-hpux*)
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7144 (eval $ac_compile) 2>&5
7145 ac_status=$?
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
7148 case `/usr/bin/file conftest.$ac_objext` in
7149 *ELF-32*)
7150 HPUX_IA64_MODE="32"
7152 *ELF-64*)
7153 HPUX_IA64_MODE="64"
7155 esac
7157 rm -rf conftest*
7159 *-*-irix6*)
7160 # Find out which ABI we are using.
7161 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163 (eval $ac_compile) 2>&5
7164 ac_status=$?
7165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; }; then
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7169 *32-bit*)
7170 LD="${LD-ld} -melf32bsmip"
7172 *N32*)
7173 LD="${LD-ld} -melf32bmipn32"
7175 *64-bit*)
7176 LD="${LD-ld} -melf64bmip"
7178 esac
7179 else
7180 case `/usr/bin/file conftest.$ac_objext` in
7181 *32-bit*)
7182 LD="${LD-ld} -32"
7184 *N32*)
7185 LD="${LD-ld} -n32"
7187 *64-bit*)
7188 LD="${LD-ld} -64"
7190 esac
7193 rm -rf conftest*
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 case `/usr/bin/file conftest.o` in
7206 *32-bit*)
7207 case $host in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7211 x86_64-*linux*)
7212 LD="${LD-ld} -m elf_i386"
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7217 s390x-*linux*)
7218 LD="${LD-ld} -m elf_s390"
7220 sparc64-*linux*)
7221 LD="${LD-ld} -m elf32_sparc"
7223 esac
7225 *64-bit*)
7226 case $host in
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7230 x86_64-*linux*)
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7239 sparc*-*linux*)
7240 LD="${LD-ld} -m elf64_sparc"
7242 esac
7244 esac
7246 rm -rf conftest*
7249 *-*-sco3.2v5*)
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7268 main ()
7272 return 0;
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_cc_needs_belf=yes
7277 else
7278 lt_cv_cc_needs_belf=no
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293 CFLAGS="$SAVE_CFLAGS"
7296 sparc*-*solaris*)
7297 # Find out which ABI we are using.
7298 echo 'int i;' > conftest.$ac_ext
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 case `/usr/bin/file conftest.o` in
7305 *64-bit*)
7306 case $lt_cv_prog_gnu_ld in
7307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7310 LD="${LD-ld} -64"
7313 esac
7315 esac
7317 rm -rf conftest*
7319 esac
7321 need_locks="$enable_libtool_lock"
7324 case $host_os in
7325 rhapsody* | darwin*)
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7348 done
7349 done
7350 IFS=$as_save_IFS
7354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355 if test -n "$DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357 $as_echo "$DSYMUTIL" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 if test -z "$ac_cv_prog_DSYMUTIL"; then
7366 ac_ct_DSYMUTIL=$DSYMUTIL
7367 # Extract the first word of "dsymutil", so it can be a program name with args.
7368 set dummy dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7388 done
7389 done
7390 IFS=$as_save_IFS
7394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7404 DSYMUTIL=":"
7405 else
7406 case $cross_compiling:$ac_tool_warned in
7407 yes:)
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7411 esac
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7414 else
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7440 done
7441 done
7442 IFS=$as_save_IFS
7446 NMEDIT=$ac_cv_prog_NMEDIT
7447 if test -n "$NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449 $as_echo "$NMEDIT" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7457 if test -z "$ac_cv_prog_NMEDIT"; then
7458 ac_ct_NMEDIT=$NMEDIT
7459 # Extract the first word of "nmedit", so it can be a program name with args.
7460 set dummy nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7480 done
7481 done
7482 IFS=$as_save_IFS
7486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487 if test -n "$ac_ct_NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489 $as_echo "$ac_ct_NMEDIT" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7495 if test "x$ac_ct_NMEDIT" = x; then
7496 NMEDIT=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 NMEDIT=$ac_ct_NMEDIT
7506 else
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_LIPO+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7532 done
7533 done
7534 IFS=$as_save_IFS
7538 LIPO=$ac_cv_prog_LIPO
7539 if test -n "$LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541 $as_echo "$LIPO" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7549 if test -z "$ac_cv_prog_LIPO"; then
7550 ac_ct_LIPO=$LIPO
7551 # Extract the first word of "lipo", so it can be a program name with args.
7552 set dummy lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_LIPO="lipo"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7572 done
7573 done
7574 IFS=$as_save_IFS
7578 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579 if test -n "$ac_ct_LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581 $as_echo "$ac_ct_LIPO" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 if test "x$ac_ct_LIPO" = x; then
7588 LIPO=":"
7589 else
7590 case $cross_compiling:$ac_tool_warned in
7591 yes:)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7595 esac
7596 LIPO=$ac_ct_LIPO
7598 else
7599 LIPO="$ac_cv_prog_LIPO"
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7624 done
7625 done
7626 IFS=$as_save_IFS
7630 OTOOL=$ac_cv_prog_OTOOL
7631 if test -n "$OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633 $as_echo "$OTOOL" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7641 if test -z "$ac_cv_prog_OTOOL"; then
7642 ac_ct_OTOOL=$OTOOL
7643 # Extract the first word of "otool", so it can be a program name with args.
7644 set dummy otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_prog_ac_ct_OTOOL="otool"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 break 2
7664 done
7665 done
7666 IFS=$as_save_IFS
7670 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671 if test -n "$ac_ct_OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673 $as_echo "$ac_ct_OTOOL" >&6; }
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7679 if test "x$ac_ct_OTOOL" = x; then
7680 OTOOL=":"
7681 else
7682 case $cross_compiling:$ac_tool_warned in
7683 yes:)
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7687 esac
7688 OTOOL=$ac_ct_OTOOL
7690 else
7691 OTOOL="$ac_cv_prog_OTOOL"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7718 IFS=$as_save_IFS
7722 OTOOL64=$ac_cv_prog_OTOOL64
7723 if test -n "$OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725 $as_echo "$OTOOL64" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_OTOOL64"; then
7734 ac_ct_OTOOL64=$OTOOL64
7735 # Extract the first word of "otool64", so it can be a program name with args.
7736 set dummy otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_ac_ct_OTOOL64="otool64"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763 if test -n "$ac_ct_OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765 $as_echo "$ac_ct_OTOOL64" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_OTOOL64" = x; then
7772 OTOOL64=":"
7773 else
7774 case $cross_compiling:$ac_tool_warned in
7775 yes:)
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7779 esac
7780 OTOOL64=$ac_ct_OTOOL64
7782 else
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813 $as_echo_n "checking for -single_module linker flag... " >&6; }
7814 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 lt_cv_apple_cc_single_mod=no
7818 if test -z "${LT_MULTI_MODULE}"; then
7819 # By default we will add the -single_module flag. You can override
7820 # by either setting the environment variable LT_MULTI_MODULE
7821 # non-empty at configure time, or by adding -multi_module to the
7822 # link flags.
7823 rm -rf libconftest.dylib*
7824 echo "int foo(void){return 1;}" > conftest.c
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c" >&5
7827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7829 _lt_result=$?
7830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831 lt_cv_apple_cc_single_mod=yes
7832 else
7833 cat conftest.err >&5
7835 rm -rf libconftest.dylib*
7836 rm -f conftest.*
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7854 main ()
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 lt_cv_ld_exported_symbols_list=yes
7863 else
7864 lt_cv_ld_exported_symbols_list=no
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LDFLAGS="$save_LDFLAGS"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7874 $as_echo_n "checking for -force_load linker flag... " >&6; }
7875 if test "${lt_cv_ld_force_load+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 lt_cv_ld_force_load=no
7879 cat > conftest.c << _LT_EOF
7880 int forced_loaded() { return 2;}
7881 _LT_EOF
7882 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7883 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7884 echo "$AR cru libconftest.a conftest.o" >&5
7885 $AR cru libconftest.a conftest.o 2>&5
7886 cat > conftest.c << _LT_EOF
7887 int main() { return 0;}
7888 _LT_EOF
7889 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7890 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7891 _lt_result=$?
7892 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7893 lt_cv_ld_force_load=yes
7894 else
7895 cat conftest.err >&5
7897 rm -f conftest.err libconftest.a conftest conftest.c
7898 rm -rf conftest.dSYM
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7902 $as_echo "$lt_cv_ld_force_load" >&6; }
7903 case $host_os in
7904 rhapsody* | darwin1.[012])
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7906 darwin1.*)
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7908 darwin*) # darwin 5.x on
7909 # if running on 10.5 or later, the deployment target defaults
7910 # to the OS version, if on x86, and 10.4, the deployment
7911 # target defaults to 10.4. Don't you love it?
7912 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7913 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7915 10.[012]*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 10.*)
7918 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7919 esac
7921 esac
7922 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7923 _lt_dar_single_mod='$single_module'
7925 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7926 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7927 else
7928 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7930 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7931 _lt_dsymutil='~$DSYMUTIL $lib || :'
7932 else
7933 _lt_dsymutil=
7936 esac
7938 for ac_header in dlfcn.h
7939 do :
7940 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7942 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define HAVE_DLFCN_H 1
7945 _ACEOF
7949 done
7955 # Set options
7956 enable_dlopen=yes
7961 enable_win32_dll=no
7965 # Check whether --enable-static was given.
7966 if test "${enable_static+set}" = set; then :
7967 enableval=$enable_static; p=${PACKAGE-default}
7968 case $enableval in
7969 yes) enable_static=yes ;;
7970 no) enable_static=no ;;
7972 enable_static=no
7973 # Look at the argument we got. We use all the common list separators.
7974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7975 for pkg in $enableval; do
7976 IFS="$lt_save_ifs"
7977 if test "X$pkg" = "X$p"; then
7978 enable_static=yes
7980 done
7981 IFS="$lt_save_ifs"
7983 esac
7984 else
7985 enable_static=yes
7997 # Check whether --with-pic was given.
7998 if test "${with_pic+set}" = set; then :
7999 withval=$with_pic; pic_mode="$withval"
8000 else
8001 pic_mode=default
8005 test -z "$pic_mode" && pic_mode=default
8013 # Check whether --enable-fast-install was given.
8014 if test "${enable_fast_install+set}" = set; then :
8015 enableval=$enable_fast_install; p=${PACKAGE-default}
8016 case $enableval in
8017 yes) enable_fast_install=yes ;;
8018 no) enable_fast_install=no ;;
8020 enable_fast_install=no
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023 for pkg in $enableval; do
8024 IFS="$lt_save_ifs"
8025 if test "X$pkg" = "X$p"; then
8026 enable_fast_install=yes
8028 done
8029 IFS="$lt_save_ifs"
8031 esac
8032 else
8033 enable_fast_install=yes
8046 # This can be used to rebuild libtool when needed
8047 LIBTOOL_DEPS="$ltmain"
8049 # Always use our own libtool.
8050 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8077 test -z "$LN_S" && LN_S="ln -s"
8092 if test -n "${ZSH_VERSION+set}" ; then
8093 setopt NO_GLOB_SUBST
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8097 $as_echo_n "checking for objdir... " >&6; }
8098 if test "${lt_cv_objdir+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 rm -f .libs 2>/dev/null
8102 mkdir .libs 2>/dev/null
8103 if test -d .libs; then
8104 lt_cv_objdir=.libs
8105 else
8106 # MS-DOS does not allow filenames that begin with a dot.
8107 lt_cv_objdir=_libs
8109 rmdir .libs 2>/dev/null
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8112 $as_echo "$lt_cv_objdir" >&6; }
8113 objdir=$lt_cv_objdir
8119 cat >>confdefs.h <<_ACEOF
8120 #define LT_OBJDIR "$lt_cv_objdir/"
8121 _ACEOF
8126 case $host_os in
8127 aix3*)
8128 # AIX sometimes has problems with the GCC collect2 program. For some
8129 # reason, if we set the COLLECT_NAMES environment variable, the problems
8130 # vanish in a puff of smoke.
8131 if test "X${COLLECT_NAMES+set}" != Xset; then
8132 COLLECT_NAMES=
8133 export COLLECT_NAMES
8136 esac
8138 # Global variables:
8139 ofile=libtool
8140 can_build_shared=yes
8142 # All known linkers require a `.a' archive for static linking (except MSVC,
8143 # which needs '.lib').
8144 libext=a
8146 with_gnu_ld="$lt_cv_prog_gnu_ld"
8148 old_CC="$CC"
8149 old_CFLAGS="$CFLAGS"
8151 # Set sane defaults for various variables
8152 test -z "$CC" && CC=cc
8153 test -z "$LTCC" && LTCC=$CC
8154 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8155 test -z "$LD" && LD=ld
8156 test -z "$ac_objext" && ac_objext=o
8158 for cc_temp in $compiler""; do
8159 case $cc_temp in
8160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8162 \-*) ;;
8163 *) break;;
8164 esac
8165 done
8166 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8169 # Only perform the check for file, if the check method requires it
8170 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8171 case $deplibs_check_method in
8172 file_magic*)
8173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8175 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8176 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $MAGIC_CMD in
8180 [\\/*] | ?:[\\/]*)
8181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8184 lt_save_MAGIC_CMD="$MAGIC_CMD"
8185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8187 for ac_dir in $ac_dummy; do
8188 IFS="$lt_save_ifs"
8189 test -z "$ac_dir" && ac_dir=.
8190 if test -f $ac_dir/${ac_tool_prefix}file; then
8191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8192 if test -n "$file_magic_test_file"; then
8193 case $deplibs_check_method in
8194 "file_magic "*)
8195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8198 $EGREP "$file_magic_regex" > /dev/null; then
8200 else
8201 cat <<_LT_EOF 1>&2
8203 *** Warning: the command libtool uses to detect shared libraries,
8204 *** $file_magic_cmd, produces output that libtool cannot recognize.
8205 *** The result is that libtool may fail to recognize shared libraries
8206 *** as such. This will affect the creation of libtool libraries that
8207 *** depend on shared libraries, but programs linked with such libtool
8208 *** libraries will work regardless of this problem. Nevertheless, you
8209 *** may want to report the problem to your system manager and/or to
8210 *** bug-libtool@gnu.org
8212 _LT_EOF
8213 fi ;;
8214 esac
8216 break
8218 done
8219 IFS="$lt_save_ifs"
8220 MAGIC_CMD="$lt_save_MAGIC_CMD"
8222 esac
8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226 if test -n "$MAGIC_CMD"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8228 $as_echo "$MAGIC_CMD" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8238 if test -z "$lt_cv_path_MAGIC_CMD"; then
8239 if test -n "$ac_tool_prefix"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8241 $as_echo_n "checking for file... " >&6; }
8242 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 case $MAGIC_CMD in
8246 [\\/*] | ?:[\\/]*)
8247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8250 lt_save_MAGIC_CMD="$MAGIC_CMD"
8251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8253 for ac_dir in $ac_dummy; do
8254 IFS="$lt_save_ifs"
8255 test -z "$ac_dir" && ac_dir=.
8256 if test -f $ac_dir/file; then
8257 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8258 if test -n "$file_magic_test_file"; then
8259 case $deplibs_check_method in
8260 "file_magic "*)
8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8264 $EGREP "$file_magic_regex" > /dev/null; then
8266 else
8267 cat <<_LT_EOF 1>&2
8269 *** Warning: the command libtool uses to detect shared libraries,
8270 *** $file_magic_cmd, produces output that libtool cannot recognize.
8271 *** The result is that libtool may fail to recognize shared libraries
8272 *** as such. This will affect the creation of libtool libraries that
8273 *** depend on shared libraries, but programs linked with such libtool
8274 *** libraries will work regardless of this problem. Nevertheless, you
8275 *** may want to report the problem to your system manager and/or to
8276 *** bug-libtool@gnu.org
8278 _LT_EOF
8279 fi ;;
8280 esac
8282 break
8284 done
8285 IFS="$lt_save_ifs"
8286 MAGIC_CMD="$lt_save_MAGIC_CMD"
8288 esac
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if test -n "$MAGIC_CMD"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8294 $as_echo "$MAGIC_CMD" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8301 else
8302 MAGIC_CMD=:
8308 esac
8310 # Use C for the default configuration in the libtool script
8312 lt_save_CC="$CC"
8313 ac_ext=c
8314 ac_cpp='$CPP $CPPFLAGS'
8315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 # Source file extension for C test sources.
8321 ac_ext=c
8323 # Object file extension for compiled C test sources.
8324 objext=o
8325 objext=$objext
8327 # Code to be used in simple compile tests
8328 lt_simple_compile_test_code="int some_variable = 0;"
8330 # Code to be used in simple link tests
8331 lt_simple_link_test_code='int main(){return(0);}'
8339 # If no C compiler was specified, use CC.
8340 LTCC=${LTCC-"$CC"}
8342 # If no C compiler flags were specified, use CFLAGS.
8343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8345 # Allow CC to be a program name with arguments.
8346 compiler=$CC
8348 # Save the default compiler, since it gets overwritten when the other
8349 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8350 compiler_DEFAULT=$CC
8352 # save warnings/boilerplate of simple test code
8353 ac_outfile=conftest.$ac_objext
8354 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356 _lt_compiler_boilerplate=`cat conftest.err`
8357 $RM conftest*
8359 ac_outfile=conftest.$ac_objext
8360 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8362 _lt_linker_boilerplate=`cat conftest.err`
8363 $RM -r conftest*
8366 ## CAVEAT EMPTOR:
8367 ## There is no encapsulation within the following macros, do not change
8368 ## the running order or otherwise move them around unless you know exactly
8369 ## what you are doing...
8370 if test -n "$compiler"; then
8372 lt_prog_compiler_no_builtin_flag=
8374 if test "$GCC" = yes; then
8375 case $cc_basename in
8376 nvcc*)
8377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8380 esac
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8383 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 lt_cv_prog_compiler_rtti_exceptions=no
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390 lt_compiler_flag="-fno-rtti -fno-exceptions"
8391 # Insert the option either (1) after the last *FLAGS variable, or
8392 # (2) before a word containing "conftest.", or (3) at the end.
8393 # Note that $ac_compile itself does not contain backslashes and begins
8394 # with a dollar sign (not a hyphen), so the echo should work correctly.
8395 # The option is referenced via a variable to avoid confusing sed.
8396 lt_compile=`echo "$ac_compile" | $SED \
8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399 -e 's:$: $lt_compiler_flag:'`
8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8401 (eval "$lt_compile" 2>conftest.err)
8402 ac_status=$?
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 if (exit $ac_status) && test -s "$ac_outfile"; then
8406 # The compiler can only warn and ignore the option if not recognized
8407 # So say no if there are warnings other than the usual output.
8408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8411 lt_cv_prog_compiler_rtti_exceptions=yes
8414 $RM conftest*
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8418 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8420 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8422 else
8433 lt_prog_compiler_wl=
8434 lt_prog_compiler_pic=
8435 lt_prog_compiler_static=
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8438 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8440 if test "$GCC" = yes; then
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_static='-static'
8444 case $host_os in
8445 aix*)
8446 # All AIX code is PIC.
8447 if test "$host_cpu" = ia64; then
8448 # AIX 5 now supports IA64 processor
8449 lt_prog_compiler_static='-Bstatic'
8453 amigaos*)
8454 case $host_cpu in
8455 powerpc)
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic='-fPIC'
8459 m68k)
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8462 # like `-m68040'.
8463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8465 esac
8468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8469 # PIC is the default for these OSes.
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8480 darwin* | rhapsody*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic='-fno-common'
8486 haiku*)
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static=
8492 hpux*)
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
8496 case $host_cpu in
8497 hppa*64*)
8498 # +Z the default
8501 lt_prog_compiler_pic='-fPIC'
8503 esac
8506 interix[3-9]*)
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8511 msdosdjgpp*)
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared=no
8515 enable_shared=no
8518 *nto* | *qnx*)
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 # it will coredump.
8521 lt_prog_compiler_pic='-fPIC -shared'
8524 sysv4*MP*)
8525 if test -d /usr/nec; then
8526 lt_prog_compiler_pic=-Kconform_pic
8531 lt_prog_compiler_pic='-fPIC'
8533 esac
8535 case $cc_basename in
8536 nvcc*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl='-Xlinker '
8538 lt_prog_compiler_pic='-Xcompiler -fPIC'
8540 esac
8541 else
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8543 case $host_os in
8544 aix*)
8545 lt_prog_compiler_wl='-Wl,'
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 else
8550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554 mingw* | cygwin* | pw32* | os2* | cegcc*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 # not for PA HP-UX.
8564 case $host_cpu in
8565 hppa*64*|ia64*)
8566 # +Z the default
8569 lt_prog_compiler_pic='+Z'
8571 esac
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8583 case $cc_basename in
8584 # old Intel for x86_64 which still supported -KPIC.
8585 ecc*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-static'
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8592 icc* | ifort*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8597 # Lahey Fortran 8.1.
8598 lf95*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='--shared'
8601 lt_prog_compiler_static='--static'
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ F* | *Sun*Fortran*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8629 *Sun\ C*)
8630 # Sun C 5.9
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Wl,'
8635 esac
8637 esac
8640 newsos6)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8651 osf3* | osf4* | osf5*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8657 rdos*)
8658 lt_prog_compiler_static='-non_shared'
8661 solaris*)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 case $cc_basename in
8665 f77* | f90* | f95*)
8666 lt_prog_compiler_wl='-Qoption ld ';;
8668 lt_prog_compiler_wl='-Wl,';;
8669 esac
8672 sunos4*)
8673 lt_prog_compiler_wl='-Qoption ld '
8674 lt_prog_compiler_pic='-PIC'
8675 lt_prog_compiler_static='-Bstatic'
8678 sysv4 | sysv4.2uw2* | sysv4.3*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8684 sysv4*MP*)
8685 if test -d /usr/nec ;then
8686 lt_prog_compiler_pic='-Kconform_pic'
8687 lt_prog_compiler_static='-Bstatic'
8691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8697 unicos*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_can_build_shared=no
8702 uts4*)
8703 lt_prog_compiler_pic='-pic'
8704 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_can_build_shared=no
8710 esac
8713 case $host_os in
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8715 *djgpp*)
8716 lt_prog_compiler_pic=
8719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8721 esac
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723 $as_echo "$lt_prog_compiler_pic" >&6; }
8731 # Check to make sure the PIC flag actually works.
8733 if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_pic_works=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_pic_works=yes
8766 $RM conftest*
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777 else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8790 # Check to make sure the static flag actually works.
8792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_static_works=no
8799 save_LDFLAGS="$LDFLAGS"
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_static_works=yes
8813 else
8814 lt_cv_prog_compiler_static_works=yes
8817 $RM -r conftest*
8818 LDFLAGS="$save_LDFLAGS"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8824 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8826 else
8827 lt_prog_compiler_static=
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944 hard_links="nottested"
8945 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948 $as_echo_n "checking if we can lock with hard links... " >&6; }
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956 $as_echo "$hard_links" >&6; }
8957 if test "$hard_links" = no; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8960 need_locks=warn
8962 else
8963 need_locks=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld=
8988 hardcode_libdir_separator=
8989 hardcode_minus_L=no
8990 hardcode_shlibpath_var=unsupported
8991 inherit_rpath=no
8992 link_all_deplibs=unknown
8993 module_cmds=
8994 module_expsym_cmds=
8995 old_archive_from_new_cmds=
8996 old_archive_from_expsyms_cmds=
8997 thread_safe_flag_spec=
8998 whole_archive_flag_spec=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9001 include_expsyms=
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
9006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
9012 # Exclude shared library initialization/finalization symbols.
9013 extract_expsyms_cmds=
9015 case $host_os in
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9021 with_gnu_ld=no
9024 interix*)
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9026 with_gnu_ld=yes
9028 openbsd*)
9029 with_gnu_ld=no
9031 esac
9033 ld_shlibs=yes
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface=no
9038 if test "$with_gnu_ld" = yes; then
9039 case $host_os in
9040 aix*)
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9050 lt_use_gnu_ld_interface=yes
9052 esac
9055 lt_use_gnu_ld_interface=yes
9057 esac
9060 if test "$lt_use_gnu_ld_interface" = yes; then
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9062 wlarc='${wl}'
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var=LD_RUN_PATH
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 else
9074 whole_archive_flag_spec=
9076 supports_anon_versioning=no
9077 case `$LD -v 2>&1` in
9078 *GNU\ gold*) supports_anon_versioning=yes ;;
9079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9082 *\ 2.11.*) ;; # other 2.11 versions
9083 *) supports_anon_versioning=yes ;;
9084 esac
9086 # See if GNU ld supports shared libraries.
9087 case $host_os in
9088 aix[3-9]*)
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64; then
9091 ld_shlibs=no
9092 cat <<_LT_EOF 1>&2
9094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9095 *** to be unable to reliably create shared libraries on AIX.
9096 *** Therefore, libtool is disabling shared libraries support. If you
9097 *** really care for shared libraries, you may want to install binutils
9098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099 *** You will then need to restart the configuration process.
9101 _LT_EOF
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9117 esac
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9131 cygwin* | mingw* | pw32* | cegcc*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 export_dynamic_flag_spec='${wl}--export-all-symbols'
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=no
9138 enable_shared_with_static_runtimes=yes
9139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9162 interix[3-9]*)
9163 hardcode_direct=no
9164 hardcode_shlibpath_var=no
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9178 tmp_diet=no
9179 if test "$host_os" = linux-dietlibc; then
9180 case $cc_basename in
9181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182 esac
9184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185 && test "$tmp_diet" = no
9186 then
9187 tmp_addflag=
9188 tmp_sharedflag='-shared'
9189 case $cc_basename,$host_cpu in
9190 pgcc*) # Portland Group C compiler
9191 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9192 tmp_addflag=' $pic_flag'
9194 pgf77* | pgf90* | pgf95* | pgfortran*)
9195 # Portland Group f77 and f90 compilers
9196 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9197 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 tmp_addflag=' -i_dynamic' ;;
9200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201 tmp_addflag=' -i_dynamic -nofor_main' ;;
9202 ifc* | ifort*) # Intel Fortran compiler
9203 tmp_addflag=' -nofor_main' ;;
9204 lf95*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec=
9206 tmp_sharedflag='--shared' ;;
9207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9208 tmp_sharedflag='-qmkshrobj'
9209 tmp_addflag= ;;
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9212 compiler_needs_object=yes
9214 esac
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C*) # Sun C 5.9
9217 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9218 compiler_needs_object=yes
9219 tmp_sharedflag='-G' ;;
9220 *Sun\ F*) # Sun Fortran 8.3
9221 tmp_sharedflag='-G' ;;
9222 esac
9223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9232 case $cc_basename in
9233 xlf* | bgf* | bgxlf* | mpixlf*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9246 esac
9247 else
9248 ld_shlibs=no
9252 netbsd*)
9253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255 wlarc=
9256 else
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 solaris*)
9263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268 *** create shared libraries on Solaris systems. Therefore, libtool
9269 *** is disabling shared libraries support. We urge you to upgrade GNU
9270 *** binutils to release 2.9.1 or newer. Another option is to modify
9271 *** your PATH or compiler configuration so that the native linker is
9272 *** used, and then restart.
9274 _LT_EOF
9275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284 case `$LD -v 2>&1` in
9285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290 *** reliably create shared libraries on SCO systems. Therefore, libtool
9291 *** is disabling shared libraries support. We urge you to upgrade GNU
9292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293 *** your PATH or compiler configuration so that the native linker is
9294 *** used, and then restart.
9296 _LT_EOF
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9311 esac
9314 sunos4*)
9315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 wlarc=
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9329 esac
9331 if test "$ld_shlibs" = no; then
9332 runpath_var=
9333 hardcode_libdir_flag_spec=
9334 export_dynamic_flag_spec=
9335 whole_archive_flag_spec=
9337 else
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9339 case $host_os in
9340 aix3*)
9341 allow_undefined_flag=unsupported
9342 always_export_symbols=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9349 # broken collect2.
9350 hardcode_direct=unsupported
9354 aix[4-9]*)
9355 if test "$host_cpu" = ia64; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking=no
9359 exp_sym_flag='-Bexport'
9360 no_entry_flag=""
9361 else
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
9366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9367 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9368 else
9369 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'
9371 aix_use_runtimelinking=no
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
9376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9377 for ld_flag in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking=yes
9380 break
9382 done
9384 esac
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='${wl}-f,'
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9424 esac
9425 shared_flag='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag="$shared_flag "'${wl}-G'
9429 else
9430 # not using gcc
9431 if test "$host_cpu" = ia64; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag='${wl}-G'
9438 else
9439 shared_flag='${wl}-bM:SRE'
9444 export_dynamic_flag_spec='${wl}-bexpall'
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag='-berok'
9452 # Determine the default libpath from the value encoded in an
9453 # empty executable.
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9458 main ()
9462 return 0;
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9467 lt_aix_libpath_sed='
9468 /Import File Strings/,/^$/ {
9469 /^0/ {
9470 s/^0 *\(.*\)$/\1/
9474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475 # Check for a 64-bit object if we didn't find anything.
9476 if test -z "$aix_libpath"; then
9477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9485 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9486 else
9487 if test "$host_cpu" = ia64; then
9488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9498 main ()
9502 return 0;
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9507 lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag=' ${wl}-bernotok'
9528 allow_undefined_flag=' ${wl}-berok'
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 else
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec='$convenience'
9536 archive_cmds_need_lc=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9543 amigaos*)
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9555 esac
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec=' '
9568 allow_undefined_flag=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9570 libext=lib
9571 # Tell ltmain to make .dll files, not .so files.
9572 shrext_cmds=".dll"
9573 # FIXME: Setting linknames here is a bad hack.
9574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes=yes
9583 darwin* | rhapsody*)
9586 archive_cmds_need_lc=no
9587 hardcode_direct=no
9588 hardcode_automatic=yes
9589 hardcode_shlibpath_var=unsupported
9590 if test "$lt_cv_ld_force_load" = "yes"; then
9591 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9592 else
9593 whole_archive_flag_spec=''
9595 link_all_deplibs=yes
9596 allow_undefined_flag="$_lt_dar_allow_undefined"
9597 case $cc_basename in
9598 ifort*) _lt_dar_can_shared=yes ;;
9599 *) _lt_dar_can_shared=$GCC ;;
9600 esac
9601 if test "$_lt_dar_can_shared" = "yes"; then
9602 output_verbose_link_cmd=func_echo_all
9603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9605 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}"
9606 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}"
9608 else
9609 ld_shlibs=no
9614 dgux*)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_shlibpath_var=no
9620 freebsd1*)
9621 ld_shlibs=no
9624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9625 # support. Future versions do this automatically, but an explicit c++rt0.o
9626 # does not break anything, and helps significantly (at the cost of a little
9627 # extra space).
9628 freebsd2.2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9636 freebsd2*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9644 freebsd* | dragonfly*)
9645 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9651 hpux9*)
9652 if test "$GCC" = yes; then
9653 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'
9654 else
9655 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'
9657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 export_dynamic_flag_spec='${wl}-E'
9667 hpux10*)
9668 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9673 if test "$with_gnu_ld" = no; then
9674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9675 hardcode_libdir_flag_spec_ld='+b $libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 export_dynamic_flag_spec='${wl}-E'
9680 # hardcode_minus_L: Not really in the search PATH,
9681 # but as the default location of the library.
9682 hardcode_minus_L=yes
9686 hpux11*)
9687 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9688 case $host_cpu in
9689 hppa*64*)
9690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 ia64*)
9693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698 esac
9699 else
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 ia64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 # Older versions of the 11.00 compiler do not understand -b yet
9710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9712 $as_echo_n "checking if $CC understands -b... " >&6; }
9713 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 lt_cv_prog_compiler__b=no
9717 save_LDFLAGS="$LDFLAGS"
9718 LDFLAGS="$LDFLAGS -b"
9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721 # The linker can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 if test -s conftest.err; then
9724 # Append any errors to the config.log.
9725 cat conftest.err 1>&5
9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728 if diff conftest.exp conftest.er2 >/dev/null; then
9729 lt_cv_prog_compiler__b=yes
9731 else
9732 lt_cv_prog_compiler__b=yes
9735 $RM -r conftest*
9736 LDFLAGS="$save_LDFLAGS"
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9740 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9742 if test x"$lt_cv_prog_compiler__b" = xyes; then
9743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 esac
9751 if test "$with_gnu_ld" = no; then
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9755 case $host_cpu in
9756 hppa*64*|ia64*)
9757 hardcode_direct=no
9758 hardcode_shlibpath_var=no
9761 hardcode_direct=yes
9762 hardcode_direct_absolute=yes
9763 export_dynamic_flag_spec='${wl}-E'
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9769 esac
9773 irix5* | irix6* | nonstopux*)
9774 if test "$GCC" = yes; then
9775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9776 # Try to use the -exported_symbol ld option, if it does not
9777 # work, assume that -exports_file does not work either and
9778 # implicitly export all symbols.
9779 save_LDFLAGS="$LDFLAGS"
9780 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int foo(void) {}
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LDFLAGS="$save_LDFLAGS"
9792 else
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9796 archive_cmds_need_lc='no'
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 hardcode_libdir_separator=:
9799 inherit_rpath=yes
9800 link_all_deplibs=yes
9803 netbsd*)
9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9806 else
9807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9814 newsos6)
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=yes
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_shlibpath_var=no
9822 *nto* | *qnx*)
9825 openbsd*)
9826 if test -f /usr/libexec/ld.so; then
9827 hardcode_direct=yes
9828 hardcode_shlibpath_var=no
9829 hardcode_direct_absolute=yes
9830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
9835 else
9836 case $host_os in
9837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-R$libdir'
9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9845 esac
9847 else
9848 ld_shlibs=no
9852 os2*)
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_minus_L=yes
9855 allow_undefined_flag=unsupported
9856 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'
9857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9860 osf3*)
9861 if test "$GCC" = yes; then
9862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9863 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9864 else
9865 allow_undefined_flag=' -expect_unresolved \*'
9866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9868 archive_cmds_need_lc='no'
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 hardcode_libdir_separator=:
9873 osf4* | osf5*) # as osf3* with the addition of -msym flag
9874 if test "$GCC" = yes; then
9875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9876 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 else
9879 allow_undefined_flag=' -expect_unresolved \*'
9880 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9881 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~
9882 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9884 # Both c and cxx compiler support -rpath directly
9885 hardcode_libdir_flag_spec='-rpath $libdir'
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_separator=:
9891 solaris*)
9892 no_undefined_flag=' -z defs'
9893 if test "$GCC" = yes; then
9894 wlarc='${wl}'
9895 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9898 else
9899 case `$CC -V 2>&1` in
9900 *"Compilers 5.0"*)
9901 wlarc=''
9902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9907 wlarc='${wl}'
9908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9912 esac
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9916 case $host_os in
9917 solaris2.[0-5] | solaris2.[0-5].*) ;;
9919 # The compiler driver will combine and reorder linker options,
9920 # but understands `-z linker_flag'. GCC discards it without `$wl',
9921 # but is careful enough not to reorder.
9922 # Supported since Solaris 2.6 (maybe 2.5.1?)
9923 if test "$GCC" = yes; then
9924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9925 else
9926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9929 esac
9930 link_all_deplibs=yes
9933 sunos4*)
9934 if test "x$host_vendor" = xsequent; then
9935 # Use $CC to link under sequent, because it throws in some extra .o
9936 # files that make .init and .fini sections work.
9937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 else
9939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_direct=yes
9943 hardcode_minus_L=yes
9944 hardcode_shlibpath_var=no
9947 sysv4)
9948 case $host_vendor in
9949 sni)
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_direct=yes # is this really true???
9953 siemens)
9954 ## LD is ld it makes a PLAMLIB
9955 ## CC just makes a GrossModule.
9956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9957 reload_cmds='$CC -r -o $output$reload_objs'
9958 hardcode_direct=no
9960 motorola)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9964 esac
9965 runpath_var='LD_RUN_PATH'
9966 hardcode_shlibpath_var=no
9969 sysv4.3*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_shlibpath_var=no
9972 export_dynamic_flag_spec='-Bexport'
9975 sysv4*MP*)
9976 if test -d /usr/nec; then
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_shlibpath_var=no
9979 runpath_var=LD_RUN_PATH
9980 hardcode_runpath_var=yes
9981 ld_shlibs=yes
9985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9986 no_undefined_flag='${wl}-z,text'
9987 archive_cmds_need_lc=no
9988 hardcode_shlibpath_var=no
9989 runpath_var='LD_RUN_PATH'
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 sysv5* | sco3.2v5* | sco5v6*)
10001 # Note: We can NOT use -z defs as we might desire, because we do not
10002 # link with -lc, and that would cause any symbols used from libc to
10003 # always be unresolved, which means just about no library would
10004 # ever link correctly. If we're not using GNU ld we use -z text
10005 # though, which does catch some bad symbols but isn't as heavy-handed
10006 # as -z defs.
10007 no_undefined_flag='${wl}-z,text'
10008 allow_undefined_flag='${wl}-z,nodefs'
10009 archive_cmds_need_lc=no
10010 hardcode_shlibpath_var=no
10011 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10012 hardcode_libdir_separator=':'
10013 link_all_deplibs=yes
10014 export_dynamic_flag_spec='${wl}-Bexport'
10015 runpath_var='LD_RUN_PATH'
10017 if test "$GCC" = yes; then
10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 uts4*)
10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_shlibpath_var=no
10033 ld_shlibs=no
10035 esac
10037 if test x$host_vendor = xsni; then
10038 case $host in
10039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10040 export_dynamic_flag_spec='${wl}-Blargedynsym'
10042 esac
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10047 $as_echo "$ld_shlibs" >&6; }
10048 test "$ld_shlibs" = no && can_build_shared=no
10050 with_gnu_ld=$with_gnu_ld
10067 # Do we need to explicitly link libc?
10069 case "x$archive_cmds_need_lc" in
10070 x|xyes)
10071 # Assume -lc should be added
10072 archive_cmds_need_lc=yes
10074 if test "$enable_shared" = yes && test "$GCC" = yes; then
10075 case $archive_cmds in
10076 *'~'*)
10077 # FIXME: we may have to deal with multi-command sequences.
10079 '$CC '*)
10080 # Test whether the compiler implicitly links with -lc since on some
10081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10082 # to ld, don't add -lc before -lgcc.
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10084 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10085 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 $RM conftest*
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10092 (eval $ac_compile) 2>&5
10093 ac_status=$?
10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10095 test $ac_status = 0; } 2>conftest.err; then
10096 soname=conftest
10097 lib=conftest
10098 libobjs=conftest.$ac_objext
10099 deplibs=
10100 wl=$lt_prog_compiler_wl
10101 pic_flag=$lt_prog_compiler_pic
10102 compiler_flags=-v
10103 linker_flags=-v
10104 verstring=
10105 output_objdir=.
10106 libname=conftest
10107 lt_save_allow_undefined_flag=$allow_undefined_flag
10108 allow_undefined_flag=
10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10111 ac_status=$?
10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }
10114 then
10115 lt_cv_archive_cmds_need_lc=no
10116 else
10117 lt_cv_archive_cmds_need_lc=yes
10119 allow_undefined_flag=$lt_save_allow_undefined_flag
10120 else
10121 cat conftest.err 1>&5
10123 $RM conftest*
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10127 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10130 esac
10133 esac
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10294 if test "$GCC" = yes; then
10295 case $host_os in
10296 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10297 *) lt_awk_arg="/^libraries:/" ;;
10298 esac
10299 case $host_os in
10300 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10301 *) lt_sed_strip_eq="s,=/,/,g" ;;
10302 esac
10303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10304 case $lt_search_path_spec in
10305 *\;*)
10306 # if the path contains ";" then we assume it to be the separator
10307 # otherwise default to the standard path separator (i.e. ":") - it is
10308 # assumed that no part of a normal pathname contains ";" but that should
10309 # okay in the real world where ";" in dirpaths is itself problematic.
10310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10315 esac
10316 # Ok, now we have the path, separated by spaces, we can step through it
10317 # and add multilib dir if necessary.
10318 lt_tmp_lt_search_path_spec=
10319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10320 for lt_sys_path in $lt_search_path_spec; do
10321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10323 else
10324 test -d "$lt_sys_path" && \
10325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10327 done
10328 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10329 BEGIN {RS=" "; FS="/|\n";} {
10330 lt_foo="";
10331 lt_count=0;
10332 for (lt_i = NF; lt_i > 0; lt_i--) {
10333 if ($lt_i != "" && $lt_i != ".") {
10334 if ($lt_i == "..") {
10335 lt_count++;
10336 } else {
10337 if (lt_count == 0) {
10338 lt_foo="/" $lt_i lt_foo;
10339 } else {
10340 lt_count--;
10345 if (lt_foo != "") { lt_freq[lt_foo]++; }
10346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10348 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 # for these hosts.
10350 case $host_os in
10351 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10352 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10353 esac
10354 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10355 else
10356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10358 library_names_spec=
10359 libname_spec='lib$name'
10360 soname_spec=
10361 shrext_cmds=".so"
10362 postinstall_cmds=
10363 postuninstall_cmds=
10364 finish_cmds=
10365 finish_eval=
10366 shlibpath_var=
10367 shlibpath_overrides_runpath=unknown
10368 version_type=none
10369 dynamic_linker="$host_os ld.so"
10370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10371 need_lib_prefix=unknown
10372 hardcode_into_libs=no
10374 # when you set need_version to no, make sure it does not cause -set_version
10375 # flags to be left without arguments
10376 need_version=unknown
10378 case $host_os in
10379 aix3*)
10380 version_type=linux
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10382 shlibpath_var=LIBPATH
10384 # AIX 3 has no versioning support, so we append a major version to the name.
10385 soname_spec='${libname}${release}${shared_ext}$major'
10388 aix[4-9]*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 hardcode_into_libs=yes
10393 if test "$host_cpu" = ia64; then
10394 # AIX 5 supports IA64
10395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 else
10398 # With GCC up to 2.95.x, collect2 would create an import file
10399 # for dependence libraries. The import file would start with
10400 # the line `#! .'. This would cause the generated library to
10401 # depend on `.', always an invalid library. This was fixed in
10402 # development snapshots of GCC prior to 3.0.
10403 case $host_os in
10404 aix4 | aix4.[01] | aix4.[01].*)
10405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10406 echo ' yes '
10407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10409 else
10410 can_build_shared=no
10413 esac
10414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10415 # soname into executable. Probably we can add versioning support to
10416 # collect2, so additional links can be useful in future.
10417 if test "$aix_use_runtimelinking" = yes; then
10418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10419 # instead of lib<name>.a to let people know that these are not
10420 # typical AIX shared libraries.
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 else
10423 # We preserve .a as extension for shared libraries through AIX4.2
10424 # and later when we are not doing run time linking.
10425 library_names_spec='${libname}${release}.a $libname.a'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LIBPATH
10432 amigaos*)
10433 case $host_cpu in
10434 powerpc)
10435 # Since July 2007 AmigaOS4 officially supports .so libraries.
10436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 m68k)
10440 library_names_spec='$libname.ixlibrary $libname.a'
10441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10442 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10444 esac
10447 beos*)
10448 library_names_spec='${libname}${shared_ext}'
10449 dynamic_linker="$host_os ld.so"
10450 shlibpath_var=LIBRARY_PATH
10453 bsdi[45]*)
10454 version_type=linux
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10462 # the default ld.so.conf also contains /usr/contrib/lib and
10463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10464 # libtool to hard-code these into programs
10467 cygwin* | mingw* | pw32* | cegcc*)
10468 version_type=windows
10469 shrext_cmds=".dll"
10470 need_version=no
10471 need_lib_prefix=no
10473 case $GCC,$host_os in
10474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10475 library_names_spec='$libname.dll.a'
10476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10477 postinstall_cmds='base_file=`basename \${file}`~
10478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10479 dldir=$destdir/`dirname \$dlpath`~
10480 test -d \$dldir || mkdir -p \$dldir~
10481 $install_prog $dir/$dlname \$dldir/$dlname~
10482 chmod a+x \$dldir/$dlname~
10483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10487 dlpath=$dir/\$dldll~
10488 $RM \$dlpath'
10489 shlibpath_overrides_runpath=yes
10491 case $host_os in
10492 cygwin*)
10493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10498 mingw* | cegcc*)
10499 # MinGW DLLs use traditional 'lib' prefix
10500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502 pw32*)
10503 # pw32 DLLs use 'pw' prefix rather than 'lib'
10504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506 esac
10510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10512 esac
10513 dynamic_linker='Win32 ld.exe'
10514 # FIXME: first we should search . and the directory the executable is in
10515 shlibpath_var=PATH
10518 darwin* | rhapsody*)
10519 dynamic_linker="$host_os dyld"
10520 version_type=darwin
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10524 soname_spec='${libname}${release}${major}$shared_ext'
10525 shlibpath_overrides_runpath=yes
10526 shlibpath_var=DYLD_LIBRARY_PATH
10527 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10533 dgux*)
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10542 freebsd1*)
10543 dynamic_linker=no
10546 freebsd* | dragonfly*)
10547 # DragonFly does not have aout. When/if they implement a new
10548 # versioning mechanism, adjust this.
10549 if test -x /usr/bin/objformat; then
10550 objformat=`/usr/bin/objformat`
10551 else
10552 case $host_os in
10553 freebsd[123]*) objformat=aout ;;
10554 *) objformat=elf ;;
10555 esac
10557 version_type=freebsd-$objformat
10558 case $version_type in
10559 freebsd-elf*)
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10561 need_version=no
10562 need_lib_prefix=no
10564 freebsd-*)
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10566 need_version=yes
10568 esac
10569 shlibpath_var=LD_LIBRARY_PATH
10570 case $host_os in
10571 freebsd2*)
10572 shlibpath_overrides_runpath=yes
10574 freebsd3.[01]* | freebsdelf3.[01]*)
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10580 shlibpath_overrides_runpath=no
10581 hardcode_into_libs=yes
10583 *) # from 4.6 on, and DragonFly
10584 shlibpath_overrides_runpath=yes
10585 hardcode_into_libs=yes
10587 esac
10590 gnu*)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 hardcode_into_libs=yes
10600 haiku*)
10601 version_type=linux
10602 need_lib_prefix=no
10603 need_version=no
10604 dynamic_linker="$host_os runtime_loader"
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10610 hardcode_into_libs=yes
10613 hpux9* | hpux10* | hpux11*)
10614 # Give a soname corresponding to the major version so that dld.sl refuses to
10615 # link against other versions.
10616 version_type=sunos
10617 need_lib_prefix=no
10618 need_version=no
10619 case $host_cpu in
10620 ia64*)
10621 shrext_cmds='.so'
10622 hardcode_into_libs=yes
10623 dynamic_linker="$host_os dld.so"
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 if test "X$HPUX_IA64_MODE" = X32; then
10629 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10630 else
10631 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10635 hppa*64*)
10636 shrext_cmds='.sl'
10637 hardcode_into_libs=yes
10638 dynamic_linker="$host_os dld.sl"
10639 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10647 shrext_cmds='.sl'
10648 dynamic_linker="$host_os dld.sl"
10649 shlibpath_var=SHLIB_PATH
10650 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10654 esac
10655 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10656 postinstall_cmds='chmod 555 $lib'
10657 # or fails outright, so override atomically:
10658 install_override_mode=555
10661 interix[3-9]*)
10662 version_type=linux
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10673 irix5* | irix6* | nonstopux*)
10674 case $host_os in
10675 nonstopux*) version_type=nonstopux ;;
10677 if test "$lt_cv_prog_gnu_ld" = yes; then
10678 version_type=linux
10679 else
10680 version_type=irix
10681 fi ;;
10682 esac
10683 need_lib_prefix=no
10684 need_version=no
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10687 case $host_os in
10688 irix5* | nonstopux*)
10689 libsuff= shlibsuff=
10692 case $LD in # libtool.m4 will add one of these switches to LD
10693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10694 libsuff= shlibsuff= libmagic=32-bit;;
10695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10696 libsuff=32 shlibsuff=N32 libmagic=N32;;
10697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10699 *) libsuff= shlibsuff= libmagic=never-match;;
10700 esac
10702 esac
10703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10704 shlibpath_overrides_runpath=no
10705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10707 hardcode_into_libs=yes
10710 # No shared lib support for Linux oldld, aout, or coff.
10711 linux*oldld* | linux*aout* | linux*coff*)
10712 dynamic_linker=no
10715 # This must be Linux ELF.
10716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10717 version_type=linux
10718 need_lib_prefix=no
10719 need_version=no
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 shlibpath_overrides_runpath=no
10726 # Some binutils ld are patched to set DT_RUNPATH
10727 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 lt_cv_shlibpath_overrides_runpath=no
10731 save_LDFLAGS=$LDFLAGS
10732 save_libdir=$libdir
10733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10739 main ()
10743 return 0;
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10748 lt_cv_shlibpath_overrides_runpath=yes
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LDFLAGS=$save_LDFLAGS
10754 libdir=$save_libdir
10758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10760 # This implies no fast_install, which is unacceptable.
10761 # Some rework will be needed to allow for fast_install
10762 # before this can be enabled.
10763 hardcode_into_libs=yes
10765 # Append ld.so.conf contents to the search path
10766 if test -f /etc/ld.so.conf; then
10767 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;s/"//g;/^$/d' | tr '\n' ' '`
10768 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10771 # We used to test for /lib/ld.so.1 and disable shared libraries on
10772 # powerpc, because MkLinux only supported shared libraries with the
10773 # GNU dynamic linker. Since this was broken with cross compilers,
10774 # most powerpc-linux boxes support dynamic linking these days and
10775 # people can always --disable-shared, the test was removed, and we
10776 # assume the GNU/Linux dynamic linker is in use.
10777 dynamic_linker='GNU/Linux ld.so'
10780 netbsd*)
10781 version_type=sunos
10782 need_lib_prefix=no
10783 need_version=no
10784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10787 dynamic_linker='NetBSD (a.out) ld.so'
10788 else
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 dynamic_linker='NetBSD ld.elf_so'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10795 hardcode_into_libs=yes
10798 newsos6)
10799 version_type=linux
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes
10805 *nto* | *qnx*)
10806 version_type=qnx
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=no
10813 hardcode_into_libs=yes
10814 dynamic_linker='ldqnx.so'
10817 openbsd*)
10818 version_type=sunos
10819 sys_lib_dlsearch_path_spec="/usr/lib"
10820 need_lib_prefix=no
10821 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10822 case $host_os in
10823 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10824 *) need_version=no ;;
10825 esac
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10830 case $host_os in
10831 openbsd2.[89] | openbsd2.[89].*)
10832 shlibpath_overrides_runpath=no
10835 shlibpath_overrides_runpath=yes
10837 esac
10838 else
10839 shlibpath_overrides_runpath=yes
10843 os2*)
10844 libname_spec='$name'
10845 shrext_cmds=".dll"
10846 need_lib_prefix=no
10847 library_names_spec='$libname${shared_ext} $libname.a'
10848 dynamic_linker='OS/2 ld.exe'
10849 shlibpath_var=LIBPATH
10852 osf3* | osf4* | osf5*)
10853 version_type=osf
10854 need_lib_prefix=no
10855 need_version=no
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10860 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10863 rdos*)
10864 dynamic_linker=no
10867 solaris*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 hardcode_into_libs=yes
10876 # ldd complains unless libraries are executable
10877 postinstall_cmds='chmod +x $lib'
10880 sunos4*)
10881 version_type=sunos
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 if test "$with_gnu_ld" = yes; then
10887 need_lib_prefix=no
10889 need_version=yes
10892 sysv4 | sysv4.3*)
10893 version_type=linux
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 case $host_vendor in
10898 sni)
10899 shlibpath_overrides_runpath=no
10900 need_lib_prefix=no
10901 runpath_var=LD_RUN_PATH
10903 siemens)
10904 need_lib_prefix=no
10906 motorola)
10907 need_lib_prefix=no
10908 need_version=no
10909 shlibpath_overrides_runpath=no
10910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10912 esac
10915 sysv4*MP*)
10916 if test -d /usr/nec ;then
10917 version_type=linux
10918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10919 soname_spec='$libname${shared_ext}.$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10925 version_type=freebsd-elf
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 hardcode_into_libs=yes
10933 if test "$with_gnu_ld" = yes; then
10934 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10935 else
10936 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10937 case $host_os in
10938 sco3.2v5*)
10939 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10941 esac
10943 sys_lib_dlsearch_path_spec='/usr/lib'
10946 tpf*)
10947 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10948 version_type=linux
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=no
10954 hardcode_into_libs=yes
10957 uts4*)
10958 version_type=linux
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10965 dynamic_linker=no
10967 esac
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10969 $as_echo "$dynamic_linker" >&6; }
10970 test "$dynamic_linker" = no && can_build_shared=no
10972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10973 if test "$GCC" = yes; then
10974 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10977 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10978 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10980 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10981 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11077 hardcode_action=
11078 if test -n "$hardcode_libdir_flag_spec" ||
11079 test -n "$runpath_var" ||
11080 test "X$hardcode_automatic" = "Xyes" ; then
11082 # We can hardcode non-existent directories.
11083 if test "$hardcode_direct" != no &&
11084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11085 # have to relink, otherwise we might link with an installed library
11086 # when we should be linking with a yet-to-be-installed one
11087 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11088 test "$hardcode_minus_L" != no; then
11089 # Linking always hardcodes the temporary library directory.
11090 hardcode_action=relink
11091 else
11092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11093 hardcode_action=immediate
11095 else
11096 # We cannot hardcode anything, or else we can only hardcode existing
11097 # directories.
11098 hardcode_action=unsupported
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11101 $as_echo "$hardcode_action" >&6; }
11103 if test "$hardcode_action" = relink ||
11104 test "$inherit_rpath" = yes; then
11105 # Fast installation is not supported
11106 enable_fast_install=no
11107 elif test "$shlibpath_overrides_runpath" = yes ||
11108 test "$enable_shared" = no; then
11109 # Fast installation is not necessary
11110 enable_fast_install=needless
11118 if test "x$enable_dlopen" != xyes; then
11119 enable_dlopen=unknown
11120 enable_dlopen_self=unknown
11121 enable_dlopen_self_static=unknown
11122 else
11123 lt_cv_dlopen=no
11124 lt_cv_dlopen_libs=
11126 case $host_os in
11127 beos*)
11128 lt_cv_dlopen="load_add_on"
11129 lt_cv_dlopen_libs=
11130 lt_cv_dlopen_self=yes
11133 mingw* | pw32* | cegcc*)
11134 lt_cv_dlopen="LoadLibrary"
11135 lt_cv_dlopen_libs=
11138 cygwin*)
11139 lt_cv_dlopen="dlopen"
11140 lt_cv_dlopen_libs=
11143 darwin*)
11144 # if libdl is installed we need to link against it
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11146 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-ldl $LIBS"
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 char dlopen ();
11163 main ()
11165 return dlopen ();
11167 return 0;
11169 _ACEOF
11170 if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_dl_dlopen=yes
11172 else
11173 ac_cv_lib_dl_dlopen=no
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 LIBS=$ac_check_lib_save_LIBS
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11183 else
11185 lt_cv_dlopen="dyld"
11186 lt_cv_dlopen_libs=
11187 lt_cv_dlopen_self=yes
11194 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11195 if test "x$ac_cv_func_shl_load" = x""yes; then :
11196 lt_cv_dlopen="shl_load"
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11199 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldld $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char shl_load ();
11216 main ()
11218 return shl_load ();
11220 return 0;
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_dld_shl_load=yes
11225 else
11226 ac_cv_lib_dld_shl_load=no
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11233 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11234 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11235 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11236 else
11237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11238 if test "x$ac_cv_func_dlopen" = x""yes; then :
11239 lt_cv_dlopen="dlopen"
11240 else
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 ac_check_lib_save_LIBS=$LIBS
11247 LIBS="-ldl $LIBS"
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11251 /* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 char dlopen ();
11259 main ()
11261 return dlopen ();
11263 return 0;
11265 _ACEOF
11266 if ac_fn_c_try_link "$LINENO"; then :
11267 ac_cv_lib_dl_dlopen=yes
11268 else
11269 ac_cv_lib_dl_dlopen=no
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_lib_save_LIBS
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11277 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11281 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 ac_check_lib_save_LIBS=$LIBS
11286 LIBS="-lsvld $LIBS"
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char dlopen ();
11298 main ()
11300 return dlopen ();
11302 return 0;
11304 _ACEOF
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_lib_svld_dlopen=yes
11307 else
11308 ac_cv_lib_svld_dlopen=no
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11315 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11316 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11320 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11321 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldld $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dld_link ();
11337 main ()
11339 return dld_link ();
11341 return 0;
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_dld_dld_link=yes
11346 else
11347 ac_cv_lib_dld_dld_link=no
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11354 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11355 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11356 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11375 esac
11377 if test "x$lt_cv_dlopen" != xno; then
11378 enable_dlopen=yes
11379 else
11380 enable_dlopen=no
11383 case $lt_cv_dlopen in
11384 dlopen)
11385 save_CPPFLAGS="$CPPFLAGS"
11386 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11388 save_LDFLAGS="$LDFLAGS"
11389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11391 save_LIBS="$LIBS"
11392 LIBS="$lt_cv_dlopen_libs $LIBS"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11395 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11396 if test "${lt_cv_dlopen_self+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 if test "$cross_compiling" = yes; then :
11400 lt_cv_dlopen_self=cross
11401 else
11402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11403 lt_status=$lt_dlunknown
11404 cat > conftest.$ac_ext <<_LT_EOF
11405 #line 11405 "configure"
11406 #include "confdefs.h"
11408 #if HAVE_DLFCN_H
11409 #include <dlfcn.h>
11410 #endif
11412 #include <stdio.h>
11414 #ifdef RTLD_GLOBAL
11415 # define LT_DLGLOBAL RTLD_GLOBAL
11416 #else
11417 # ifdef DL_GLOBAL
11418 # define LT_DLGLOBAL DL_GLOBAL
11419 # else
11420 # define LT_DLGLOBAL 0
11421 # endif
11422 #endif
11424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11425 find out it does not work in some platform. */
11426 #ifndef LT_DLLAZY_OR_NOW
11427 # ifdef RTLD_LAZY
11428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11429 # else
11430 # ifdef DL_LAZY
11431 # define LT_DLLAZY_OR_NOW DL_LAZY
11432 # else
11433 # ifdef RTLD_NOW
11434 # define LT_DLLAZY_OR_NOW RTLD_NOW
11435 # else
11436 # ifdef DL_NOW
11437 # define LT_DLLAZY_OR_NOW DL_NOW
11438 # else
11439 # define LT_DLLAZY_OR_NOW 0
11440 # endif
11441 # endif
11442 # endif
11443 # endif
11444 #endif
11446 /* When -fvisbility=hidden is used, assume the code has been annotated
11447 correspondingly for the symbols needed. */
11448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11449 void fnord () __attribute__((visibility("default")));
11450 #endif
11452 void fnord () { int i=42; }
11453 int main ()
11455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11456 int status = $lt_dlunknown;
11458 if (self)
11460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11461 else
11463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11464 else puts (dlerror ());
11466 /* dlclose (self); */
11468 else
11469 puts (dlerror ());
11471 return status;
11473 _LT_EOF
11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11475 (eval $ac_link) 2>&5
11476 ac_status=$?
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11479 (./conftest; exit; ) >&5 2>/dev/null
11480 lt_status=$?
11481 case x$lt_status in
11482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11485 esac
11486 else :
11487 # compilation failed
11488 lt_cv_dlopen_self=no
11491 rm -fr conftest*
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11496 $as_echo "$lt_cv_dlopen_self" >&6; }
11498 if test "x$lt_cv_dlopen_self" = xyes; then
11499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11501 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11502 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 if test "$cross_compiling" = yes; then :
11506 lt_cv_dlopen_self_static=cross
11507 else
11508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11509 lt_status=$lt_dlunknown
11510 cat > conftest.$ac_ext <<_LT_EOF
11511 #line 11511 "configure"
11512 #include "confdefs.h"
11514 #if HAVE_DLFCN_H
11515 #include <dlfcn.h>
11516 #endif
11518 #include <stdio.h>
11520 #ifdef RTLD_GLOBAL
11521 # define LT_DLGLOBAL RTLD_GLOBAL
11522 #else
11523 # ifdef DL_GLOBAL
11524 # define LT_DLGLOBAL DL_GLOBAL
11525 # else
11526 # define LT_DLGLOBAL 0
11527 # endif
11528 #endif
11530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11531 find out it does not work in some platform. */
11532 #ifndef LT_DLLAZY_OR_NOW
11533 # ifdef RTLD_LAZY
11534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11535 # else
11536 # ifdef DL_LAZY
11537 # define LT_DLLAZY_OR_NOW DL_LAZY
11538 # else
11539 # ifdef RTLD_NOW
11540 # define LT_DLLAZY_OR_NOW RTLD_NOW
11541 # else
11542 # ifdef DL_NOW
11543 # define LT_DLLAZY_OR_NOW DL_NOW
11544 # else
11545 # define LT_DLLAZY_OR_NOW 0
11546 # endif
11547 # endif
11548 # endif
11549 # endif
11550 #endif
11552 /* When -fvisbility=hidden is used, assume the code has been annotated
11553 correspondingly for the symbols needed. */
11554 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11555 void fnord () __attribute__((visibility("default")));
11556 #endif
11558 void fnord () { int i=42; }
11559 int main ()
11561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562 int status = $lt_dlunknown;
11564 if (self)
11566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11567 else
11569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 else puts (dlerror ());
11572 /* dlclose (self); */
11574 else
11575 puts (dlerror ());
11577 return status;
11579 _LT_EOF
11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11581 (eval $ac_link) 2>&5
11582 ac_status=$?
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11585 (./conftest; exit; ) >&5 2>/dev/null
11586 lt_status=$?
11587 case x$lt_status in
11588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11591 esac
11592 else :
11593 # compilation failed
11594 lt_cv_dlopen_self_static=no
11597 rm -fr conftest*
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11602 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11605 CPPFLAGS="$save_CPPFLAGS"
11606 LDFLAGS="$save_LDFLAGS"
11607 LIBS="$save_LIBS"
11609 esac
11611 case $lt_cv_dlopen_self in
11612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11613 *) enable_dlopen_self=unknown ;;
11614 esac
11616 case $lt_cv_dlopen_self_static in
11617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11618 *) enable_dlopen_self_static=unknown ;;
11619 esac
11638 striplib=
11639 old_striplib=
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11642 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; }
11647 else
11648 # FIXME - insert some real tests, host_os isn't really good enough
11649 case $host_os in
11650 darwin*)
11651 if test -n "$STRIP" ; then
11652 striplib="$STRIP -x"
11653 old_striplib="$STRIP -S"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11655 $as_echo "yes" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11665 esac
11679 # Report which library types will actually be built
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11681 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11683 $as_echo "$can_build_shared" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11686 $as_echo_n "checking whether to build shared libraries... " >&6; }
11687 test "$can_build_shared" = "no" && enable_shared=no
11689 # On AIX, shared libraries and static libraries use the same namespace, and
11690 # are all built from PIC.
11691 case $host_os in
11692 aix3*)
11693 test "$enable_shared" = yes && enable_static=no
11694 if test -n "$RANLIB"; then
11695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11696 postinstall_cmds='$RANLIB $lib'
11700 aix[4-9]*)
11701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11702 test "$enable_shared" = yes && enable_static=no
11705 esac
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11707 $as_echo "$enable_shared" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11710 $as_echo_n "checking whether to build static libraries... " >&6; }
11711 # Make sure either enable_shared or enable_static is yes.
11712 test "$enable_shared" = yes || enable_static=yes
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11714 $as_echo "$enable_static" >&6; }
11720 ac_ext=c
11721 ac_cpp='$CPP $CPPFLAGS'
11722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11726 CC="$lt_save_CC"
11740 ac_config_commands="$ac_config_commands libtool"
11745 # Only expand once:
11749 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11751 # The tests for host and target for $enable_largefile require
11752 # canonical names.
11756 # As the $enable_largefile decision depends on --enable-plugins we must set it
11757 # even in directories otherwise not depending on the $plugins option.
11760 # Check whether --enable-plugins was given.
11761 if test "${enable_plugins+set}" = set; then :
11762 enableval=$enable_plugins; case "${enableval}" in
11763 yes | "") plugins=yes ;;
11764 no) plugins=no ;;
11765 *) plugins=yes ;;
11766 esac
11767 else
11768 plugins=no
11773 case "${host}" in
11774 sparc-*-solaris*|i[3-7]86-*-solaris*)
11775 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11776 # are mutually exclusive; and without procfs support, the bfd/ elf module
11777 # cannot provide certain routines such as elfcore_write_prpsinfo
11778 # or elfcore_write_prstatus. So unless the user explicitly requested
11779 # large-file support through the --enable-largefile switch, disable
11780 # large-file support in favor of procfs support.
11781 test "${target}" = "${host}" -a "x$plugins" = xno \
11782 && : ${enable_largefile="no"}
11784 esac
11786 # Check whether --enable-largefile was given.
11787 if test "${enable_largefile+set}" = set; then :
11788 enableval=$enable_largefile;
11791 if test "$enable_largefile" != no; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11795 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 ac_cv_sys_largefile_CC=no
11799 if test "$GCC" != yes; then
11800 ac_save_CC=$CC
11801 while :; do
11802 # IRIX 6.2 and later do not support large files by default,
11803 # so use the C compiler's -n32 option if that helps.
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #include <sys/types.h>
11807 /* Check that off_t can represent 2**63 - 1 correctly.
11808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11809 since some C++ compilers masquerading as C compilers
11810 incorrectly reject 9223372036854775807. */
11811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11813 && LARGE_OFF_T % 2147483647 == 1)
11814 ? 1 : -1];
11816 main ()
11820 return 0;
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 break
11826 rm -f core conftest.err conftest.$ac_objext
11827 CC="$CC -n32"
11828 if ac_fn_c_try_compile "$LINENO"; then :
11829 ac_cv_sys_largefile_CC=' -n32'; break
11831 rm -f core conftest.err conftest.$ac_objext
11832 break
11833 done
11834 CC=$ac_save_CC
11835 rm -f conftest.$ac_ext
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11840 if test "$ac_cv_sys_largefile_CC" != no; then
11841 CC=$CC$ac_cv_sys_largefile_CC
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11846 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 while :; do
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 #include <sys/types.h>
11853 /* Check that off_t can represent 2**63 - 1 correctly.
11854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11855 since some C++ compilers masquerading as C compilers
11856 incorrectly reject 9223372036854775807. */
11857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11859 && LARGE_OFF_T % 2147483647 == 1)
11860 ? 1 : -1];
11862 main ()
11866 return 0;
11868 _ACEOF
11869 if ac_fn_c_try_compile "$LINENO"; then :
11870 ac_cv_sys_file_offset_bits=no; break
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 #define _FILE_OFFSET_BITS 64
11876 #include <sys/types.h>
11877 /* Check that off_t can represent 2**63 - 1 correctly.
11878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11879 since some C++ compilers masquerading as C compilers
11880 incorrectly reject 9223372036854775807. */
11881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11883 && LARGE_OFF_T % 2147483647 == 1)
11884 ? 1 : -1];
11886 main ()
11890 return 0;
11892 _ACEOF
11893 if ac_fn_c_try_compile "$LINENO"; then :
11894 ac_cv_sys_file_offset_bits=64; break
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 ac_cv_sys_file_offset_bits=unknown
11898 break
11899 done
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11903 case $ac_cv_sys_file_offset_bits in #(
11904 no | unknown) ;;
11906 cat >>confdefs.h <<_ACEOF
11907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11908 _ACEOF
11910 esac
11911 rm -rf conftest*
11912 if test $ac_cv_sys_file_offset_bits = unknown; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11915 if test "${ac_cv_sys_large_files+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 while :; do
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921 #include <sys/types.h>
11922 /* Check that off_t can represent 2**63 - 1 correctly.
11923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11924 since some C++ compilers masquerading as C compilers
11925 incorrectly reject 9223372036854775807. */
11926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11928 && LARGE_OFF_T % 2147483647 == 1)
11929 ? 1 : -1];
11931 main ()
11935 return 0;
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"; then :
11939 ac_cv_sys_large_files=no; break
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 #define _LARGE_FILES 1
11945 #include <sys/types.h>
11946 /* Check that off_t can represent 2**63 - 1 correctly.
11947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11948 since some C++ compilers masquerading as C compilers
11949 incorrectly reject 9223372036854775807. */
11950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11952 && LARGE_OFF_T % 2147483647 == 1)
11953 ? 1 : -1];
11955 main ()
11959 return 0;
11961 _ACEOF
11962 if ac_fn_c_try_compile "$LINENO"; then :
11963 ac_cv_sys_large_files=1; break
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 ac_cv_sys_large_files=unknown
11967 break
11968 done
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11971 $as_echo "$ac_cv_sys_large_files" >&6; }
11972 case $ac_cv_sys_large_files in #(
11973 no | unknown) ;;
11975 cat >>confdefs.h <<_ACEOF
11976 #define _LARGE_FILES $ac_cv_sys_large_files
11977 _ACEOF
11979 esac
11980 rm -rf conftest*
11986 if test "$plugins" = "yes"; then
11987 PLUGINS_TRUE=
11988 PLUGINS_FALSE='#'
11989 else
11990 PLUGINS_TRUE='#'
11991 PLUGINS_FALSE=
11995 if test "$plugins" = "yes"; then
11996 if test "$enable_dlopen" != "yes" ; then
11997 as_fn_error "
11998 Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
12000 enable_targets="$enable_targets plugin"
12003 # Check whether --enable-64-bit-bfd was given.
12004 if test "${enable_64_bit_bfd+set}" = set; then :
12005 enableval=$enable_64_bit_bfd; case "${enableval}" in
12006 yes) want64=true ;;
12007 no) want64=false ;;
12008 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12009 esac
12010 else
12011 want64=false
12014 # Check whether --enable-targets was given.
12015 if test "${enable_targets+set}" = set; then :
12016 enableval=$enable_targets; case "${enableval}" in
12017 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12019 no) enable_targets= ;;
12020 *) enable_targets=$enableval ;;
12021 esac
12025 # Check whether --with-mmap was given.
12026 if test "${with_mmap+set}" = set; then :
12027 withval=$with_mmap; case "${withval}" in
12028 yes) want_mmap=true ;;
12029 no) want_mmap=false ;;
12030 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12031 esac
12032 else
12033 want_mmap=false
12036 # Check whether --enable-secureplt was given.
12037 if test "${enable_secureplt+set}" = set; then :
12038 enableval=$enable_secureplt; case "${enableval}" in
12039 yes) use_secureplt=true ;;
12040 no) use_secureplt=false ;;
12041 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12042 esac
12043 else
12044 use_secureplt=false
12046 if test $use_secureplt = true; then
12048 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12052 DEBUGDIR=${libdir}/debug
12054 # Check whether --with-separate-debug-dir was given.
12055 if test "${with_separate_debug_dir+set}" = set; then :
12056 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12061 # Check to see if we should allow the generation of
12062 # symbols with the ELF standard's STT_COMMON type.
12063 # Check whether --enable-elf-stt-common was given.
12064 if test "${enable_elf_stt_common+set}" = set; then :
12065 enableval=$enable_elf_stt_common; case "${enableval}" in
12066 yes) want_elf_stt_common=true ;;
12067 no) want_elf_stt_common=false ;;
12068 *) as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
12069 esac
12070 else
12071 # We have to choose a default behaviour. For native builds we could
12072 # test whether the loader supports the STT_COMMON type, but that would
12073 # mean that built binaries could not be exported to older systems where
12074 # the loader does not support it. So by default we always choose to
12075 # disable this feature.
12076 want_elf_stt_common=false
12078 if test $want_elf_stt_common = true; then
12080 $as_echo "#define USE_STT_COMMON 1" >>confdefs.h
12086 # Check whether --with-pkgversion was given.
12087 if test "${with_pkgversion+set}" = set; then :
12088 withval=$with_pkgversion; case "$withval" in
12089 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12090 no) PKGVERSION= ;;
12091 *) PKGVERSION="($withval) " ;;
12092 esac
12093 else
12094 PKGVERSION="(GNU Binutils) "
12102 # Check whether --with-bugurl was given.
12103 if test "${with_bugurl+set}" = set; then :
12104 withval=$with_bugurl; case "$withval" in
12105 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12106 no) BUGURL=
12108 *) BUGURL="$withval"
12110 esac
12111 else
12112 BUGURL="http://www.sourceware.org/bugzilla/"
12116 case ${BUGURL} in
12118 REPORT_BUGS_TO=
12119 REPORT_BUGS_TEXI=
12122 REPORT_BUGS_TO="<$BUGURL>"
12123 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12125 esac;
12131 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
12133 # Check whether --enable-werror was given.
12134 if test "${enable_werror+set}" = set; then :
12135 enableval=$enable_werror; case "${enableval}" in
12136 yes | y) ERROR_ON_WARNING="yes" ;;
12137 no | n) ERROR_ON_WARNING="no" ;;
12138 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12139 esac
12143 # Enable -Wno-format by default when using gcc on mingw
12144 case "${host}" in
12145 *-*-mingw32*)
12146 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12147 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12150 *) ;;
12151 esac
12153 # Enable -Werror by default when using gcc
12154 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12155 ERROR_ON_WARNING=yes
12158 NO_WERROR=
12159 if test "${ERROR_ON_WARNING}" = yes ; then
12160 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12161 NO_WERROR="-Wno-error"
12164 if test "${GCC}" = yes ; then
12165 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12168 # Check whether --enable-build-warnings was given.
12169 if test "${enable_build_warnings+set}" = set; then :
12170 enableval=$enable_build_warnings; case "${enableval}" in
12171 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12172 no) if test "${GCC}" = yes ; then
12173 WARN_CFLAGS="-w"
12174 fi;;
12175 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12176 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12177 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12178 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12179 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12180 esac
12184 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12185 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12192 ac_config_headers="$ac_config_headers config.h:config.in"
12195 if test -z "$target" ; then
12196 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12201 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12202 # Check whether --enable-maintainer-mode was given.
12203 if test "${enable_maintainer_mode+set}" = set; then :
12204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12205 else
12206 USE_MAINTAINER_MODE=no
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12210 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12211 if test $USE_MAINTAINER_MODE = yes; then
12212 MAINTAINER_MODE_TRUE=
12213 MAINTAINER_MODE_FALSE='#'
12214 else
12215 MAINTAINER_MODE_TRUE='#'
12216 MAINTAINER_MODE_FALSE=
12219 MAINT=$MAINTAINER_MODE_TRUE
12222 if false; then
12223 GENINSRC_NEVER_TRUE=
12224 GENINSRC_NEVER_FALSE='#'
12225 else
12226 GENINSRC_NEVER_TRUE='#'
12227 GENINSRC_NEVER_FALSE=
12230 case ${build_alias} in
12231 "") build_noncanonical=${build} ;;
12232 *) build_noncanonical=${build_alias} ;;
12233 esac
12235 case ${host_alias} in
12236 "") host_noncanonical=${build_noncanonical} ;;
12237 *) host_noncanonical=${host_alias} ;;
12238 esac
12240 case ${target_alias} in
12241 "") target_noncanonical=${host_noncanonical} ;;
12242 *) target_noncanonical=${target_alias} ;;
12243 esac
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12246 $as_echo_n "checking whether to install libbfd... " >&6; }
12247 # Check whether --enable-install-libbfd was given.
12248 if test "${enable_install_libbfd+set}" = set; then :
12249 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12250 else
12251 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12252 install_libbfd_p=yes
12253 else
12254 install_libbfd_p=no
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12259 $as_echo "$install_libbfd_p" >&6; }
12260 if test $install_libbfd_p = yes; then
12261 INSTALL_LIBBFD_TRUE=
12262 INSTALL_LIBBFD_FALSE='#'
12263 else
12264 INSTALL_LIBBFD_TRUE='#'
12265 INSTALL_LIBBFD_FALSE=
12268 # Need _noncanonical variables for this.
12273 # libbfd.a is a host library containing target dependent code
12274 bfdlibdir='$(libdir)'
12275 bfdincludedir='$(includedir)'
12276 if test "${host}" != "${target}"; then
12277 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12278 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12288 host64=false
12289 target64=false
12290 bfd_default_target_size=32
12292 # host stuff:
12294 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
12295 # If we haven't got the data from the intl directory,
12296 # assume NLS is disabled.
12297 USE_NLS=no
12298 LIBINTL=
12299 LIBINTL_DEP=
12300 INCINTL=
12301 XGETTEXT=
12302 GMSGFMT=
12303 POSUB=
12305 if test -f ../intl/config.intl; then
12306 . ../intl/config.intl
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12309 $as_echo_n "checking whether NLS is requested... " >&6; }
12310 if test x"$USE_NLS" != xyes; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12315 $as_echo "yes" >&6; }
12317 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12321 $as_echo_n "checking for catalogs to be installed... " >&6; }
12322 # Look for .po and .gmo files in the source directory.
12323 CATALOGS=
12324 XLINGUAS=
12325 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12326 # If there aren't any .gmo files the shell will give us the
12327 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12328 # weeded out.
12329 case "$cat" in *\**)
12330 continue;;
12331 esac
12332 # The quadruple backslash is collapsed to a double backslash
12333 # by the backticks, then collapsed again by the double quotes,
12334 # leaving us with one backslash in the sed expression (right
12335 # before the dot that mustn't act as a wildcard).
12336 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12337 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12338 # The user is allowed to set LINGUAS to a list of languages to
12339 # install catalogs for. If it's empty that means "all of them."
12340 if test "x$LINGUAS" = x; then
12341 CATALOGS="$CATALOGS $cat"
12342 XLINGUAS="$XLINGUAS $lang"
12343 else
12344 case "$LINGUAS" in *$lang*)
12345 CATALOGS="$CATALOGS $cat"
12346 XLINGUAS="$XLINGUAS $lang"
12348 esac
12350 done
12351 LINGUAS="$XLINGUAS"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12353 $as_echo "$LINGUAS" >&6; }
12356 DATADIRNAME=share
12358 INSTOBJEXT=.mo
12360 GENCAT=gencat
12362 CATOBJEXT=.gmo
12366 MKINSTALLDIRS=
12367 if test -n "$ac_aux_dir"; then
12368 case "$ac_aux_dir" in
12369 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12370 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12371 esac
12373 if test -z "$MKINSTALLDIRS"; then
12374 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12380 $as_echo_n "checking whether NLS is requested... " >&6; }
12381 # Check whether --enable-nls was given.
12382 if test "${enable_nls+set}" = set; then :
12383 enableval=$enable_nls; USE_NLS=$enableval
12384 else
12385 USE_NLS=yes
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12389 $as_echo "$USE_NLS" >&6; }
12396 # Prepare PATH_SEPARATOR.
12397 # The user is always right.
12398 if test "${PATH_SEPARATOR+set}" != set; then
12399 echo "#! /bin/sh" >conf$$.sh
12400 echo "exit 0" >>conf$$.sh
12401 chmod +x conf$$.sh
12402 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12403 PATH_SEPARATOR=';'
12404 else
12405 PATH_SEPARATOR=:
12407 rm -f conf$$.sh
12410 # Find out how to test for executable files. Don't use a zero-byte file,
12411 # as systems may use methods other than mode bits to determine executability.
12412 cat >conf$$.file <<_ASEOF
12413 #! /bin/sh
12414 exit 0
12415 _ASEOF
12416 chmod +x conf$$.file
12417 if test -x conf$$.file >/dev/null 2>&1; then
12418 ac_executable_p="test -x"
12419 else
12420 ac_executable_p="test -f"
12422 rm -f conf$$.file
12424 # Extract the first word of "msgfmt", so it can be a program name with args.
12425 set dummy msgfmt; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 case "$MSGFMT" in
12432 [\\/]* | ?:[\\/]*)
12433 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12436 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12437 for ac_dir in $PATH; do
12438 IFS="$ac_save_IFS"
12439 test -z "$ac_dir" && ac_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12442 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12443 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12444 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12445 break 2
12448 done
12449 done
12450 IFS="$ac_save_IFS"
12451 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12453 esac
12455 MSGFMT="$ac_cv_path_MSGFMT"
12456 if test "$MSGFMT" != ":"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12458 $as_echo "$MSGFMT" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12464 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12465 set dummy gmsgfmt; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 case $GMSGFMT in
12472 [\\/]* | ?:[\\/]*)
12473 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12487 done
12488 done
12489 IFS=$as_save_IFS
12491 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12493 esac
12495 GMSGFMT=$ac_cv_path_GMSGFMT
12496 if test -n "$GMSGFMT"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12498 $as_echo "$GMSGFMT" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12507 # Prepare PATH_SEPARATOR.
12508 # The user is always right.
12509 if test "${PATH_SEPARATOR+set}" != set; then
12510 echo "#! /bin/sh" >conf$$.sh
12511 echo "exit 0" >>conf$$.sh
12512 chmod +x conf$$.sh
12513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12514 PATH_SEPARATOR=';'
12515 else
12516 PATH_SEPARATOR=:
12518 rm -f conf$$.sh
12521 # Find out how to test for executable files. Don't use a zero-byte file,
12522 # as systems may use methods other than mode bits to determine executability.
12523 cat >conf$$.file <<_ASEOF
12524 #! /bin/sh
12525 exit 0
12526 _ASEOF
12527 chmod +x conf$$.file
12528 if test -x conf$$.file >/dev/null 2>&1; then
12529 ac_executable_p="test -x"
12530 else
12531 ac_executable_p="test -f"
12533 rm -f conf$$.file
12535 # Extract the first word of "xgettext", so it can be a program name with args.
12536 set dummy xgettext; ac_word=$2
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538 $as_echo_n "checking for $ac_word... " >&6; }
12539 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 case "$XGETTEXT" in
12543 [\\/]* | ?:[\\/]*)
12544 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12547 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12548 for ac_dir in $PATH; do
12549 IFS="$ac_save_IFS"
12550 test -z "$ac_dir" && ac_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12553 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12554 (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
12555 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12556 break 2
12559 done
12560 done
12561 IFS="$ac_save_IFS"
12562 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12564 esac
12566 XGETTEXT="$ac_cv_path_XGETTEXT"
12567 if test "$XGETTEXT" != ":"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12569 $as_echo "$XGETTEXT" >&6; }
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12575 rm -f messages.po
12578 # Prepare PATH_SEPARATOR.
12579 # The user is always right.
12580 if test "${PATH_SEPARATOR+set}" != set; then
12581 echo "#! /bin/sh" >conf$$.sh
12582 echo "exit 0" >>conf$$.sh
12583 chmod +x conf$$.sh
12584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12585 PATH_SEPARATOR=';'
12586 else
12587 PATH_SEPARATOR=:
12589 rm -f conf$$.sh
12592 # Find out how to test for executable files. Don't use a zero-byte file,
12593 # as systems may use methods other than mode bits to determine executability.
12594 cat >conf$$.file <<_ASEOF
12595 #! /bin/sh
12596 exit 0
12597 _ASEOF
12598 chmod +x conf$$.file
12599 if test -x conf$$.file >/dev/null 2>&1; then
12600 ac_executable_p="test -x"
12601 else
12602 ac_executable_p="test -f"
12604 rm -f conf$$.file
12606 # Extract the first word of "msgmerge", so it can be a program name with args.
12607 set dummy msgmerge; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 case "$MSGMERGE" in
12614 [\\/]* | ?:[\\/]*)
12615 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12618 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12619 for ac_dir in $PATH; do
12620 IFS="$ac_save_IFS"
12621 test -z "$ac_dir" && ac_dir=.
12622 for ac_exec_ext in '' $ac_executable_extensions; do
12623 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12624 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12625 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12626 break 2
12629 done
12630 done
12631 IFS="$ac_save_IFS"
12632 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12634 esac
12636 MSGMERGE="$ac_cv_path_MSGMERGE"
12637 if test "$MSGMERGE" != ":"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12639 $as_echo "$MSGMERGE" >&6; }
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12646 if test "$GMSGFMT" != ":"; then
12647 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12648 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12650 else
12651 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12653 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12654 GMSGFMT=":"
12658 if test "$XGETTEXT" != ":"; then
12659 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12660 (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
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12664 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12665 XGETTEXT=":"
12667 rm -f messages.po
12670 ac_config_commands="$ac_config_commands default-1"
12674 # Permit host specific settings.
12675 . ${srcdir}/configure.host
12680 BFD_HOST_64BIT_LONG=0
12681 BFD_HOST_64BIT_LONG_LONG=0
12682 BFD_HOST_64_BIT_DEFINED=0
12683 BFD_HOST_64_BIT=
12684 BFD_HOST_U_64_BIT=
12685 BFD_HOSTPTR_T="unsigned long"
12687 # The cast to long int works around a bug in the HP C Compiler
12688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12690 # This bug is HP SR number 8606223364.
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12692 $as_echo_n "checking size of long long... " >&6; }
12693 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12698 else
12699 if test "$ac_cv_type_long_long" = yes; then
12700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12702 { as_fn_set_status 77
12703 as_fn_error "cannot compute sizeof (long long)
12704 See \`config.log' for more details." "$LINENO" 5; }; }
12705 else
12706 ac_cv_sizeof_long_long=0
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12712 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12716 cat >>confdefs.h <<_ACEOF
12717 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12718 _ACEOF
12721 # The cast to long int works around a bug in the HP C Compiler
12722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12724 # This bug is HP SR number 8606223364.
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12726 $as_echo_n "checking size of void *... " >&6; }
12727 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12732 else
12733 if test "$ac_cv_type_void_p" = yes; then
12734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12736 { as_fn_set_status 77
12737 as_fn_error "cannot compute sizeof (void *)
12738 See \`config.log' for more details." "$LINENO" 5; }; }
12739 else
12740 ac_cv_sizeof_void_p=0
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12750 cat >>confdefs.h <<_ACEOF
12751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12752 _ACEOF
12755 # The cast to long int works around a bug in the HP C Compiler
12756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12758 # This bug is HP SR number 8606223364.
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12760 $as_echo_n "checking size of long... " >&6; }
12761 if test "${ac_cv_sizeof_long+set}" = set; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12766 else
12767 if test "$ac_cv_type_long" = yes; then
12768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12770 { as_fn_set_status 77
12771 as_fn_error "cannot compute sizeof (long)
12772 See \`config.log' for more details." "$LINENO" 5; }; }
12773 else
12774 ac_cv_sizeof_long=0
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12780 $as_echo "$ac_cv_sizeof_long" >&6; }
12784 cat >>confdefs.h <<_ACEOF
12785 #define SIZEOF_LONG $ac_cv_sizeof_long
12786 _ACEOF
12790 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12791 host64=true
12794 if test "x${ac_cv_sizeof_long}" = "x8"; then
12795 BFD_HOST_64BIT_LONG=1
12796 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12797 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12798 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12799 BFD_HOST_64BIT_LONG_LONG=1
12800 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12801 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12802 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12803 BFD_HOSTPTR_T="unsigned long long"
12807 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12808 BFD_HOST_64_BIT_DEFINED=1
12809 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12810 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12820 # Put a plausible default for CC_FOR_BUILD in Makefile.
12821 if test -z "$CC_FOR_BUILD"; then
12822 if test "x$cross_compiling" = "xno"; then
12823 CC_FOR_BUILD='$(CC)'
12824 else
12825 CC_FOR_BUILD=gcc
12829 # Also set EXEEXT_FOR_BUILD.
12830 if test "x$cross_compiling" = "xno"; then
12831 EXEEXT_FOR_BUILD='$(EXEEXT)'
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12834 $as_echo_n "checking for build system executable suffix... " >&6; }
12835 if test "${bfd_cv_build_exeext+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 rm -f conftest*
12839 echo 'int main () { return 0; }' > conftest.c
12840 bfd_cv_build_exeext=
12841 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12842 for file in conftest.*; do
12843 case $file in
12844 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12845 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12846 esac
12847 done
12848 rm -f conftest*
12849 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12852 $as_echo "$bfd_cv_build_exeext" >&6; }
12853 EXEEXT_FOR_BUILD=""
12854 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12858 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12859 do :
12860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12862 eval as_val=\$$as_ac_Header
12863 if test "x$as_val" = x""yes; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12866 _ACEOF
12870 done
12872 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12873 do :
12874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12876 eval as_val=\$$as_ac_Header
12877 if test "x$as_val" = x""yes; then :
12878 cat >>confdefs.h <<_ACEOF
12879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880 _ACEOF
12884 done
12888 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12890 acx_cv_header_stdint=stddef.h
12891 acx_cv_header_stdint_kind="(already complete)"
12892 for i in stdint.h $inttype_headers; do
12893 unset ac_cv_type_uintptr_t
12894 unset ac_cv_type_uintmax_t
12895 unset ac_cv_type_int_least32_t
12896 unset ac_cv_type_int_fast32_t
12897 unset ac_cv_type_uint64_t
12898 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12899 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12900 #include <$i>
12902 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12903 acx_cv_header_stdint=$i
12904 else
12905 continue
12908 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12909 #include <$i>
12911 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12913 else
12914 acx_cv_header_stdint_kind="(mostly complete)"
12917 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12918 #include <$i>
12920 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12922 else
12923 acx_cv_header_stdint_kind="(mostly complete)"
12926 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12927 #include <$i>
12929 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12931 else
12932 acx_cv_header_stdint_kind="(mostly complete)"
12935 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12936 #include <$i>
12938 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12940 else
12941 acx_cv_header_stdint_kind="(lacks uint64_t)"
12944 break
12945 done
12946 if test "$acx_cv_header_stdint" = stddef.h; then
12947 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12948 for i in stdint.h $inttype_headers; do
12949 unset ac_cv_type_uintptr_t
12950 unset ac_cv_type_uint32_t
12951 unset ac_cv_type_uint64_t
12952 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12953 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12954 #include <$i>
12956 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12957 acx_cv_header_stdint=$i
12958 else
12959 continue
12962 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12963 #include <$i>
12965 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12969 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12970 #include <$i>
12972 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12976 break
12977 done
12979 if test "$acx_cv_header_stdint" = stddef.h; then
12980 acx_cv_header_stdint_kind="(u_intXX_t style)"
12981 for i in sys/types.h $inttype_headers; do
12982 unset ac_cv_type_u_int32_t
12983 unset ac_cv_type_u_int64_t
12984 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12985 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12986 #include <$i>
12988 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12989 acx_cv_header_stdint=$i
12990 else
12991 continue
12994 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12995 #include <$i>
12997 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
13001 break
13002 done
13004 if test "$acx_cv_header_stdint" = stddef.h; then
13005 acx_cv_header_stdint_kind="(using manual detection)"
13008 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13009 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13010 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13011 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13012 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13014 # ----------------- Summarize what we found so far
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13017 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13019 case `$as_basename -- bfd_stdint.h ||
13020 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13021 Xbfd_stdint.h : 'X\(//\)$' \| \
13022 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13023 $as_echo X/bfd_stdint.h |
13024 sed '/^.*\/\([^/][^/]*\)\/*$/{
13025 s//\1/
13028 /^X\/\(\/\/\)$/{
13029 s//\1/
13032 /^X\/\(\/\).*/{
13033 s//\1/
13036 s/.*/./; q'` in
13037 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13038 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13039 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13040 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13041 *) ;;
13042 esac
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13045 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13047 # ----------------- done included file, check C basic types --------
13049 # Lacking an uintptr_t? Test size of void *
13050 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13051 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13054 # This bug is HP SR number 8606223364.
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13056 $as_echo_n "checking size of void *... " >&6; }
13057 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13062 else
13063 if test "$ac_cv_type_void_p" = yes; then
13064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13066 { as_fn_set_status 77
13067 as_fn_error "cannot compute sizeof (void *)
13068 See \`config.log' for more details." "$LINENO" 5; }; }
13069 else
13070 ac_cv_sizeof_void_p=0
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13076 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13080 cat >>confdefs.h <<_ACEOF
13081 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13082 _ACEOF
13085 esac
13087 # Lacking an uint64_t? Test size of long
13088 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13089 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13092 # This bug is HP SR number 8606223364.
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13094 $as_echo_n "checking size of long... " >&6; }
13095 if test "${ac_cv_sizeof_long+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13100 else
13101 if test "$ac_cv_type_long" = yes; then
13102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13104 { as_fn_set_status 77
13105 as_fn_error "cannot compute sizeof (long)
13106 See \`config.log' for more details." "$LINENO" 5; }; }
13107 else
13108 ac_cv_sizeof_long=0
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13114 $as_echo "$ac_cv_sizeof_long" >&6; }
13118 cat >>confdefs.h <<_ACEOF
13119 #define SIZEOF_LONG $ac_cv_sizeof_long
13120 _ACEOF
13123 esac
13125 if test $acx_cv_header_stdint = stddef.h; then
13126 # Lacking a good header? Test size of everything and deduce all types.
13127 # The cast to long int works around a bug in the HP C Compiler
13128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13130 # This bug is HP SR number 8606223364.
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13132 $as_echo_n "checking size of int... " >&6; }
13133 if test "${ac_cv_sizeof_int+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13138 else
13139 if test "$ac_cv_type_int" = yes; then
13140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13142 { as_fn_set_status 77
13143 as_fn_error "cannot compute sizeof (int)
13144 See \`config.log' for more details." "$LINENO" 5; }; }
13145 else
13146 ac_cv_sizeof_int=0
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13152 $as_echo "$ac_cv_sizeof_int" >&6; }
13156 cat >>confdefs.h <<_ACEOF
13157 #define SIZEOF_INT $ac_cv_sizeof_int
13158 _ACEOF
13161 # The cast to long int works around a bug in the HP C Compiler
13162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13164 # This bug is HP SR number 8606223364.
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13166 $as_echo_n "checking size of short... " >&6; }
13167 if test "${ac_cv_sizeof_short+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13172 else
13173 if test "$ac_cv_type_short" = yes; then
13174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13176 { as_fn_set_status 77
13177 as_fn_error "cannot compute sizeof (short)
13178 See \`config.log' for more details." "$LINENO" 5; }; }
13179 else
13180 ac_cv_sizeof_short=0
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13186 $as_echo "$ac_cv_sizeof_short" >&6; }
13190 cat >>confdefs.h <<_ACEOF
13191 #define SIZEOF_SHORT $ac_cv_sizeof_short
13192 _ACEOF
13195 # The cast to long int works around a bug in the HP C Compiler
13196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13198 # This bug is HP SR number 8606223364.
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13200 $as_echo_n "checking size of char... " >&6; }
13201 if test "${ac_cv_sizeof_char+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13206 else
13207 if test "$ac_cv_type_char" = yes; then
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13210 { as_fn_set_status 77
13211 as_fn_error "cannot compute sizeof (char)
13212 See \`config.log' for more details." "$LINENO" 5; }; }
13213 else
13214 ac_cv_sizeof_char=0
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13220 $as_echo "$ac_cv_sizeof_char" >&6; }
13224 cat >>confdefs.h <<_ACEOF
13225 #define SIZEOF_CHAR $ac_cv_sizeof_char
13226 _ACEOF
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13231 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13232 case "$ac_cv_sizeof_char" in
13233 1) acx_cv_type_int8_t=char ;;
13234 *) { as_fn_set_status please report a bug
13235 as_fn_error "no 8-bit type" "$LINENO" 5; }
13236 esac
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13238 $as_echo "$acx_cv_type_int8_t" >&6; }
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13241 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13242 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13243 2:*) acx_cv_type_int16_t=int ;;
13244 *:2) acx_cv_type_int16_t=short ;;
13245 *) { as_fn_set_status please report a bug
13246 as_fn_error "no 16-bit type" "$LINENO" 5; }
13247 esac
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13249 $as_echo "$acx_cv_type_int16_t" >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13252 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13253 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13254 4:*) acx_cv_type_int32_t=int ;;
13255 *:4) acx_cv_type_int32_t=long ;;
13256 *) { as_fn_set_status please report a bug
13257 as_fn_error "no 32-bit type" "$LINENO" 5; }
13258 esac
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13260 $as_echo "$acx_cv_type_int32_t" >&6; }
13263 # These tests are here to make the output prettier
13265 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13266 case "$ac_cv_sizeof_long" in
13267 8) acx_cv_type_int64_t=long ;;
13268 esac
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13270 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13272 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13275 # Now we can use the above types
13277 if test "$ac_cv_type_uintptr_t" != yes; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13279 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13280 case $ac_cv_sizeof_void_p in
13281 2) acx_cv_type_intptr_t=int16_t ;;
13282 4) acx_cv_type_intptr_t=int32_t ;;
13283 8) acx_cv_type_intptr_t=int64_t ;;
13284 *) { as_fn_set_status please report a bug
13285 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13286 esac
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13288 $as_echo "$acx_cv_type_intptr_t" >&6; }
13291 # ----------------- done all checks, emit header -------------
13292 ac_config_commands="$ac_config_commands bfd_stdint.h"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13297 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13298 if test "${ac_cv_header_time+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #include <sys/types.h>
13304 #include <sys/time.h>
13305 #include <time.h>
13308 main ()
13310 if ((struct tm *) 0)
13311 return 0;
13313 return 0;
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"; then :
13317 ac_cv_header_time=yes
13318 else
13319 ac_cv_header_time=no
13321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13324 $as_echo "$ac_cv_header_time" >&6; }
13325 if test $ac_cv_header_time = yes; then
13327 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13331 ac_header_dirent=no
13332 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13333 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13335 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <sys/types.h>
13342 #include <$ac_hdr>
13345 main ()
13347 if ((DIR *) 0)
13348 return 0;
13350 return 0;
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354 eval "$as_ac_Header=yes"
13355 else
13356 eval "$as_ac_Header=no"
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 eval ac_res=\$$as_ac_Header
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13362 $as_echo "$ac_res" >&6; }
13363 eval as_val=\$$as_ac_Header
13364 if test "x$as_val" = x""yes; then :
13365 cat >>confdefs.h <<_ACEOF
13366 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13367 _ACEOF
13369 ac_header_dirent=$ac_hdr; break
13372 done
13373 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13374 if test $ac_header_dirent = dirent.h; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13376 $as_echo_n "checking for library containing opendir... " >&6; }
13377 if test "${ac_cv_search_opendir+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 ac_func_search_save_LIBS=$LIBS
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13387 #ifdef __cplusplus
13388 extern "C"
13389 #endif
13390 char opendir ();
13392 main ()
13394 return opendir ();
13396 return 0;
13398 _ACEOF
13399 for ac_lib in '' dir; do
13400 if test -z "$ac_lib"; then
13401 ac_res="none required"
13402 else
13403 ac_res=-l$ac_lib
13404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 ac_cv_search_opendir=$ac_res
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext
13411 if test "${ac_cv_search_opendir+set}" = set; then :
13412 break
13414 done
13415 if test "${ac_cv_search_opendir+set}" = set; then :
13417 else
13418 ac_cv_search_opendir=no
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13424 $as_echo "$ac_cv_search_opendir" >&6; }
13425 ac_res=$ac_cv_search_opendir
13426 if test "$ac_res" != no; then :
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13433 $as_echo_n "checking for library containing opendir... " >&6; }
13434 if test "${ac_cv_search_opendir+set}" = set; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 ac_func_search_save_LIBS=$LIBS
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char opendir ();
13449 main ()
13451 return opendir ();
13453 return 0;
13455 _ACEOF
13456 for ac_lib in '' x; do
13457 if test -z "$ac_lib"; then
13458 ac_res="none required"
13459 else
13460 ac_res=-l$ac_lib
13461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13463 if ac_fn_c_try_link "$LINENO"; then :
13464 ac_cv_search_opendir=$ac_res
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext
13468 if test "${ac_cv_search_opendir+set}" = set; then :
13469 break
13471 done
13472 if test "${ac_cv_search_opendir+set}" = set; then :
13474 else
13475 ac_cv_search_opendir=no
13477 rm conftest.$ac_ext
13478 LIBS=$ac_func_search_save_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13481 $as_echo "$ac_cv_search_opendir" >&6; }
13482 ac_res=$ac_cv_search_opendir
13483 if test "$ac_res" != no; then :
13484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13491 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13492 if test "${gcc_cv_header_string+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 #include <string.h>
13498 #include <strings.h>
13500 main ()
13504 return 0;
13506 _ACEOF
13507 if ac_fn_c_try_compile "$LINENO"; then :
13508 gcc_cv_header_string=yes
13509 else
13510 gcc_cv_header_string=no
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13515 $as_echo "$gcc_cv_header_string" >&6; }
13516 if test $gcc_cv_header_string = yes; then
13518 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13522 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13523 do :
13524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13526 eval as_val=\$$as_ac_var
13527 if test "x$as_val" = x""yes; then :
13528 cat >>confdefs.h <<_ACEOF
13529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13530 _ACEOF
13533 done
13535 for ac_func in strtoull
13536 do :
13537 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13538 if test "x$ac_cv_func_strtoull" = x""yes; then :
13539 cat >>confdefs.h <<_ACEOF
13540 #define HAVE_STRTOULL 1
13541 _ACEOF
13544 done
13547 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13548 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13549 ac_have_decl=1
13550 else
13551 ac_have_decl=0
13554 cat >>confdefs.h <<_ACEOF
13555 #define HAVE_DECL_BASENAME $ac_have_decl
13556 _ACEOF
13558 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13559 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13560 ac_have_decl=1
13561 else
13562 ac_have_decl=0
13565 cat >>confdefs.h <<_ACEOF
13566 #define HAVE_DECL_FTELLO $ac_have_decl
13567 _ACEOF
13569 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13570 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13571 ac_have_decl=1
13572 else
13573 ac_have_decl=0
13576 cat >>confdefs.h <<_ACEOF
13577 #define HAVE_DECL_FTELLO64 $ac_have_decl
13578 _ACEOF
13580 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13581 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13582 ac_have_decl=1
13583 else
13584 ac_have_decl=0
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_DECL_FSEEKO $ac_have_decl
13589 _ACEOF
13591 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13592 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13593 ac_have_decl=1
13594 else
13595 ac_have_decl=0
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13600 _ACEOF
13604 case "${host}" in
13605 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13607 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13609 esac
13611 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13612 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13613 ac_have_decl=1
13614 else
13615 ac_have_decl=0
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_DECL_FFS $ac_have_decl
13620 _ACEOF
13622 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13623 if test "x$ac_cv_have_decl_free" = x""yes; then :
13624 ac_have_decl=1
13625 else
13626 ac_have_decl=0
13629 cat >>confdefs.h <<_ACEOF
13630 #define HAVE_DECL_FREE $ac_have_decl
13631 _ACEOF
13633 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13634 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13635 ac_have_decl=1
13636 else
13637 ac_have_decl=0
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_DECL_GETENV $ac_have_decl
13642 _ACEOF
13644 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13645 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13646 ac_have_decl=1
13647 else
13648 ac_have_decl=0
13651 cat >>confdefs.h <<_ACEOF
13652 #define HAVE_DECL_MALLOC $ac_have_decl
13653 _ACEOF
13655 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13656 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13657 ac_have_decl=1
13658 else
13659 ac_have_decl=0
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_DECL_REALLOC $ac_have_decl
13664 _ACEOF
13666 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13667 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13668 ac_have_decl=1
13669 else
13670 ac_have_decl=0
13673 cat >>confdefs.h <<_ACEOF
13674 #define HAVE_DECL_STPCPY $ac_have_decl
13675 _ACEOF
13677 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13678 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13679 ac_have_decl=1
13680 else
13681 ac_have_decl=0
13684 cat >>confdefs.h <<_ACEOF
13685 #define HAVE_DECL_STRSTR $ac_have_decl
13686 _ACEOF
13688 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13689 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13690 ac_have_decl=1
13691 else
13692 ac_have_decl=0
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_DECL_SNPRINTF $ac_have_decl
13697 _ACEOF
13699 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13700 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13701 ac_have_decl=1
13702 else
13703 ac_have_decl=0
13706 cat >>confdefs.h <<_ACEOF
13707 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13708 _ACEOF
13711 # Link in zlib if we can. This allows us to read compressed debug sections.
13712 # This is used only by compress.c.
13714 # See if the user specified whether he wants zlib support or not.
13716 # Check whether --with-zlib was given.
13717 if test "${with_zlib+set}" = set; then :
13718 withval=$with_zlib;
13719 else
13720 with_zlib=auto
13724 if test "$with_zlib" != "no"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13726 $as_echo_n "checking for library containing zlibVersion... " >&6; }
13727 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 ac_func_search_save_LIBS=$LIBS
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13734 /* Override any GCC internal prototype to avoid an error.
13735 Use char because int might match the return type of a GCC
13736 builtin and then its argument prototype would still apply. */
13737 #ifdef __cplusplus
13738 extern "C"
13739 #endif
13740 char zlibVersion ();
13742 main ()
13744 return zlibVersion ();
13746 return 0;
13748 _ACEOF
13749 for ac_lib in '' z; do
13750 if test -z "$ac_lib"; then
13751 ac_res="none required"
13752 else
13753 ac_res=-l$ac_lib
13754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 ac_cv_search_zlibVersion=$ac_res
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext
13761 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13762 break
13764 done
13765 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13767 else
13768 ac_cv_search_zlibVersion=no
13770 rm conftest.$ac_ext
13771 LIBS=$ac_func_search_save_LIBS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13774 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13775 ac_res=$ac_cv_search_zlibVersion
13776 if test "$ac_res" != no; then :
13777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13778 for ac_header in zlib.h
13779 do :
13780 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13781 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_ZLIB_H 1
13784 _ACEOF
13788 done
13792 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13793 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13798 # If we are configured native, pick a core file support file.
13799 COREFILE=
13800 COREFLAG=
13801 TRAD_HEADER=
13802 if test "${target}" = "${host}"; then
13803 case "${host}" in
13804 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13805 COREFILE=''
13807 alpha*-*-linux-*)
13808 COREFILE=trad-core.lo
13809 TRAD_HEADER='"hosts/alphalinux.h"'
13811 alpha*-*-netbsd* | alpha*-*-openbsd*)
13812 COREFILE=netbsd-core.lo
13814 alpha*-*-*) COREFILE=osf-core.lo ;;
13815 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13816 COREFILE='' ;;
13817 arm-*-netbsd* | arm-*-openbsd*)
13818 COREFILE=netbsd-core.lo
13820 arm-*-riscix) COREFILE=trad-core.lo ;;
13821 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
13822 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
13823 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
13824 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
13825 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13826 hppa*-*-netbsd* | hppa*-*-openbsd*)
13827 COREFILE=netbsd-core.lo
13830 i370-*-*)
13831 COREFILE=trad-core.lo
13832 TRAD_HEADER='"hosts/i370linux.h"'
13835 i[3-7]86-sequent-bsd*)
13836 COREFILE=trad-core.lo
13837 TRAD_HEADER='"hosts/symmetry.h"'
13839 i[3-7]86-sequent-sysv4*) ;;
13840 i[3-7]86-sequent-sysv*)
13841 COREFILE=trad-core.lo
13842 TRAD_HEADER='"hosts/symmetry.h"'
13844 i[3-7]86-*-bsdi)
13845 COREFILE=
13847 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*)
13848 COREFILE=trad-core.lo
13849 TRAD_HEADER='"hosts/i386bsd.h"'
13851 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13852 COREFILE=''
13853 TRAD_HEADER='"hosts/i386bsd.h"'
13855 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13856 COREFILE=netbsd-core.lo
13858 i[3-7]86-esix-sysv3*)
13859 COREFILE=trad-core.lo
13860 TRAD_HEADER='"hosts/esix.h"'
13862 i[3-7]86-*-sco3.2v5*)
13863 COREFILE=sco5-core.lo
13865 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13866 COREFILE=trad-core.lo
13867 TRAD_HEADER='"hosts/i386sco.h"'
13869 i[3-7]86-*-mach3*)
13870 COREFILE=trad-core.lo
13871 TRAD_HEADER='"hosts/i386mach3.h"'
13873 i[3-7]86-*-linux-*)
13874 COREFILE=trad-core.lo
13875 TRAD_HEADER='"hosts/i386linux.h"'
13877 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
13878 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
13879 i860-*-mach3* | i860-*-osf1*)
13880 COREFILE=trad-core.lo
13881 TRAD_HEADER='"hosts/i860mach3.h"'
13883 mips-*-netbsd* | mips*-*-openbsd*)
13884 COREFILE=netbsd-core.lo
13886 mips-dec-*)
13887 COREFILE=trad-core.lo
13888 TRAD_HEADER='"hosts/decstation.h"'
13890 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
13891 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
13892 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
13893 mips-*-sysv4*) ;;
13894 mips-*-sysv* | mips-*-riscos*)
13895 COREFILE=trad-core.lo
13896 TRAD_HEADER='"hosts/riscos.h"'
13898 mips-sony-bsd*)
13899 COREFILE=trad-core.lo
13900 TRAD_HEADER='"hosts/news-mips.h"'
13902 m68*-bull*-sysv*)
13903 COREFILE=trad-core.lo
13904 TRAD_HEADER='"hosts/dpx2.h"'
13906 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
13907 m68*-hp-bsd*)
13908 COREFILE=trad-core.lo
13909 TRAD_HEADER='"hosts/hp300bsd.h"'
13911 m68*-*-linux-*)
13912 COREFILE=trad-core.lo
13913 TRAD_HEADER='"hosts/m68klinux.h"'
13915 m68*-motorola-sysv*)
13916 COREFILE=trad-core.lo
13917 TRAD_HEADER='"hosts/delta68.h"'
13919 m68*-sony-*)
13920 COREFILE=trad-core.lo
13921 TRAD_HEADER='"hosts/news.h"'
13923 m68*-*-netbsd* | m68*-*-openbsd*)
13924 COREFILE=netbsd-core.lo
13926 m68*-apple-aux*)
13927 COREFILE=trad-core.lo
13928 TRAD_HEADER='"hosts/m68kaux.h"'
13930 m88*-*-sysv4*)
13932 m88*-motorola-sysv*)
13933 COREFILE=ptrace-core.lo
13935 m88*-*-mach3*)
13936 COREFILE=trad-core.lo
13937 TRAD_HEADER='"hosts/m88kmach3.h"'
13939 m88*-*-openbsd*)
13940 COREFILE=netbsd-core.lo
13942 ns32k-pc532-mach)
13943 COREFILE=trad-core.lo
13944 TRAD_HEADER='"hosts/pc532mach.h"'
13946 ns32k-*-netbsd* | ns32k-*-openbsd*)
13947 COREFILE=netbsd-core.lo
13949 rs6000-*-lynx*)
13950 COREFILE=lynx-core.lo
13952 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13953 COREFILE=rs6000-core.lo
13954 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13956 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13957 COREFILE=rs6000-core.lo
13958 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13959 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13960 # have c_impl as a member of struct core_dumpx
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13962 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13965 #include <core.h>
13967 main ()
13969 struct core_dumpx c; c.c_impl = 0;
13971 return 0;
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13976 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13979 $as_echo "yes" >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
13987 rs6000-*-*) COREFILE=rs6000-core.lo ;;
13988 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
13989 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
13990 powerpc-*-beos*) ;;
13991 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
13992 COREFILE='' ;;
13993 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
13994 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
13995 s390*-*-*) COREFILE=trad-core.lo ;;
13996 sh*-*-netbsd* | sh*-*-openbsd*)
13997 COREFILE=netbsd-core.lo
13999 sparc-*-netbsd* | sparc*-*-openbsd*)
14000 COREFILE=netbsd-core.lo
14002 tahoe-*-*)
14003 COREFILE=trad-core.lo
14004 TRAD_HEADER='"hosts/tahoe.h"'
14006 vax-*-netbsd* | vax-*-openbsd*)
14007 COREFILE=netbsd-core.lo
14009 vax-*-ultrix2*)
14010 COREFILE=trad-core.lo
14011 TRAD_HEADER='"hosts/vaxult2.h"'
14013 vax-*-ultrix*)
14014 COREFILE=trad-core.lo
14015 TRAD_HEADER='"hosts/vaxult2.h"'
14017 vax-*-linux-*)
14018 COREFILE=trad-core.lo
14019 TRAD_HEADER='"hosts/vaxlinux.h"'
14021 vax-*-*)
14022 COREFILE=trad-core.lo
14023 TRAD_HEADER='"hosts/vaxbsd.h"'
14025 x86_64-*-netbsd* | x86_64-*-openbsd*)
14026 COREFILE=netbsd-core.lo
14028 esac
14030 case "$COREFILE" in
14031 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14032 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14033 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14034 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14035 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14036 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14037 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14038 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14039 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14040 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14041 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14042 esac
14044 # ELF corefile support has several flavors, but all of
14045 # them use something called <sys/procfs.h>
14046 for ac_header in sys/procfs.h
14047 do :
14048 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_SYS_PROCFS_H 1
14052 _ACEOF
14056 done
14058 if test "$ac_cv_header_sys_procfs_h" = yes; then
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14060 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14061 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14067 #define _SYSCALL32
14068 /* Needed for new procfs interface on sparc-solaris. */
14069 #define _STRUCTURED_PROC 1
14070 #include <sys/procfs.h>
14072 main ()
14074 prstatus_t avar
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_compile "$LINENO"; then :
14080 bfd_cv_have_sys_procfs_type_prstatus_t=yes
14081 else
14082 bfd_cv_have_sys_procfs_type_prstatus_t=no
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
14090 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14094 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14097 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14098 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14104 #define _SYSCALL32
14105 /* Needed for new procfs interface on sparc-solaris. */
14106 #define _STRUCTURED_PROC 1
14107 #include <sys/procfs.h>
14109 main ()
14111 prstatus32_t avar
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14117 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
14118 else
14119 bfd_cv_have_sys_procfs_type_prstatus32_t=no
14122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14127 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14131 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14134 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14135 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14141 #define _SYSCALL32
14142 /* Needed for new procfs interface on sparc-solaris. */
14143 #define _STRUCTURED_PROC 1
14144 #include <sys/procfs.h>
14146 main ()
14148 prstatus_t avar; void* aref = (void*) &avar.pr_who
14150 return 0;
14152 _ACEOF
14153 if ac_fn_c_try_compile "$LINENO"; then :
14154 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14155 else
14156 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14164 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14168 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14171 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14172 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14178 #define _SYSCALL32
14179 /* Needed for new procfs interface on sparc-solaris. */
14180 #define _STRUCTURED_PROC 1
14181 #include <sys/procfs.h>
14183 main ()
14185 prstatus32_t avar; void* aref = (void*) &avar.pr_who
14187 return 0;
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
14192 else
14193 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14201 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14205 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14208 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14209 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14215 #define _SYSCALL32
14216 /* Needed for new procfs interface on sparc-solaris. */
14217 #define _STRUCTURED_PROC 1
14218 #include <sys/procfs.h>
14220 main ()
14222 pstatus_t avar
14224 return 0;
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14229 else
14230 bfd_cv_have_sys_procfs_type_pstatus_t=no
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14238 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14242 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14245 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14246 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 #define _SYSCALL32
14253 /* Needed for new procfs interface on sparc-solaris. */
14254 #define _STRUCTURED_PROC 1
14255 #include <sys/procfs.h>
14257 main ()
14259 pxstatus_t avar
14261 return 0;
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"; then :
14265 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14266 else
14267 bfd_cv_have_sys_procfs_type_pxstatus_t=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14275 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14279 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14282 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14283 if test "${bfd_cv_have_sys_procfs_type_pstatus32_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 /* Needed for new procfs interface on sparc-solaris. */
14291 #define _STRUCTURED_PROC 1
14292 #include <sys/procfs.h>
14294 main ()
14296 pstatus32_t avar
14298 return 0;
14300 _ACEOF
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14303 else
14304 bfd_cv_have_sys_procfs_type_pstatus32_t=no
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14312 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14316 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14319 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14320 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14326 #define _SYSCALL32
14327 /* Needed for new procfs interface on sparc-solaris. */
14328 #define _STRUCTURED_PROC 1
14329 #include <sys/procfs.h>
14331 main ()
14333 prpsinfo_t avar
14335 return 0;
14337 _ACEOF
14338 if ac_fn_c_try_compile "$LINENO"; then :
14339 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14340 else
14341 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14349 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14353 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14356 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14357 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 #define _SYSCALL32
14364 /* Needed for new procfs interface on sparc-solaris. */
14365 #define _STRUCTURED_PROC 1
14366 #include <sys/procfs.h>
14368 main ()
14370 prpsinfo32_t avar
14372 return 0;
14374 _ACEOF
14375 if ac_fn_c_try_compile "$LINENO"; then :
14376 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14377 else
14378 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14384 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14386 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14390 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14393 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14394 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14400 #define _SYSCALL32
14401 /* Needed for new procfs interface on sparc-solaris. */
14402 #define _STRUCTURED_PROC 1
14403 #include <sys/procfs.h>
14405 main ()
14407 psinfo_t avar
14409 return 0;
14411 _ACEOF
14412 if ac_fn_c_try_compile "$LINENO"; then :
14413 bfd_cv_have_sys_procfs_type_psinfo_t=yes
14414 else
14415 bfd_cv_have_sys_procfs_type_psinfo_t=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14423 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14427 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14430 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14431 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14437 #define _SYSCALL32
14438 /* Needed for new procfs interface on sparc-solaris. */
14439 #define _STRUCTURED_PROC 1
14440 #include <sys/procfs.h>
14442 main ()
14444 psinfo32_t avar
14446 return 0;
14448 _ACEOF
14449 if ac_fn_c_try_compile "$LINENO"; then :
14450 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14451 else
14452 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14460 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14464 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14467 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14468 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 #define _SYSCALL32
14475 /* Needed for new procfs interface on sparc-solaris. */
14476 #define _STRUCTURED_PROC 1
14477 #include <sys/procfs.h>
14479 main ()
14481 lwpstatus_t avar
14483 return 0;
14485 _ACEOF
14486 if ac_fn_c_try_compile "$LINENO"; then :
14487 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14488 else
14489 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14497 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14501 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14504 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14505 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14511 #define _SYSCALL32
14512 /* Needed for new procfs interface on sparc-solaris. */
14513 #define _STRUCTURED_PROC 1
14514 #include <sys/procfs.h>
14516 main ()
14518 lwpxstatus_t avar
14520 return 0;
14522 _ACEOF
14523 if ac_fn_c_try_compile "$LINENO"; then :
14524 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14525 else
14526 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14534 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14538 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14541 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14542 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14548 #define _SYSCALL32
14549 /* Needed for new procfs interface on sparc-solaris. */
14550 #define _STRUCTURED_PROC 1
14551 #include <sys/procfs.h>
14553 main ()
14555 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14557 return 0;
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14562 else
14563 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14571 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14575 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14578 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14579 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14585 #define _SYSCALL32
14586 /* Needed for new procfs interface on sparc-solaris. */
14587 #define _STRUCTURED_PROC 1
14588 #include <sys/procfs.h>
14590 main ()
14592 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14594 return 0;
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14599 else
14600 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14606 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14608 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14612 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14615 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14616 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 #define _SYSCALL32
14623 /* Needed for new procfs interface on sparc-solaris. */
14624 #define _STRUCTURED_PROC 1
14625 #include <sys/procfs.h>
14627 main ()
14629 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14631 return 0;
14633 _ACEOF
14634 if ac_fn_c_try_compile "$LINENO"; then :
14635 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14636 else
14637 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14645 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14649 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14652 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14653 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 /* end confdefs.h. */
14659 #define _SYSCALL32
14660 /* Needed for new procfs interface on sparc-solaris. */
14661 #define _STRUCTURED_PROC 1
14662 #include <sys/procfs.h>
14664 main ()
14666 win32_pstatus_t avar
14668 return 0;
14670 _ACEOF
14671 if ac_fn_c_try_compile "$LINENO"; then :
14672 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14673 else
14674 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14682 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14686 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14692 if test -n "$TRAD_HEADER"; then
14694 cat >>confdefs.h <<_ACEOF
14695 #define TRAD_HEADER $TRAD_HEADER
14696 _ACEOF
14700 # Check if linker supports --as-needed and --no-as-needed options
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14702 $as_echo_n "checking linker --as-needed support... " >&6; }
14703 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 bfd_cv_ld_as_needed=no
14707 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14708 bfd_cv_ld_as_needed=yes
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14713 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14715 LIBM=
14716 case $host in
14717 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14718 # These system don't have libm, or don't need it
14720 *-ncr-sysv4.3*)
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14722 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14723 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 ac_check_lib_save_LIBS=$LIBS
14727 LIBS="-lmw $LIBS"
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14731 /* Override any GCC internal prototype to avoid an error.
14732 Use char because int might match the return type of a GCC
14733 builtin and then its argument prototype would still apply. */
14734 #ifdef __cplusplus
14735 extern "C"
14736 #endif
14737 char _mwvalidcheckl ();
14739 main ()
14741 return _mwvalidcheckl ();
14743 return 0;
14745 _ACEOF
14746 if ac_fn_c_try_link "$LINENO"; then :
14747 ac_cv_lib_mw__mwvalidcheckl=yes
14748 else
14749 ac_cv_lib_mw__mwvalidcheckl=no
14751 rm -f core conftest.err conftest.$ac_objext \
14752 conftest$ac_exeext conftest.$ac_ext
14753 LIBS=$ac_check_lib_save_LIBS
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14756 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14757 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14758 LIBM="-lmw"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14762 $as_echo_n "checking for cos in -lm... " >&6; }
14763 if test "${ac_cv_lib_m_cos+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-lm $LIBS"
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 /* Override any GCC internal prototype to avoid an error.
14772 Use char because int might match the return type of a GCC
14773 builtin and then its argument prototype would still apply. */
14774 #ifdef __cplusplus
14775 extern "C"
14776 #endif
14777 char cos ();
14779 main ()
14781 return cos ();
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787 ac_cv_lib_m_cos=yes
14788 else
14789 ac_cv_lib_m_cos=no
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14796 $as_echo "$ac_cv_lib_m_cos" >&6; }
14797 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14798 LIBM="$LIBM -lm"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14804 $as_echo_n "checking for cos in -lm... " >&6; }
14805 if test "${ac_cv_lib_m_cos+set}" = set; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lm $LIBS"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char cos ();
14821 main ()
14823 return cos ();
14825 return 0;
14827 _ACEOF
14828 if ac_fn_c_try_link "$LINENO"; then :
14829 ac_cv_lib_m_cos=yes
14830 else
14831 ac_cv_lib_m_cos=no
14833 rm -f core conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14835 LIBS=$ac_check_lib_save_LIBS
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14838 $as_echo "$ac_cv_lib_m_cos" >&6; }
14839 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14840 LIBM="-lm"
14844 esac
14848 # When building a shared libbfd, link against the pic version of libiberty
14849 # so that apps that use libbfd won't need libiberty just to satisfy any
14850 # libbfd references.
14851 # We can't do that if a pic libiberty is unavailable since including non-pic
14852 # code would insert text relocations into libbfd.
14853 SHARED_LIBADD=
14854 SHARED_LDFLAGS=
14855 if test "$enable_shared" = "yes"; then
14856 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14857 if test -n "$x"; then
14858 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14861 # More hacks to build DLLs on Windows.
14862 case "${host}" in
14863 *-*-cygwin*)
14864 SHARED_LDFLAGS="-no-undefined"
14865 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14867 esac
14869 if test -n "$SHARED_LIBADD"; then
14870 if test -n "$LIBM"; then
14871 if test x"$bfd_cv_ld_as_needed" = xyes; then
14872 # Link against libm only when needed. Put -lc, -lm inside -Wl
14873 # to stop libtool reordering these options.
14874 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14875 else
14876 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14884 # target stuff:
14886 # Canonicalize the secondary target names.
14887 if test -n "$enable_targets" ; then
14888 for targ in `echo $enable_targets | sed 's/,/ /g'`
14890 result=`$ac_config_sub $targ 2>/dev/null`
14891 if test -n "$result" ; then
14892 canon_targets="$canon_targets $result"
14893 else
14894 # Allow targets that config.sub doesn't recognize, like "all".
14895 canon_targets="$canon_targets $targ"
14897 done
14900 all_targets=false
14901 defvec=
14902 selvecs=
14903 assocvecs=
14904 selarchs=
14905 TDEFINES=
14906 for targ in $target $canon_targets
14908 if test "x$targ" = "xall"; then
14909 all_targets=true
14910 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14911 else
14912 . $srcdir/config.bfd
14913 if test "x$targ" = "x$target"; then
14914 defvec=$targ_defvec
14916 selvecs="$selvecs $targ_defvec $targ_selvecs"
14917 selarchs="$selarchs $targ_archs"
14918 TDEFINES="$TDEFINES $targ_cflags"
14920 done
14923 # This processing still needs to be done if we're to decide properly whether
14924 # 64-bit support needs to be compiled in. Currently, it will be included if
14925 # the default or any other explicitly requested target requires it; it
14926 # will not be included on a 32-bit host if no 64-bit target is requested, and
14927 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14928 # used.
14930 # uniq the default and selected vectors in all the configured targets.
14931 f=""
14932 for i in $selvecs ; do
14933 case " $f " in
14934 *" $i "*) ;;
14935 *) f="$f $i" ;;
14936 esac
14937 done
14938 selvecs="$f"
14941 # uniq the associated vectors in all the configured targets.
14942 f=""
14943 for i in $assocvecs ; do
14944 case " $f " in
14945 *" $i "*) ;;
14946 *) f="$f $i" ;;
14947 esac
14948 done
14949 assocvecs="$f"
14952 # uniq the architectures in all the configured targets.
14953 f=""
14954 for i in $selarchs ; do
14955 case " $f " in
14956 *" $i "*) ;;
14957 *) f="$f $i" ;;
14958 esac
14959 done
14960 selarchs="$f"
14962 # Target backend .o files.
14965 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
14966 elf-eh-frame.lo dwarf1.lo"
14968 for vec in $selvecs
14970 target_size=32
14971 case "$vec" in
14972 # This list is alphabetized to make it easy to compare
14973 # with the two vector lists in targets.c. For the same reason,
14974 # use one entry per line, even though this leads to long lines.
14975 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14976 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
14977 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
14978 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14979 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14980 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
14981 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14982 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
14983 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14984 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
14985 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14986 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
14987 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14988 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
14989 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14990 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
14991 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14992 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14993 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
14994 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14995 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
14996 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
14997 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
14998 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
14999 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15000 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15001 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15002 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15003 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15004 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15005 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15006 bfd_elf32_bigarm_symbian_vec)
15007 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15008 bfd_elf32_bigarm_vxworks_vec)
15009 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15010 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15011 bfd_elf32_bigmips_vxworks_vec)
15012 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15013 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15014 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
15015 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15016 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15017 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15018 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15019 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15020 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15021 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15022 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15023 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15024 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15025 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15026 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15027 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15028 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
15029 bfd_elf32_i386_dragonfly_vec)
15030 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15031 bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15032 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15033 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15034 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15035 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15036 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15037 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
15038 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
15039 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
15040 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15041 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15042 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15043 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15044 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15045 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15046 bfd_elf32_littlearm_symbian_vec)
15047 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15048 bfd_elf32_littlearm_vxworks_vec)
15049 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15050 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15051 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15052 bfd_elf32_littlemips_vxworks_vec)
15053 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15054 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15055 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15056 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15057 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15058 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15059 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15060 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15061 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15062 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
15063 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15064 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15065 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15066 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15067 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15068 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15069 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15070 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15071 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15072 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15073 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15074 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15075 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15076 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
15077 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
15078 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15079 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
15080 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15081 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15082 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15083 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15084 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15085 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
15086 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15087 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15088 # FIXME: We include cofflink.lo not because it's needed for
15089 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
15090 # which needs it but does not list it. Should be fixed in right place.
15091 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15092 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15093 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15094 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15095 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15096 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15097 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15098 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15099 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15100 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15101 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15102 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15103 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15104 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15105 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15106 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15107 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15108 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
15109 bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15110 bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15111 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15112 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15113 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15114 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15115 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15116 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15117 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15118 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15119 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15120 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15121 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15122 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15123 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 ;;
15124 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15125 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15126 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15127 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15128 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15129 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15130 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15131 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 ;;
15132 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15133 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15134 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15135 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15136 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15137 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15138 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15139 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15140 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15141 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15142 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15143 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15144 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 ;;
15145 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 ;;
15146 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15147 bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15148 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15149 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15150 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15151 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15152 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15153 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15154 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15155 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15156 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15157 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15158 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15159 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15160 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15161 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15162 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
15163 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
15164 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
15165 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
15166 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15167 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
15168 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
15169 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15170 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15171 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
15172 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15173 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
15174 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
15175 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
15176 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15177 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15178 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
15179 i386msdos_vec) tb="$tb i386msdos.lo" ;;
15180 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
15181 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
15182 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15183 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15184 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15185 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15186 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
15187 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15188 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
15189 ieee_vec) tb="$tb ieee.lo" ;;
15190 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15191 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15192 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
15193 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15194 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
15195 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
15196 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
15197 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
15198 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
15199 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
15200 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
15201 mach_o_be_vec) tb="$tb mach-o.lo" ;;
15202 mach_o_le_vec) tb="$tb mach-o.lo" ;;
15203 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
15204 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
15205 mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
15206 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15207 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15208 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15209 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15210 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15211 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15212 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
15213 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15214 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15215 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15216 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15217 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
15218 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15219 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15220 pef_vec) tb="$tb pef.lo" ;;
15221 pef_xlib_vec) tb="$tb pef.lo" ;;
15222 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15223 plugin_vec) tb="$tb plugin.lo" ;;
15224 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15225 ppcboot_vec) tb="$tb ppcboot.lo" ;;
15226 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
15227 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15228 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15229 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15230 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15231 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15232 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
15233 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15234 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15235 som_vec) tb="$tb som.lo" ;;
15236 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
15237 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
15238 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
15239 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15240 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15241 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
15242 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
15243 sym_vec) tb="$tb xsym.lo" ;;
15244 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
15245 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
15246 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
15247 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
15248 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
15249 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
15250 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
15251 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
15252 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
15253 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
15254 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
15255 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
15256 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
15257 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
15258 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
15259 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15260 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15261 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
15262 versados_vec) tb="$tb versados.lo" ;;
15263 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
15264 vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
15265 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
15266 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
15267 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
15268 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
15269 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
15271 # These appear out of order in targets.c
15272 srec_vec) tb="$tb srec.lo" ;;
15273 symbolsrec_vec) tb="$tb srec.lo" ;;
15274 tekhex_vec) tb="$tb tekhex.lo" ;;
15275 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
15276 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
15278 "") ;;
15279 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15280 esac
15282 if test ${target_size} = 64; then
15283 target64=true
15285 if test x"${vec}" = x"${defvec}"; then
15286 bfd_default_target_size=${target_size}
15288 done
15290 # Target architecture .o files.
15291 # A couple of CPUs use shorter file names to avoid problems on DOS
15292 # filesystems.
15293 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15295 # Weed out duplicate .o files.
15296 f=""
15297 for i in $tb ; do
15298 case " $f " in
15299 *" $i "*) ;;
15300 *) f="$f $i" ;;
15301 esac
15302 done
15303 tb="$f"
15305 f=""
15306 for i in $ta ; do
15307 case " $f " in
15308 *" $i "*) ;;
15309 *) f="$f $i" ;;
15310 esac
15311 done
15312 ta="$f"
15314 bfd_backends="$tb"
15315 bfd_machines="$ta"
15317 if test x${all_targets} = xtrue ; then
15318 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15319 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15320 selvecs=
15321 havevecs=
15322 selarchs=
15323 test -n "$assocvecs" &&
15324 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15325 else # all_targets is true
15326 # Only set these if they will be nonempty, for the clever echo.
15327 havevecs=
15328 assocvecs=
15329 test -n "$selvecs" &&
15330 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15331 test -n "$selvecs" &&
15332 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15333 test -n "$selarchs" &&
15334 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15335 fi # all_targets is true
15337 case ${host64}-${target64}-${want64} in
15338 *true*)
15339 wordsize=64
15340 bfd64_libs='$(BFD64_LIBS)'
15341 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15342 if test $BFD_HOST_64_BIT_DEFINED = 0; then
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15344 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15346 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15348 if test -n "$GCC" ; then
15349 bad_64bit_gcc=no;
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15351 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15352 # Add more tests for gcc versions with non-working 64-bit support here.
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 :__GNUC__:__GNUC_MINOR__:__i386__:
15356 _ACEOF
15357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15358 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15359 bad_64bit_gcc=yes;
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15361 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15362 else
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15366 rm -f conftest*
15368 if test $bad_64bit_gcc = yes ; then
15369 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15373 false-false-false)
15374 wordsize=32
15375 all_backends='$(BFD32_BACKENDS)'
15377 esac
15386 if test "$plugins" = "yes"; then
15387 supports_plugins=1
15388 else
15389 supports_plugins=0
15393 # Determine the host dependant file_ptr a.k.a. off_t type. In order
15394 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15395 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15396 # Hopefully a reasonable assumption since fseeko et.al. should be
15397 # upward compatible.
15398 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15399 do :
15400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15401 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15402 eval as_val=\$$as_ac_var
15403 if test "x$as_val" = x""yes; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15406 _ACEOF
15409 done
15411 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15412 # The cast to long int works around a bug in the HP C Compiler
15413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15415 # This bug is HP SR number 8606223364.
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15417 $as_echo_n "checking size of off_t... " >&6; }
15418 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15423 else
15424 if test "$ac_cv_type_off_t" = yes; then
15425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15427 { as_fn_set_status 77
15428 as_fn_error "cannot compute sizeof (off_t)
15429 See \`config.log' for more details." "$LINENO" 5; }; }
15430 else
15431 ac_cv_sizeof_off_t=0
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15437 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15441 cat >>confdefs.h <<_ACEOF
15442 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15443 _ACEOF
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15448 $as_echo_n "checking file_ptr type... " >&6; }
15449 bfd_file_ptr="long"
15450 bfd_ufile_ptr="unsigned long"
15451 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15452 -o x"${ac_cv_sizeof_off_t}" = x8; then
15453 bfd_file_ptr=BFD_HOST_64_BIT
15454 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15457 $as_echo "$bfd_file_ptr" >&6; }
15462 tdefaults=""
15463 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15464 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15465 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15466 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15467 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15470 for ac_header in stdlib.h unistd.h
15471 do :
15472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15474 eval as_val=\$$as_ac_Header
15475 if test "x$as_val" = x""yes; then :
15476 cat >>confdefs.h <<_ACEOF
15477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 _ACEOF
15482 done
15484 for ac_func in getpagesize
15485 do :
15486 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15487 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15488 cat >>confdefs.h <<_ACEOF
15489 #define HAVE_GETPAGESIZE 1
15490 _ACEOF
15493 done
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15496 $as_echo_n "checking for working mmap... " >&6; }
15497 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 if test "$cross_compiling" = yes; then :
15501 ac_cv_func_mmap_fixed_mapped=no
15502 else
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 $ac_includes_default
15506 /* malloc might have been renamed as rpl_malloc. */
15507 #undef malloc
15509 /* Thanks to Mike Haertel and Jim Avera for this test.
15510 Here is a matrix of mmap possibilities:
15511 mmap private not fixed
15512 mmap private fixed at somewhere currently unmapped
15513 mmap private fixed at somewhere already mapped
15514 mmap shared not fixed
15515 mmap shared fixed at somewhere currently unmapped
15516 mmap shared fixed at somewhere already mapped
15517 For private mappings, we should verify that changes cannot be read()
15518 back from the file, nor mmap's back from the file at a different
15519 address. (There have been systems where private was not correctly
15520 implemented like the infamous i386 svr4.0, and systems where the
15521 VM page cache was not coherent with the file system buffer cache
15522 like early versions of FreeBSD and possibly contemporary NetBSD.)
15523 For shared mappings, we should conversely verify that changes get
15524 propagated back to all the places they're supposed to be.
15526 Grep wants private fixed already mapped.
15527 The main things grep needs to know about mmap are:
15528 * does it exist and is it safe to write into the mmap'd area
15529 * how to use it (BSD variants) */
15531 #include <fcntl.h>
15532 #include <sys/mman.h>
15534 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15535 char *malloc ();
15536 #endif
15538 /* This mess was copied from the GNU getpagesize.h. */
15539 #ifndef HAVE_GETPAGESIZE
15540 /* Assume that all systems that can run configure have sys/param.h. */
15541 # ifndef HAVE_SYS_PARAM_H
15542 # define HAVE_SYS_PARAM_H 1
15543 # endif
15545 # ifdef _SC_PAGESIZE
15546 # define getpagesize() sysconf(_SC_PAGESIZE)
15547 # else /* no _SC_PAGESIZE */
15548 # ifdef HAVE_SYS_PARAM_H
15549 # include <sys/param.h>
15550 # ifdef EXEC_PAGESIZE
15551 # define getpagesize() EXEC_PAGESIZE
15552 # else /* no EXEC_PAGESIZE */
15553 # ifdef NBPG
15554 # define getpagesize() NBPG * CLSIZE
15555 # ifndef CLSIZE
15556 # define CLSIZE 1
15557 # endif /* no CLSIZE */
15558 # else /* no NBPG */
15559 # ifdef NBPC
15560 # define getpagesize() NBPC
15561 # else /* no NBPC */
15562 # ifdef PAGESIZE
15563 # define getpagesize() PAGESIZE
15564 # endif /* PAGESIZE */
15565 # endif /* no NBPC */
15566 # endif /* no NBPG */
15567 # endif /* no EXEC_PAGESIZE */
15568 # else /* no HAVE_SYS_PARAM_H */
15569 # define getpagesize() 8192 /* punt totally */
15570 # endif /* no HAVE_SYS_PARAM_H */
15571 # endif /* no _SC_PAGESIZE */
15573 #endif /* no HAVE_GETPAGESIZE */
15576 main ()
15578 char *data, *data2, *data3;
15579 int i, pagesize;
15580 int fd;
15582 pagesize = getpagesize ();
15584 /* First, make a file with some known garbage in it. */
15585 data = (char *) malloc (pagesize);
15586 if (!data)
15587 return 1;
15588 for (i = 0; i < pagesize; ++i)
15589 *(data + i) = rand ();
15590 umask (0);
15591 fd = creat ("conftest.mmap", 0600);
15592 if (fd < 0)
15593 return 1;
15594 if (write (fd, data, pagesize) != pagesize)
15595 return 1;
15596 close (fd);
15598 /* Next, try to mmap the file at a fixed address which already has
15599 something else allocated at it. If we can, also make sure that
15600 we see the same garbage. */
15601 fd = open ("conftest.mmap", O_RDWR);
15602 if (fd < 0)
15603 return 1;
15604 data2 = (char *) malloc (2 * pagesize);
15605 if (!data2)
15606 return 1;
15607 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15608 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15609 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15610 return 1;
15611 for (i = 0; i < pagesize; ++i)
15612 if (*(data + i) != *(data2 + i))
15613 return 1;
15615 /* Finally, make sure that changes to the mapped area do not
15616 percolate back to the file as seen by read(). (This is a bug on
15617 some variants of i386 svr4.0.) */
15618 for (i = 0; i < pagesize; ++i)
15619 *(data2 + i) = *(data2 + i) + 1;
15620 data3 = (char *) malloc (pagesize);
15621 if (!data3)
15622 return 1;
15623 if (read (fd, data3, pagesize) != pagesize)
15624 return 1;
15625 for (i = 0; i < pagesize; ++i)
15626 if (*(data + i) != *(data3 + i))
15627 return 1;
15628 close (fd);
15629 return 0;
15631 _ACEOF
15632 if ac_fn_c_try_run "$LINENO"; then :
15633 ac_cv_func_mmap_fixed_mapped=yes
15634 else
15635 ac_cv_func_mmap_fixed_mapped=no
15637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15638 conftest.$ac_objext conftest.beam conftest.$ac_ext
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15643 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15644 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15646 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15649 rm -f conftest.mmap
15651 for ac_func in madvise mprotect
15652 do :
15653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15655 eval as_val=\$$as_ac_var
15656 if test "x$as_val" = x""yes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15659 _ACEOF
15662 done
15664 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15665 true+yes )
15666 $as_echo "#define USE_MMAP 1" >>confdefs.h
15668 esac
15670 rm -f doc/config.status
15671 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15674 ac_config_commands="$ac_config_commands default"
15682 cat >confcache <<\_ACEOF
15683 # This file is a shell script that caches the results of configure
15684 # tests run on this system so they can be shared between configure
15685 # scripts and configure runs, see configure's option --config-cache.
15686 # It is not useful on other systems. If it contains results you don't
15687 # want to keep, you may remove or edit it.
15689 # config.status only pays attention to the cache file if you give it
15690 # the --recheck option to rerun configure.
15692 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15693 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15694 # following values.
15696 _ACEOF
15698 # The following way of writing the cache mishandles newlines in values,
15699 # but we know of no workaround that is simple, portable, and efficient.
15700 # So, we kill variables containing newlines.
15701 # Ultrix sh set writes to stderr and can't be redirected directly,
15702 # and sets the high bit in the cache file unless we assign to the vars.
15704 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15705 eval ac_val=\$$ac_var
15706 case $ac_val in #(
15707 *${as_nl}*)
15708 case $ac_var in #(
15709 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15710 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15711 esac
15712 case $ac_var in #(
15713 _ | IFS | as_nl) ;; #(
15714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15715 *) { eval $ac_var=; unset $ac_var;} ;;
15716 esac ;;
15717 esac
15718 done
15720 (set) 2>&1 |
15721 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15722 *${as_nl}ac_space=\ *)
15723 # `set' does not quote correctly, so add quotes: double-quote
15724 # substitution turns \\\\ into \\, and sed turns \\ into \.
15725 sed -n \
15726 "s/'/'\\\\''/g;
15727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15728 ;; #(
15730 # `set' quotes correctly as required by POSIX, so do not add quotes.
15731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15733 esac |
15734 sort
15736 sed '
15737 /^ac_cv_env_/b end
15738 t clear
15739 :clear
15740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15741 t end
15742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15743 :end' >>confcache
15744 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15745 if test -w "$cache_file"; then
15746 test "x$cache_file" != "x/dev/null" &&
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15748 $as_echo "$as_me: updating cache $cache_file" >&6;}
15749 cat confcache >$cache_file
15750 else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15752 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15755 rm -f confcache
15757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15758 # Let make expand exec_prefix.
15759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15761 DEFS=-DHAVE_CONFIG_H
15763 ac_libobjs=
15764 ac_ltlibobjs=
15765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15766 # 1. Remove the extension, and $U if already installed.
15767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15768 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15770 # will be set to the directory where LIBOBJS objects are built.
15771 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15772 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15773 done
15774 LIBOBJS=$ac_libobjs
15776 LTLIBOBJS=$ac_ltlibobjs
15779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15780 as_fn_error "conditional \"AMDEP\" was never defined.
15781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15784 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15787 if test -n "$EXEEXT"; then
15788 am__EXEEXT_TRUE=
15789 am__EXEEXT_FALSE='#'
15790 else
15791 am__EXEEXT_TRUE='#'
15792 am__EXEEXT_FALSE=
15795 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15796 as_fn_error "conditional \"PLUGINS\" was never defined.
15797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15800 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15803 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15804 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15807 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15808 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15812 : ${CONFIG_STATUS=./config.status}
15813 ac_write_fail=0
15814 ac_clean_files_save=$ac_clean_files
15815 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15817 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15818 as_write_fail=0
15819 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15820 #! $SHELL
15821 # Generated by $as_me.
15822 # Run this file to recreate the current configuration.
15823 # Compiler output produced by configure, useful for debugging
15824 # configure, is in config.log if it exists.
15826 debug=false
15827 ac_cs_recheck=false
15828 ac_cs_silent=false
15830 SHELL=\${CONFIG_SHELL-$SHELL}
15831 export SHELL
15832 _ASEOF
15833 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15834 ## -------------------- ##
15835 ## M4sh Initialization. ##
15836 ## -------------------- ##
15838 # Be more Bourne compatible
15839 DUALCASE=1; export DUALCASE # for MKS sh
15840 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15841 emulate sh
15842 NULLCMD=:
15843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15844 # is contrary to our usage. Disable this feature.
15845 alias -g '${1+"$@"}'='"$@"'
15846 setopt NO_GLOB_SUBST
15847 else
15848 case `(set -o) 2>/dev/null` in #(
15849 *posix*) :
15850 set -o posix ;; #(
15851 *) :
15853 esac
15857 as_nl='
15859 export as_nl
15860 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15861 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15862 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15864 # Prefer a ksh shell builtin over an external printf program on Solaris,
15865 # but without wasting forks for bash or zsh.
15866 if test -z "$BASH_VERSION$ZSH_VERSION" \
15867 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15868 as_echo='print -r --'
15869 as_echo_n='print -rn --'
15870 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15871 as_echo='printf %s\n'
15872 as_echo_n='printf %s'
15873 else
15874 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15875 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15876 as_echo_n='/usr/ucb/echo -n'
15877 else
15878 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15879 as_echo_n_body='eval
15880 arg=$1;
15881 case $arg in #(
15882 *"$as_nl"*)
15883 expr "X$arg" : "X\\(.*\\)$as_nl";
15884 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15885 esac;
15886 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15888 export as_echo_n_body
15889 as_echo_n='sh -c $as_echo_n_body as_echo'
15891 export as_echo_body
15892 as_echo='sh -c $as_echo_body as_echo'
15895 # The user is always right.
15896 if test "${PATH_SEPARATOR+set}" != set; then
15897 PATH_SEPARATOR=:
15898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15900 PATH_SEPARATOR=';'
15905 # IFS
15906 # We need space, tab and new line, in precisely that order. Quoting is
15907 # there to prevent editors from complaining about space-tab.
15908 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15909 # splitting by setting IFS to empty value.)
15910 IFS=" "" $as_nl"
15912 # Find who we are. Look in the path if we contain no directory separator.
15913 case $0 in #((
15914 *[\\/]* ) as_myself=$0 ;;
15915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916 for as_dir in $PATH
15918 IFS=$as_save_IFS
15919 test -z "$as_dir" && as_dir=.
15920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15921 done
15922 IFS=$as_save_IFS
15925 esac
15926 # We did not find ourselves, most probably we were run as `sh COMMAND'
15927 # in which case we are not to be found in the path.
15928 if test "x$as_myself" = x; then
15929 as_myself=$0
15931 if test ! -f "$as_myself"; then
15932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15933 exit 1
15936 # Unset variables that we do not need and which cause bugs (e.g. in
15937 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15938 # suppresses any "Segmentation fault" message there. '((' could
15939 # trigger a bug in pdksh 5.2.14.
15940 for as_var in BASH_ENV ENV MAIL MAILPATH
15941 do eval test x\${$as_var+set} = xset \
15942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15943 done
15944 PS1='$ '
15945 PS2='> '
15946 PS4='+ '
15948 # NLS nuisances.
15949 LC_ALL=C
15950 export LC_ALL
15951 LANGUAGE=C
15952 export LANGUAGE
15954 # CDPATH.
15955 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15958 # as_fn_error ERROR [LINENO LOG_FD]
15959 # ---------------------------------
15960 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15961 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15962 # script with status $?, using 1 if that was 0.
15963 as_fn_error ()
15965 as_status=$?; test $as_status -eq 0 && as_status=1
15966 if test "$3"; then
15967 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15970 $as_echo "$as_me: error: $1" >&2
15971 as_fn_exit $as_status
15972 } # as_fn_error
15975 # as_fn_set_status STATUS
15976 # -----------------------
15977 # Set $? to STATUS, without forking.
15978 as_fn_set_status ()
15980 return $1
15981 } # as_fn_set_status
15983 # as_fn_exit STATUS
15984 # -----------------
15985 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15986 as_fn_exit ()
15988 set +e
15989 as_fn_set_status $1
15990 exit $1
15991 } # as_fn_exit
15993 # as_fn_unset VAR
15994 # ---------------
15995 # Portably unset VAR.
15996 as_fn_unset ()
15998 { eval $1=; unset $1;}
16000 as_unset=as_fn_unset
16001 # as_fn_append VAR VALUE
16002 # ----------------------
16003 # Append the text in VALUE to the end of the definition contained in VAR. Take
16004 # advantage of any shell optimizations that allow amortized linear growth over
16005 # repeated appends, instead of the typical quadratic growth present in naive
16006 # implementations.
16007 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16008 eval 'as_fn_append ()
16010 eval $1+=\$2
16012 else
16013 as_fn_append ()
16015 eval $1=\$$1\$2
16017 fi # as_fn_append
16019 # as_fn_arith ARG...
16020 # ------------------
16021 # Perform arithmetic evaluation on the ARGs, and store the result in the
16022 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16023 # must be portable across $(()) and expr.
16024 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16025 eval 'as_fn_arith ()
16027 as_val=$(( $* ))
16029 else
16030 as_fn_arith ()
16032 as_val=`expr "$@" || test $? -eq 1`
16034 fi # as_fn_arith
16037 if expr a : '\(a\)' >/dev/null 2>&1 &&
16038 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16039 as_expr=expr
16040 else
16041 as_expr=false
16044 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16045 as_basename=basename
16046 else
16047 as_basename=false
16050 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16051 as_dirname=dirname
16052 else
16053 as_dirname=false
16056 as_me=`$as_basename -- "$0" ||
16057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16058 X"$0" : 'X\(//\)$' \| \
16059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16060 $as_echo X/"$0" |
16061 sed '/^.*\/\([^/][^/]*\)\/*$/{
16062 s//\1/
16065 /^X\/\(\/\/\)$/{
16066 s//\1/
16069 /^X\/\(\/\).*/{
16070 s//\1/
16073 s/.*/./; q'`
16075 # Avoid depending upon Character Ranges.
16076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16079 as_cr_digits='0123456789'
16080 as_cr_alnum=$as_cr_Letters$as_cr_digits
16082 ECHO_C= ECHO_N= ECHO_T=
16083 case `echo -n x` in #(((((
16084 -n*)
16085 case `echo 'xy\c'` in
16086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16087 xy) ECHO_C='\c';;
16088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16089 ECHO_T=' ';;
16090 esac;;
16092 ECHO_N='-n';;
16093 esac
16095 rm -f conf$$ conf$$.exe conf$$.file
16096 if test -d conf$$.dir; then
16097 rm -f conf$$.dir/conf$$.file
16098 else
16099 rm -f conf$$.dir
16100 mkdir conf$$.dir 2>/dev/null
16102 if (echo >conf$$.file) 2>/dev/null; then
16103 if ln -s conf$$.file conf$$ 2>/dev/null; then
16104 as_ln_s='ln -s'
16105 # ... but there are two gotchas:
16106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16108 # In both cases, we have to default to `cp -p'.
16109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16110 as_ln_s='cp -p'
16111 elif ln conf$$.file conf$$ 2>/dev/null; then
16112 as_ln_s=ln
16113 else
16114 as_ln_s='cp -p'
16116 else
16117 as_ln_s='cp -p'
16119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16120 rmdir conf$$.dir 2>/dev/null
16123 # as_fn_mkdir_p
16124 # -------------
16125 # Create "$as_dir" as a directory, including parents if necessary.
16126 as_fn_mkdir_p ()
16129 case $as_dir in #(
16130 -*) as_dir=./$as_dir;;
16131 esac
16132 test -d "$as_dir" || eval $as_mkdir_p || {
16133 as_dirs=
16134 while :; do
16135 case $as_dir in #(
16136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16137 *) as_qdir=$as_dir;;
16138 esac
16139 as_dirs="'$as_qdir' $as_dirs"
16140 as_dir=`$as_dirname -- "$as_dir" ||
16141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16142 X"$as_dir" : 'X\(//\)[^/]' \| \
16143 X"$as_dir" : 'X\(//\)$' \| \
16144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16145 $as_echo X"$as_dir" |
16146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16147 s//\1/
16150 /^X\(\/\/\)[^/].*/{
16151 s//\1/
16154 /^X\(\/\/\)$/{
16155 s//\1/
16158 /^X\(\/\).*/{
16159 s//\1/
16162 s/.*/./; q'`
16163 test -d "$as_dir" && break
16164 done
16165 test -z "$as_dirs" || eval "mkdir $as_dirs"
16166 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16169 } # as_fn_mkdir_p
16170 if mkdir -p . 2>/dev/null; then
16171 as_mkdir_p='mkdir -p "$as_dir"'
16172 else
16173 test -d ./-p && rmdir ./-p
16174 as_mkdir_p=false
16177 if test -x / >/dev/null 2>&1; then
16178 as_test_x='test -x'
16179 else
16180 if ls -dL / >/dev/null 2>&1; then
16181 as_ls_L_option=L
16182 else
16183 as_ls_L_option=
16185 as_test_x='
16186 eval sh -c '\''
16187 if test -d "$1"; then
16188 test -d "$1/.";
16189 else
16190 case $1 in #(
16191 -*)set "./$1";;
16192 esac;
16193 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16194 ???[sx]*):;;*)false;;esac;fi
16195 '\'' sh
16198 as_executable_p=$as_test_x
16200 # Sed expression to map a string onto a valid CPP name.
16201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16203 # Sed expression to map a string onto a valid variable name.
16204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16207 exec 6>&1
16208 ## ----------------------------------- ##
16209 ## Main body of $CONFIG_STATUS script. ##
16210 ## ----------------------------------- ##
16211 _ASEOF
16212 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16215 # Save the log message, to keep $0 and so on meaningful, and to
16216 # report actual input values of CONFIG_FILES etc. instead of their
16217 # values after options handling.
16218 ac_log="
16219 This file was extended by $as_me, which was
16220 generated by GNU Autoconf 2.64. Invocation command line was
16222 CONFIG_FILES = $CONFIG_FILES
16223 CONFIG_HEADERS = $CONFIG_HEADERS
16224 CONFIG_LINKS = $CONFIG_LINKS
16225 CONFIG_COMMANDS = $CONFIG_COMMANDS
16226 $ $0 $@
16228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16231 _ACEOF
16233 case $ac_config_files in *"
16234 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16235 esac
16237 case $ac_config_headers in *"
16238 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16239 esac
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 # Files that config.status was made for.
16244 config_files="$ac_config_files"
16245 config_headers="$ac_config_headers"
16246 config_commands="$ac_config_commands"
16248 _ACEOF
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 ac_cs_usage="\
16252 \`$as_me' instantiates files and other configuration actions
16253 from templates according to the current configuration. Unless the files
16254 and actions are specified as TAGs, all are instantiated by default.
16256 Usage: $0 [OPTION]... [TAG]...
16258 -h, --help print this help, then exit
16259 -V, --version print version number and configuration settings, then exit
16260 -q, --quiet, --silent
16261 do not print progress messages
16262 -d, --debug don't remove temporary files
16263 --recheck update $as_me by reconfiguring in the same conditions
16264 --file=FILE[:TEMPLATE]
16265 instantiate the configuration file FILE
16266 --header=FILE[:TEMPLATE]
16267 instantiate the configuration header FILE
16269 Configuration files:
16270 $config_files
16272 Configuration headers:
16273 $config_headers
16275 Configuration commands:
16276 $config_commands
16278 Report bugs to the package provider."
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16282 ac_cs_version="\\
16283 config.status
16284 configured by $0, generated by GNU Autoconf 2.64,
16285 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16287 Copyright (C) 2009 Free Software Foundation, Inc.
16288 This config.status script is free software; the Free Software Foundation
16289 gives unlimited permission to copy, distribute and modify it."
16291 ac_pwd='$ac_pwd'
16292 srcdir='$srcdir'
16293 INSTALL='$INSTALL'
16294 MKDIR_P='$MKDIR_P'
16295 AWK='$AWK'
16296 test -n "\$AWK" || AWK=awk
16297 _ACEOF
16299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300 # The default lists apply if the user does not specify any file.
16301 ac_need_defaults=:
16302 while test $# != 0
16304 case $1 in
16305 --*=*)
16306 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16307 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16308 ac_shift=:
16311 ac_option=$1
16312 ac_optarg=$2
16313 ac_shift=shift
16315 esac
16317 case $ac_option in
16318 # Handling of the options.
16319 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16320 ac_cs_recheck=: ;;
16321 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16322 $as_echo "$ac_cs_version"; exit ;;
16323 --debug | --debu | --deb | --de | --d | -d )
16324 debug=: ;;
16325 --file | --fil | --fi | --f )
16326 $ac_shift
16327 case $ac_optarg in
16328 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16329 esac
16330 as_fn_append CONFIG_FILES " '$ac_optarg'"
16331 ac_need_defaults=false;;
16332 --header | --heade | --head | --hea )
16333 $ac_shift
16334 case $ac_optarg in
16335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16336 esac
16337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16338 ac_need_defaults=false;;
16339 --he | --h)
16340 # Conflict between --help and --header
16341 as_fn_error "ambiguous option: \`$1'
16342 Try \`$0 --help' for more information.";;
16343 --help | --hel | -h )
16344 $as_echo "$ac_cs_usage"; exit ;;
16345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16347 ac_cs_silent=: ;;
16349 # This is an error.
16350 -*) as_fn_error "unrecognized option: \`$1'
16351 Try \`$0 --help' for more information." ;;
16353 *) as_fn_append ac_config_targets " $1"
16354 ac_need_defaults=false ;;
16356 esac
16357 shift
16358 done
16360 ac_configure_extra_args=
16362 if $ac_cs_silent; then
16363 exec 6>/dev/null
16364 ac_configure_extra_args="$ac_configure_extra_args --silent"
16367 _ACEOF
16368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16369 if \$ac_cs_recheck; then
16370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16371 shift
16372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16373 CONFIG_SHELL='$SHELL'
16374 export CONFIG_SHELL
16375 exec "\$@"
16378 _ACEOF
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16380 exec 5>>config.log
16382 echo
16383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16384 ## Running $as_me. ##
16385 _ASBOX
16386 $as_echo "$ac_log"
16387 } >&5
16389 _ACEOF
16390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16392 # INIT-COMMANDS
16394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16397 # The HP-UX ksh and POSIX shell print the target directory to stdout
16398 # if CDPATH is set.
16399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16401 sed_quote_subst='$sed_quote_subst'
16402 double_quote_subst='$double_quote_subst'
16403 delay_variable_subst='$delay_variable_subst'
16404 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16405 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16406 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16407 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16408 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16409 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16410 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16411 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16432 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16433 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16435 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16436 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16437 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16438 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16439 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16440 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16441 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16442 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16443 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16444 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16445 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16446 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16447 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16448 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16449 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16450 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16451 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16452 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16453 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16454 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16455 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16456 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16457 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16458 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16459 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16460 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16461 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16462 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16463 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16464 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16465 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16466 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16467 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16468 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16469 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16470 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16471 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16472 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16473 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16474 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16475 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16476 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16477 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16478 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16479 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16480 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16481 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16482 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16483 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16484 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16485 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16486 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16487 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16488 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16489 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16490 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16491 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16492 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16493 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16494 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16495 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16496 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16497 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16498 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16499 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16500 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16501 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16502 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16503 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16504 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16505 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16506 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16507 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16508 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16509 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16510 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16511 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16512 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16513 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16514 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16515 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16516 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16517 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16518 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16519 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16520 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16521 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16522 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16523 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16525 LTCC='$LTCC'
16526 LTCFLAGS='$LTCFLAGS'
16527 compiler='$compiler_DEFAULT'
16529 # A function that is used when there is no print builtin or printf.
16530 func_fallback_echo ()
16532 eval 'cat <<_LTECHO_EOF
16534 _LTECHO_EOF'
16537 # Quote evaled strings.
16538 for var in SHELL \
16539 ECHO \
16540 SED \
16541 GREP \
16542 EGREP \
16543 FGREP \
16544 LD \
16545 NM \
16546 LN_S \
16547 lt_SP2NL \
16548 lt_NL2SP \
16549 reload_flag \
16550 OBJDUMP \
16551 deplibs_check_method \
16552 file_magic_cmd \
16553 AR \
16554 AR_FLAGS \
16555 STRIP \
16556 RANLIB \
16557 CC \
16558 CFLAGS \
16559 compiler \
16560 lt_cv_sys_global_symbol_pipe \
16561 lt_cv_sys_global_symbol_to_cdecl \
16562 lt_cv_sys_global_symbol_to_c_name_address \
16563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16564 lt_prog_compiler_no_builtin_flag \
16565 lt_prog_compiler_wl \
16566 lt_prog_compiler_pic \
16567 lt_prog_compiler_static \
16568 lt_cv_prog_compiler_c_o \
16569 need_locks \
16570 DSYMUTIL \
16571 NMEDIT \
16572 LIPO \
16573 OTOOL \
16574 OTOOL64 \
16575 shrext_cmds \
16576 export_dynamic_flag_spec \
16577 whole_archive_flag_spec \
16578 compiler_needs_object \
16579 with_gnu_ld \
16580 allow_undefined_flag \
16581 no_undefined_flag \
16582 hardcode_libdir_flag_spec \
16583 hardcode_libdir_flag_spec_ld \
16584 hardcode_libdir_separator \
16585 fix_srcfile_path \
16586 exclude_expsyms \
16587 include_expsyms \
16588 file_list_spec \
16589 variables_saved_for_relink \
16590 libname_spec \
16591 library_names_spec \
16592 soname_spec \
16593 install_override_mode \
16594 finish_eval \
16595 old_striplib \
16596 striplib; do
16597 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16598 *[\\\\\\\`\\"\\\$]*)
16599 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16602 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16604 esac
16605 done
16607 # Double-quote double-evaled strings.
16608 for var in reload_cmds \
16609 old_postinstall_cmds \
16610 old_postuninstall_cmds \
16611 old_archive_cmds \
16612 extract_expsyms_cmds \
16613 old_archive_from_new_cmds \
16614 old_archive_from_expsyms_cmds \
16615 archive_cmds \
16616 archive_expsym_cmds \
16617 module_cmds \
16618 module_expsym_cmds \
16619 export_symbols_cmds \
16620 prelink_cmds \
16621 postinstall_cmds \
16622 postuninstall_cmds \
16623 finish_cmds \
16624 sys_lib_search_path_spec \
16625 sys_lib_dlsearch_path_spec; do
16626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16627 *[\\\\\\\`\\"\\\$]*)
16628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16633 esac
16634 done
16636 ac_aux_dir='$ac_aux_dir'
16637 xsi_shell='$xsi_shell'
16638 lt_shell_append='$lt_shell_append'
16640 # See if we are running on zsh, and set the options which allow our
16641 # commands through without removal of \ escapes INIT.
16642 if test -n "\${ZSH_VERSION+set}" ; then
16643 setopt NO_GLOB_SUBST
16647 PACKAGE='$PACKAGE'
16648 VERSION='$VERSION'
16649 TIMESTAMP='$TIMESTAMP'
16650 RM='$RM'
16651 ofile='$ofile'
16655 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16656 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16657 # from automake.
16658 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16659 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16660 LINGUAS="${LINGUAS-%UNSET%}"
16663 GCC="$GCC"
16664 CC="$CC"
16665 acx_cv_header_stdint="$acx_cv_header_stdint"
16666 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16667 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16668 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16669 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16670 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16671 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16672 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16673 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16674 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16675 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16676 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16677 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16678 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16682 _ACEOF
16684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16686 # Handling of arguments.
16687 for ac_config_target in $ac_config_targets
16689 case $ac_config_target in
16690 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16691 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16692 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16693 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16694 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16696 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16697 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16698 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16699 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16701 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16702 esac
16703 done
16706 # If the user did not use the arguments to specify the items to instantiate,
16707 # then the envvar interface is used. Set only those that are not.
16708 # We use the long form for the default assignment because of an extremely
16709 # bizarre bug on SunOS 4.1.3.
16710 if $ac_need_defaults; then
16711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16716 # Have a temporary directory for convenience. Make it in the build tree
16717 # simply because there is no reason against having it here, and in addition,
16718 # creating and moving files from /tmp can sometimes cause problems.
16719 # Hook for its removal unless debugging.
16720 # Note that there is a small window in which the directory will not be cleaned:
16721 # after its creation but before its name has been assigned to `$tmp'.
16722 $debug ||
16724 tmp=
16725 trap 'exit_status=$?
16726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16728 trap 'as_fn_exit 1' 1 2 13 15
16730 # Create a (secure) tmp directory for tmp files.
16733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16734 test -n "$tmp" && test -d "$tmp"
16735 } ||
16737 tmp=./conf$$-$RANDOM
16738 (umask 077 && mkdir "$tmp")
16739 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16741 # Set up the scripts for CONFIG_FILES section.
16742 # No need to generate them if there are no CONFIG_FILES.
16743 # This happens for instance with `./config.status config.h'.
16744 if test -n "$CONFIG_FILES"; then
16747 ac_cr=`echo X | tr X '\015'`
16748 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16749 # But we know of no other shell where ac_cr would be empty at this
16750 # point, so we can use a bashism as a fallback.
16751 if test "x$ac_cr" = x; then
16752 eval ac_cr=\$\'\\r\'
16754 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16755 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16756 ac_cs_awk_cr='\r'
16757 else
16758 ac_cs_awk_cr=$ac_cr
16761 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16762 _ACEOF
16766 echo "cat >conf$$subs.awk <<_ACEOF" &&
16767 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16768 echo "_ACEOF"
16769 } >conf$$subs.sh ||
16770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16771 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16772 ac_delim='%!_!# '
16773 for ac_last_try in false false false false false :; do
16774 . ./conf$$subs.sh ||
16775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16777 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16778 if test $ac_delim_n = $ac_delim_num; then
16779 break
16780 elif $ac_last_try; then
16781 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16782 else
16783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16785 done
16786 rm -f conf$$subs.sh
16788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16790 _ACEOF
16791 sed -n '
16793 s/^/S["/; s/!.*/"]=/
16796 s/^[^!]*!//
16797 :repl
16798 t repl
16799 s/'"$ac_delim"'$//
16800 t delim
16803 s/\(.\{148\}\).*/\1/
16804 t more1
16805 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16808 b repl
16809 :more1
16810 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16813 s/.\{148\}//
16814 t nl
16815 :delim
16817 s/\(.\{148\}\).*/\1/
16818 t more2
16819 s/["\\]/\\&/g; s/^/"/; s/$/"/
16822 :more2
16823 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16826 s/.\{148\}//
16827 t delim
16828 ' <conf$$subs.awk | sed '
16829 /^[^""]/{
16831 s/\n//
16833 ' >>$CONFIG_STATUS || ac_write_fail=1
16834 rm -f conf$$subs.awk
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 _ACAWK
16837 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16838 for (key in S) S_is_set[key] = 1
16839 FS = "\a"
16843 line = $ 0
16844 nfields = split(line, field, "@")
16845 substed = 0
16846 len = length(field[1])
16847 for (i = 2; i < nfields; i++) {
16848 key = field[i]
16849 keylen = length(key)
16850 if (S_is_set[key]) {
16851 value = S[key]
16852 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16853 len += length(value) + length(field[++i])
16854 substed = 1
16855 } else
16856 len += 1 + keylen
16859 print line
16862 _ACAWK
16863 _ACEOF
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16865 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16866 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16867 else
16869 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16870 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16871 _ACEOF
16873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16875 # trailing colons and then remove the whole line if VPATH becomes empty
16876 # (actually we leave an empty line to preserve line numbers).
16877 if test "x$srcdir" = x.; then
16878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16879 s/:*\$(srcdir):*/:/
16880 s/:*\${srcdir}:*/:/
16881 s/:*@srcdir@:*/:/
16882 s/^\([^=]*=[ ]*\):*/\1/
16883 s/:*$//
16884 s/^[^=]*=[ ]*$//
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 fi # test -n "$CONFIG_FILES"
16891 # Set up the scripts for CONFIG_HEADERS section.
16892 # No need to generate them if there are no CONFIG_HEADERS.
16893 # This happens for instance with `./config.status Makefile'.
16894 if test -n "$CONFIG_HEADERS"; then
16895 cat >"$tmp/defines.awk" <<\_ACAWK ||
16896 BEGIN {
16897 _ACEOF
16899 # Transform confdefs.h into an awk script `defines.awk', embedded as
16900 # here-document in config.status, that substitutes the proper values into
16901 # config.h.in to produce config.h.
16903 # Create a delimiter string that does not exist in confdefs.h, to ease
16904 # handling of long lines.
16905 ac_delim='%!_!# '
16906 for ac_last_try in false false :; do
16907 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16908 if test -z "$ac_t"; then
16909 break
16910 elif $ac_last_try; then
16911 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16912 else
16913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16915 done
16917 # For the awk script, D is an array of macro values keyed by name,
16918 # likewise P contains macro parameters if any. Preserve backslash
16919 # newline sequences.
16921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16922 sed -n '
16923 s/.\{148\}/&'"$ac_delim"'/g
16924 t rset
16925 :rset
16926 s/^[ ]*#[ ]*define[ ][ ]*/ /
16927 t def
16929 :def
16930 s/\\$//
16931 t bsnl
16932 s/["\\]/\\&/g
16933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16934 D["\1"]=" \3"/p
16935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16937 :bsnl
16938 s/["\\]/\\&/g
16939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16940 D["\1"]=" \3\\\\\\n"\\/p
16941 t cont
16942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16943 t cont
16945 :cont
16947 s/.\{148\}/&'"$ac_delim"'/g
16948 t clear
16949 :clear
16950 s/\\$//
16951 t bsnlc
16952 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16954 :bsnlc
16955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16956 b cont
16957 ' <confdefs.h | sed '
16958 s/'"$ac_delim"'/"\\\
16959 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16962 for (key in D) D_is_set[key] = 1
16963 FS = "\a"
16965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16966 line = \$ 0
16967 split(line, arg, " ")
16968 if (arg[1] == "#") {
16969 defundef = arg[2]
16970 mac1 = arg[3]
16971 } else {
16972 defundef = substr(arg[1], 2)
16973 mac1 = arg[2]
16975 split(mac1, mac2, "(") #)
16976 macro = mac2[1]
16977 prefix = substr(line, 1, index(line, defundef) - 1)
16978 if (D_is_set[macro]) {
16979 # Preserve the white space surrounding the "#".
16980 print prefix "define", macro P[macro] D[macro]
16981 next
16982 } else {
16983 # Replace #undef with comments. This is necessary, for example,
16984 # in the case of _POSIX_SOURCE, which is predefined and required
16985 # on some systems where configure will not decide to define it.
16986 if (defundef == "undef") {
16987 print "/*", prefix defundef, macro, "*/"
16988 next
16992 { print }
16993 _ACAWK
16994 _ACEOF
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16997 fi # test -n "$CONFIG_HEADERS"
17000 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17001 shift
17002 for ac_tag
17004 case $ac_tag in
17005 :[FHLC]) ac_mode=$ac_tag; continue;;
17006 esac
17007 case $ac_mode$ac_tag in
17008 :[FHL]*:*);;
17009 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17010 :[FH]-) ac_tag=-:-;;
17011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17012 esac
17013 ac_save_IFS=$IFS
17014 IFS=:
17015 set x $ac_tag
17016 IFS=$ac_save_IFS
17017 shift
17018 ac_file=$1
17019 shift
17021 case $ac_mode in
17022 :L) ac_source=$1;;
17023 :[FH])
17024 ac_file_inputs=
17025 for ac_f
17027 case $ac_f in
17028 -) ac_f="$tmp/stdin";;
17029 *) # Look for the file first in the build tree, then in the source tree
17030 # (if the path is not absolute). The absolute path cannot be DOS-style,
17031 # because $ac_f cannot contain `:'.
17032 test -f "$ac_f" ||
17033 case $ac_f in
17034 [\\/$]*) false;;
17035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17036 esac ||
17037 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17038 esac
17039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17040 as_fn_append ac_file_inputs " '$ac_f'"
17041 done
17043 # Let's still pretend it is `configure' which instantiates (i.e., don't
17044 # use $as_me), people would be surprised to read:
17045 # /* config.h. Generated by config.status. */
17046 configure_input='Generated from '`
17047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17048 `' by configure.'
17049 if test x"$ac_file" != x-; then
17050 configure_input="$ac_file. $configure_input"
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17052 $as_echo "$as_me: creating $ac_file" >&6;}
17054 # Neutralize special characters interpreted by sed in replacement strings.
17055 case $configure_input in #(
17056 *\&* | *\|* | *\\* )
17057 ac_sed_conf_input=`$as_echo "$configure_input" |
17058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17059 *) ac_sed_conf_input=$configure_input;;
17060 esac
17062 case $ac_tag in
17063 *:-:* | *:-) cat >"$tmp/stdin" \
17064 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17065 esac
17067 esac
17069 ac_dir=`$as_dirname -- "$ac_file" ||
17070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17071 X"$ac_file" : 'X\(//\)[^/]' \| \
17072 X"$ac_file" : 'X\(//\)$' \| \
17073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17074 $as_echo X"$ac_file" |
17075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17076 s//\1/
17079 /^X\(\/\/\)[^/].*/{
17080 s//\1/
17083 /^X\(\/\/\)$/{
17084 s//\1/
17087 /^X\(\/\).*/{
17088 s//\1/
17091 s/.*/./; q'`
17092 as_dir="$ac_dir"; as_fn_mkdir_p
17093 ac_builddir=.
17095 case "$ac_dir" in
17096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17099 # A ".." for each directory in $ac_dir_suffix.
17100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17101 case $ac_top_builddir_sub in
17102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17104 esac ;;
17105 esac
17106 ac_abs_top_builddir=$ac_pwd
17107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17108 # for backward compatibility:
17109 ac_top_builddir=$ac_top_build_prefix
17111 case $srcdir in
17112 .) # We are building in place.
17113 ac_srcdir=.
17114 ac_top_srcdir=$ac_top_builddir_sub
17115 ac_abs_top_srcdir=$ac_pwd ;;
17116 [\\/]* | ?:[\\/]* ) # Absolute name.
17117 ac_srcdir=$srcdir$ac_dir_suffix;
17118 ac_top_srcdir=$srcdir
17119 ac_abs_top_srcdir=$srcdir ;;
17120 *) # Relative name.
17121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17122 ac_top_srcdir=$ac_top_build_prefix$srcdir
17123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17124 esac
17125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17128 case $ac_mode in
17131 # CONFIG_FILE
17134 case $INSTALL in
17135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17137 esac
17138 ac_MKDIR_P=$MKDIR_P
17139 case $MKDIR_P in
17140 [\\/$]* | ?:[\\/]* ) ;;
17141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17142 esac
17143 _ACEOF
17145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17146 # If the template does not know about datarootdir, expand it.
17147 # FIXME: This hack should be removed a few years after 2.60.
17148 ac_datarootdir_hack=; ac_datarootdir_seen=
17149 ac_sed_dataroot='
17150 /datarootdir/ {
17154 /@datadir@/p
17155 /@docdir@/p
17156 /@infodir@/p
17157 /@localedir@/p
17158 /@mandir@/p'
17159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17160 *datarootdir*) ac_datarootdir_seen=yes;;
17161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17164 _ACEOF
17165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17166 ac_datarootdir_hack='
17167 s&@datadir@&$datadir&g
17168 s&@docdir@&$docdir&g
17169 s&@infodir@&$infodir&g
17170 s&@localedir@&$localedir&g
17171 s&@mandir@&$mandir&g
17172 s&\\\${datarootdir}&$datarootdir&g' ;;
17173 esac
17174 _ACEOF
17176 # Neutralize VPATH when `$srcdir' = `.'.
17177 # Shell code in configure.ac might set extrasub.
17178 # FIXME: do we really want to maintain this feature?
17179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17180 ac_sed_extra="$ac_vpsub
17181 $extrasub
17182 _ACEOF
17183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17186 s|@configure_input@|$ac_sed_conf_input|;t t
17187 s&@top_builddir@&$ac_top_builddir_sub&;t t
17188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17189 s&@srcdir@&$ac_srcdir&;t t
17190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17191 s&@top_srcdir@&$ac_top_srcdir&;t t
17192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17193 s&@builddir@&$ac_builddir&;t t
17194 s&@abs_builddir@&$ac_abs_builddir&;t t
17195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17196 s&@INSTALL@&$ac_INSTALL&;t t
17197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17198 $ac_datarootdir_hack
17200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17201 || as_fn_error "could not create $ac_file" "$LINENO" 5
17203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17204 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17207 which seems to be undefined. Please make sure it is defined." >&5
17208 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17209 which seems to be undefined. Please make sure it is defined." >&2;}
17211 rm -f "$tmp/stdin"
17212 case $ac_file in
17213 -) cat "$tmp/out" && rm -f "$tmp/out";;
17214 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17215 esac \
17216 || as_fn_error "could not create $ac_file" "$LINENO" 5
17220 # CONFIG_HEADER
17222 if test x"$ac_file" != x-; then
17224 $as_echo "/* $configure_input */" \
17225 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17226 } >"$tmp/config.h" \
17227 || as_fn_error "could not create $ac_file" "$LINENO" 5
17228 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17230 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17231 else
17232 rm -f "$ac_file"
17233 mv "$tmp/config.h" "$ac_file" \
17234 || as_fn_error "could not create $ac_file" "$LINENO" 5
17236 else
17237 $as_echo "/* $configure_input */" \
17238 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17239 || as_fn_error "could not create -" "$LINENO" 5
17241 # Compute "$ac_file"'s index in $config_headers.
17242 _am_arg="$ac_file"
17243 _am_stamp_count=1
17244 for _am_header in $config_headers :; do
17245 case $_am_header in
17246 $_am_arg | $_am_arg:* )
17247 break ;;
17249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17250 esac
17251 done
17252 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17253 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254 X"$_am_arg" : 'X\(//\)[^/]' \| \
17255 X"$_am_arg" : 'X\(//\)$' \| \
17256 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17257 $as_echo X"$_am_arg" |
17258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17259 s//\1/
17262 /^X\(\/\/\)[^/].*/{
17263 s//\1/
17266 /^X\(\/\/\)$/{
17267 s//\1/
17270 /^X\(\/\).*/{
17271 s//\1/
17274 s/.*/./; q'`/stamp-h$_am_stamp_count
17277 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17278 $as_echo "$as_me: executing $ac_file commands" >&6;}
17280 esac
17283 case $ac_file$ac_mode in
17284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17285 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17286 # are listed without --file. Let's play safe and only enable the eval
17287 # if we detect the quoting.
17288 case $CONFIG_FILES in
17289 *\'*) eval set x "$CONFIG_FILES" ;;
17290 *) set x $CONFIG_FILES ;;
17291 esac
17292 shift
17293 for mf
17295 # Strip MF so we end up with the name of the file.
17296 mf=`echo "$mf" | sed -e 's/:.*$//'`
17297 # Check whether this is an Automake generated Makefile or not.
17298 # We used to match only the files named `Makefile.in', but
17299 # some people rename them; so instead we look at the file content.
17300 # Grep'ing the first line is not enough: some people post-process
17301 # each Makefile.in and add a new line on top of each file to say so.
17302 # Grep'ing the whole file is not good either: AIX grep has a line
17303 # limit of 2048, but all sed's we know have understand at least 4000.
17304 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17305 dirpart=`$as_dirname -- "$mf" ||
17306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17307 X"$mf" : 'X\(//\)[^/]' \| \
17308 X"$mf" : 'X\(//\)$' \| \
17309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17310 $as_echo X"$mf" |
17311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17312 s//\1/
17315 /^X\(\/\/\)[^/].*/{
17316 s//\1/
17319 /^X\(\/\/\)$/{
17320 s//\1/
17323 /^X\(\/\).*/{
17324 s//\1/
17327 s/.*/./; q'`
17328 else
17329 continue
17331 # Extract the definition of DEPDIR, am__include, and am__quote
17332 # from the Makefile without running `make'.
17333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17334 test -z "$DEPDIR" && continue
17335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17336 test -z "am__include" && continue
17337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17338 # When using ansi2knr, U may be empty or an underscore; expand it
17339 U=`sed -n 's/^U = //p' < "$mf"`
17340 # Find all dependency output files, they are included files with
17341 # $(DEPDIR) in their names. We invoke sed twice because it is the
17342 # simplest approach to changing $(DEPDIR) to its actual value in the
17343 # expansion.
17344 for file in `sed -n "
17345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17347 # Make sure the directory exists.
17348 test -f "$dirpart/$file" && continue
17349 fdir=`$as_dirname -- "$file" ||
17350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351 X"$file" : 'X\(//\)[^/]' \| \
17352 X"$file" : 'X\(//\)$' \| \
17353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17354 $as_echo X"$file" |
17355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17356 s//\1/
17359 /^X\(\/\/\)[^/].*/{
17360 s//\1/
17363 /^X\(\/\/\)$/{
17364 s//\1/
17367 /^X\(\/\).*/{
17368 s//\1/
17371 s/.*/./; q'`
17372 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17373 # echo "creating $dirpart/$file"
17374 echo '# dummy' > "$dirpart/$file"
17375 done
17376 done
17379 "libtool":C)
17381 # See if we are running on zsh, and set the options which allow our
17382 # commands through without removal of \ escapes.
17383 if test -n "${ZSH_VERSION+set}" ; then
17384 setopt NO_GLOB_SUBST
17387 cfgfile="${ofile}T"
17388 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17389 $RM "$cfgfile"
17391 cat <<_LT_EOF >> "$cfgfile"
17392 #! $SHELL
17394 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17395 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17399 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17400 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17401 # Written by Gordon Matzigkeit, 1996
17403 # This file is part of GNU Libtool.
17405 # GNU Libtool is free software; you can redistribute it and/or
17406 # modify it under the terms of the GNU General Public License as
17407 # published by the Free Software Foundation; either version 2 of
17408 # the License, or (at your option) any later version.
17410 # As a special exception to the GNU General Public License,
17411 # if you distribute this file as part of a program or library that
17412 # is built using GNU Libtool, you may include this file under the
17413 # same distribution terms that you use for the rest of that program.
17415 # GNU Libtool is distributed in the hope that it will be useful,
17416 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17417 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17418 # GNU General Public License for more details.
17420 # You should have received a copy of the GNU General Public License
17421 # along with GNU Libtool; see the file COPYING. If not, a copy
17422 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17423 # obtained by writing to the Free Software Foundation, Inc.,
17424 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17427 # The names of the tagged configurations supported by this script.
17428 available_tags=""
17430 # ### BEGIN LIBTOOL CONFIG
17432 # Whether or not to build shared libraries.
17433 build_libtool_libs=$enable_shared
17435 # Which release of libtool.m4 was used?
17436 macro_version=$macro_version
17437 macro_revision=$macro_revision
17439 # Whether or not to build static libraries.
17440 build_old_libs=$enable_static
17442 # What type of objects to build.
17443 pic_mode=$pic_mode
17445 # Whether or not to optimize for fast installation.
17446 fast_install=$enable_fast_install
17448 # Shell to use when invoking shell scripts.
17449 SHELL=$lt_SHELL
17451 # An echo program that protects backslashes.
17452 ECHO=$lt_ECHO
17454 # The host system.
17455 host_alias=$host_alias
17456 host=$host
17457 host_os=$host_os
17459 # The build system.
17460 build_alias=$build_alias
17461 build=$build
17462 build_os=$build_os
17464 # A sed program that does not truncate output.
17465 SED=$lt_SED
17467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17468 Xsed="\$SED -e 1s/^X//"
17470 # A grep program that handles long lines.
17471 GREP=$lt_GREP
17473 # An ERE matcher.
17474 EGREP=$lt_EGREP
17476 # A literal string matcher.
17477 FGREP=$lt_FGREP
17479 # A BSD- or MS-compatible name lister.
17480 NM=$lt_NM
17482 # Whether we need soft or hard links.
17483 LN_S=$lt_LN_S
17485 # What is the maximum length of a command?
17486 max_cmd_len=$max_cmd_len
17488 # Object file suffix (normally "o").
17489 objext=$ac_objext
17491 # Executable file suffix (normally "").
17492 exeext=$exeext
17494 # whether the shell understands "unset".
17495 lt_unset=$lt_unset
17497 # turn spaces into newlines.
17498 SP2NL=$lt_lt_SP2NL
17500 # turn newlines into spaces.
17501 NL2SP=$lt_lt_NL2SP
17503 # An object symbol dumper.
17504 OBJDUMP=$lt_OBJDUMP
17506 # Method to check whether dependent libraries are shared objects.
17507 deplibs_check_method=$lt_deplibs_check_method
17509 # Command to use when deplibs_check_method == "file_magic".
17510 file_magic_cmd=$lt_file_magic_cmd
17512 # The archiver.
17513 AR=$lt_AR
17514 AR_FLAGS=$lt_AR_FLAGS
17516 # A symbol stripping program.
17517 STRIP=$lt_STRIP
17519 # Commands used to install an old-style archive.
17520 RANLIB=$lt_RANLIB
17521 old_postinstall_cmds=$lt_old_postinstall_cmds
17522 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17524 # Whether to use a lock for old archive extraction.
17525 lock_old_archive_extraction=$lock_old_archive_extraction
17527 # A C compiler.
17528 LTCC=$lt_CC
17530 # LTCC compiler flags.
17531 LTCFLAGS=$lt_CFLAGS
17533 # Take the output of nm and produce a listing of raw symbols and C names.
17534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17536 # Transform the output of nm in a proper C declaration.
17537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17539 # Transform the output of nm in a C name address pair.
17540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17542 # Transform the output of nm in a C name address pair when lib prefix is needed.
17543 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17545 # The name of the directory that contains temporary libtool files.
17546 objdir=$objdir
17548 # Used to examine libraries when file_magic_cmd begins with "file".
17549 MAGIC_CMD=$MAGIC_CMD
17551 # Must we lock files when doing compilation?
17552 need_locks=$lt_need_locks
17554 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17555 DSYMUTIL=$lt_DSYMUTIL
17557 # Tool to change global to local symbols on Mac OS X.
17558 NMEDIT=$lt_NMEDIT
17560 # Tool to manipulate fat objects and archives on Mac OS X.
17561 LIPO=$lt_LIPO
17563 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17564 OTOOL=$lt_OTOOL
17566 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17567 OTOOL64=$lt_OTOOL64
17569 # Old archive suffix (normally "a").
17570 libext=$libext
17572 # Shared library suffix (normally ".so").
17573 shrext_cmds=$lt_shrext_cmds
17575 # The commands to extract the exported symbol list from a shared archive.
17576 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17578 # Variables whose values should be saved in libtool wrapper scripts and
17579 # restored at link time.
17580 variables_saved_for_relink=$lt_variables_saved_for_relink
17582 # Do we need the "lib" prefix for modules?
17583 need_lib_prefix=$need_lib_prefix
17585 # Do we need a version for libraries?
17586 need_version=$need_version
17588 # Library versioning type.
17589 version_type=$version_type
17591 # Shared library runtime path variable.
17592 runpath_var=$runpath_var
17594 # Shared library path variable.
17595 shlibpath_var=$shlibpath_var
17597 # Is shlibpath searched before the hard-coded library search path?
17598 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17600 # Format of library name prefix.
17601 libname_spec=$lt_libname_spec
17603 # List of archive names. First name is the real one, the rest are links.
17604 # The last name is the one that the linker finds with -lNAME
17605 library_names_spec=$lt_library_names_spec
17607 # The coded name of the library, if different from the real name.
17608 soname_spec=$lt_soname_spec
17610 # Permission mode override for installation of shared libraries.
17611 install_override_mode=$lt_install_override_mode
17613 # Command to use after installation of a shared archive.
17614 postinstall_cmds=$lt_postinstall_cmds
17616 # Command to use after uninstallation of a shared archive.
17617 postuninstall_cmds=$lt_postuninstall_cmds
17619 # Commands used to finish a libtool library installation in a directory.
17620 finish_cmds=$lt_finish_cmds
17622 # As "finish_cmds", except a single script fragment to be evaled but
17623 # not shown.
17624 finish_eval=$lt_finish_eval
17626 # Whether we should hardcode library paths into libraries.
17627 hardcode_into_libs=$hardcode_into_libs
17629 # Compile-time system search path for libraries.
17630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17632 # Run-time system search path for libraries.
17633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17635 # Whether dlopen is supported.
17636 dlopen_support=$enable_dlopen
17638 # Whether dlopen of programs is supported.
17639 dlopen_self=$enable_dlopen_self
17641 # Whether dlopen of statically linked programs is supported.
17642 dlopen_self_static=$enable_dlopen_self_static
17644 # Commands to strip libraries.
17645 old_striplib=$lt_old_striplib
17646 striplib=$lt_striplib
17649 # The linker used to build libraries.
17650 LD=$lt_LD
17652 # How to create reloadable object files.
17653 reload_flag=$lt_reload_flag
17654 reload_cmds=$lt_reload_cmds
17656 # Commands used to build an old-style archive.
17657 old_archive_cmds=$lt_old_archive_cmds
17659 # A language specific compiler.
17660 CC=$lt_compiler
17662 # Is the compiler the GNU compiler?
17663 with_gcc=$GCC
17665 # Compiler flag to turn off builtin functions.
17666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17668 # How to pass a linker flag through the compiler.
17669 wl=$lt_lt_prog_compiler_wl
17671 # Additional compiler flags for building library objects.
17672 pic_flag=$lt_lt_prog_compiler_pic
17674 # Compiler flag to prevent dynamic linking.
17675 link_static_flag=$lt_lt_prog_compiler_static
17677 # Does compiler simultaneously support -c and -o options?
17678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17680 # Whether or not to add -lc for building shared libraries.
17681 build_libtool_need_lc=$archive_cmds_need_lc
17683 # Whether or not to disallow shared libs when runtime libs are static.
17684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17686 # Compiler flag to allow reflexive dlopens.
17687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17689 # Compiler flag to generate shared objects directly from archives.
17690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17692 # Whether the compiler copes with passing no objects directly.
17693 compiler_needs_object=$lt_compiler_needs_object
17695 # Create an old-style archive from a shared archive.
17696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17698 # Create a temporary old-style archive to link instead of a shared archive.
17699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17701 # Commands used to build a shared archive.
17702 archive_cmds=$lt_archive_cmds
17703 archive_expsym_cmds=$lt_archive_expsym_cmds
17705 # Commands used to build a loadable module if different from building
17706 # a shared archive.
17707 module_cmds=$lt_module_cmds
17708 module_expsym_cmds=$lt_module_expsym_cmds
17710 # Whether we are building with GNU ld or not.
17711 with_gnu_ld=$lt_with_gnu_ld
17713 # Flag that allows shared libraries with undefined symbols to be built.
17714 allow_undefined_flag=$lt_allow_undefined_flag
17716 # Flag that enforces no undefined symbols.
17717 no_undefined_flag=$lt_no_undefined_flag
17719 # Flag to hardcode \$libdir into a binary during linking.
17720 # This must work even if \$libdir does not exist
17721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17723 # If ld is used when linking, flag to hardcode \$libdir into a binary
17724 # during linking. This must work even if \$libdir does not exist.
17725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17727 # Whether we need a single "-rpath" flag with a separated argument.
17728 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17730 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17731 # DIR into the resulting binary.
17732 hardcode_direct=$hardcode_direct
17734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17735 # DIR into the resulting binary and the resulting library dependency is
17736 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17737 # library is relocated.
17738 hardcode_direct_absolute=$hardcode_direct_absolute
17740 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17741 # into the resulting binary.
17742 hardcode_minus_L=$hardcode_minus_L
17744 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17745 # into the resulting binary.
17746 hardcode_shlibpath_var=$hardcode_shlibpath_var
17748 # Set to "yes" if building a shared library automatically hardcodes DIR
17749 # into the library and all subsequent libraries and executables linked
17750 # against it.
17751 hardcode_automatic=$hardcode_automatic
17753 # Set to yes if linker adds runtime paths of dependent libraries
17754 # to runtime path list.
17755 inherit_rpath=$inherit_rpath
17757 # Whether libtool must link a program against all its dependency libraries.
17758 link_all_deplibs=$link_all_deplibs
17760 # Fix the shell variable \$srcfile for the compiler.
17761 fix_srcfile_path=$lt_fix_srcfile_path
17763 # Set to "yes" if exported symbols are required.
17764 always_export_symbols=$always_export_symbols
17766 # The commands to list exported symbols.
17767 export_symbols_cmds=$lt_export_symbols_cmds
17769 # Symbols that should not be listed in the preloaded symbols.
17770 exclude_expsyms=$lt_exclude_expsyms
17772 # Symbols that must always be exported.
17773 include_expsyms=$lt_include_expsyms
17775 # Commands necessary for linking programs (against libraries) with templates.
17776 prelink_cmds=$lt_prelink_cmds
17778 # Specify filename containing input files.
17779 file_list_spec=$lt_file_list_spec
17781 # How to hardcode a shared library path into an executable.
17782 hardcode_action=$hardcode_action
17784 # ### END LIBTOOL CONFIG
17786 _LT_EOF
17788 case $host_os in
17789 aix3*)
17790 cat <<\_LT_EOF >> "$cfgfile"
17791 # AIX sometimes has problems with the GCC collect2 program. For some
17792 # reason, if we set the COLLECT_NAMES environment variable, the problems
17793 # vanish in a puff of smoke.
17794 if test "X${COLLECT_NAMES+set}" != Xset; then
17795 COLLECT_NAMES=
17796 export COLLECT_NAMES
17798 _LT_EOF
17800 esac
17803 ltmain="$ac_aux_dir/ltmain.sh"
17806 # We use sed instead of cat because bash on DJGPP gets confused if
17807 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17808 # text mode, it properly converts lines to CR/LF. This bash problem
17809 # is reportedly fixed, but why not run on old versions too?
17810 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17811 || (rm -f "$cfgfile"; exit 1)
17813 case $xsi_shell in
17814 yes)
17815 cat << \_LT_EOF >> "$cfgfile"
17817 # func_dirname file append nondir_replacement
17818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17819 # otherwise set result to NONDIR_REPLACEMENT.
17820 func_dirname ()
17822 case ${1} in
17823 */*) func_dirname_result="${1%/*}${2}" ;;
17824 * ) func_dirname_result="${3}" ;;
17825 esac
17828 # func_basename file
17829 func_basename ()
17831 func_basename_result="${1##*/}"
17834 # func_dirname_and_basename file append nondir_replacement
17835 # perform func_basename and func_dirname in a single function
17836 # call:
17837 # dirname: Compute the dirname of FILE. If nonempty,
17838 # add APPEND to the result, otherwise set result
17839 # to NONDIR_REPLACEMENT.
17840 # value returned in "$func_dirname_result"
17841 # basename: Compute filename of FILE.
17842 # value retuned in "$func_basename_result"
17843 # Implementation must be kept synchronized with func_dirname
17844 # and func_basename. For efficiency, we do not delegate to
17845 # those functions but instead duplicate the functionality here.
17846 func_dirname_and_basename ()
17848 case ${1} in
17849 */*) func_dirname_result="${1%/*}${2}" ;;
17850 * ) func_dirname_result="${3}" ;;
17851 esac
17852 func_basename_result="${1##*/}"
17855 # func_stripname prefix suffix name
17856 # strip PREFIX and SUFFIX off of NAME.
17857 # PREFIX and SUFFIX must not contain globbing or regex special
17858 # characters, hashes, percent signs, but SUFFIX may contain a leading
17859 # dot (in which case that matches only a dot).
17860 func_stripname ()
17862 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17863 # positional parameters, so assign one to ordinary parameter first.
17864 func_stripname_result=${3}
17865 func_stripname_result=${func_stripname_result#"${1}"}
17866 func_stripname_result=${func_stripname_result%"${2}"}
17869 # func_opt_split
17870 func_opt_split ()
17872 func_opt_split_opt=${1%%=*}
17873 func_opt_split_arg=${1#*=}
17876 # func_lo2o object
17877 func_lo2o ()
17879 case ${1} in
17880 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17881 *) func_lo2o_result=${1} ;;
17882 esac
17885 # func_xform libobj-or-source
17886 func_xform ()
17888 func_xform_result=${1%.*}.lo
17891 # func_arith arithmetic-term...
17892 func_arith ()
17894 func_arith_result=$(( $* ))
17897 # func_len string
17898 # STRING may not start with a hyphen.
17899 func_len ()
17901 func_len_result=${#1}
17904 _LT_EOF
17906 *) # Bourne compatible functions.
17907 cat << \_LT_EOF >> "$cfgfile"
17909 # func_dirname file append nondir_replacement
17910 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17911 # otherwise set result to NONDIR_REPLACEMENT.
17912 func_dirname ()
17914 # Extract subdirectory from the argument.
17915 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17916 if test "X$func_dirname_result" = "X${1}"; then
17917 func_dirname_result="${3}"
17918 else
17919 func_dirname_result="$func_dirname_result${2}"
17923 # func_basename file
17924 func_basename ()
17926 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17930 # func_stripname prefix suffix name
17931 # strip PREFIX and SUFFIX off of NAME.
17932 # PREFIX and SUFFIX must not contain globbing or regex special
17933 # characters, hashes, percent signs, but SUFFIX may contain a leading
17934 # dot (in which case that matches only a dot).
17935 # func_strip_suffix prefix name
17936 func_stripname ()
17938 case ${2} in
17939 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17940 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17941 esac
17944 # sed scripts:
17945 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17946 my_sed_long_arg='1s/^-[^=]*=//'
17948 # func_opt_split
17949 func_opt_split ()
17951 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17952 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17955 # func_lo2o object
17956 func_lo2o ()
17958 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17961 # func_xform libobj-or-source
17962 func_xform ()
17964 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17967 # func_arith arithmetic-term...
17968 func_arith ()
17970 func_arith_result=`expr "$@"`
17973 # func_len string
17974 # STRING may not start with a hyphen.
17975 func_len ()
17977 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17980 _LT_EOF
17981 esac
17983 case $lt_shell_append in
17984 yes)
17985 cat << \_LT_EOF >> "$cfgfile"
17987 # func_append var value
17988 # Append VALUE to the end of shell variable VAR.
17989 func_append ()
17991 eval "$1+=\$2"
17993 _LT_EOF
17996 cat << \_LT_EOF >> "$cfgfile"
17998 # func_append var value
17999 # Append VALUE to the end of shell variable VAR.
18000 func_append ()
18002 eval "$1=\$$1\$2"
18005 _LT_EOF
18007 esac
18010 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18011 || (rm -f "$cfgfile"; exit 1)
18013 mv -f "$cfgfile" "$ofile" ||
18014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18015 chmod +x "$ofile"
18018 "default-1":C)
18019 for ac_file in $CONFIG_FILES; do
18020 # Support "outfile[:infile[:infile...]]"
18021 case "$ac_file" in
18022 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18023 esac
18024 # PO directories have a Makefile.in generated from Makefile.in.in.
18025 case "$ac_file" in */Makefile.in)
18026 # Adjust a relative srcdir.
18027 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18028 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18029 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18030 # In autoconf-2.13 it is called $ac_given_srcdir.
18031 # In autoconf-2.50 it is called $srcdir.
18032 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18033 case "$ac_given_srcdir" in
18034 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18035 /*) top_srcdir="$ac_given_srcdir" ;;
18036 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18037 esac
18038 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18039 rm -f "$ac_dir/POTFILES"
18040 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18041 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18042 POMAKEFILEDEPS="POTFILES.in"
18043 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18044 # on $ac_dir but don't depend on user-specified configuration
18045 # parameters.
18046 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18047 # The LINGUAS file contains the set of available languages.
18048 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18049 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18051 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18052 # Hide the ALL_LINGUAS assigment from automake.
18053 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18054 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18055 else
18056 # The set of available languages was given in configure.in.
18057 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18059 case "$ac_given_srcdir" in
18060 .) srcdirpre= ;;
18061 *) srcdirpre='$(srcdir)/' ;;
18062 esac
18063 POFILES=
18064 GMOFILES=
18065 UPDATEPOFILES=
18066 DUMMYPOFILES=
18067 for lang in $ALL_LINGUAS; do
18068 POFILES="$POFILES $srcdirpre$lang.po"
18069 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18070 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18071 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18072 done
18073 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18074 # environment variable.
18075 INST_LINGUAS=
18076 if test -n "$ALL_LINGUAS"; then
18077 for presentlang in $ALL_LINGUAS; do
18078 useit=no
18079 if test "%UNSET%" != "$LINGUAS"; then
18080 desiredlanguages="$LINGUAS"
18081 else
18082 desiredlanguages="$ALL_LINGUAS"
18084 for desiredlang in $desiredlanguages; do
18085 # Use the presentlang catalog if desiredlang is
18086 # a. equal to presentlang, or
18087 # b. a variant of presentlang (because in this case,
18088 # presentlang can be used as a fallback for messages
18089 # which are not translated in the desiredlang catalog).
18090 case "$desiredlang" in
18091 "$presentlang"*) useit=yes;;
18092 esac
18093 done
18094 if test $useit = yes; then
18095 INST_LINGUAS="$INST_LINGUAS $presentlang"
18097 done
18099 CATALOGS=
18100 if test -n "$INST_LINGUAS"; then
18101 for lang in $INST_LINGUAS; do
18102 CATALOGS="$CATALOGS $lang.gmo"
18103 done
18105 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18106 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"
18107 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18108 if test -f "$f"; then
18109 case "$f" in
18110 *.orig | *.bak | *~) ;;
18111 *) cat "$f" >> "$ac_dir/Makefile" ;;
18112 esac
18114 done
18117 esac
18118 done ;;
18119 "bfd_stdint.h":C)
18120 if test "$GCC" = yes; then
18121 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18122 else
18123 echo "/* generated for $CC */" > tmp-stdint.h
18126 sed 's/^ *//' >> tmp-stdint.h <<EOF
18128 #ifndef GCC_GENERATED_STDINT_H
18129 #define GCC_GENERATED_STDINT_H 1
18131 #include <sys/types.h>
18134 if test "$acx_cv_header_stdint" != stdint.h; then
18135 echo "#include <stddef.h>" >> tmp-stdint.h
18137 if test "$acx_cv_header_stdint" != stddef.h; then
18138 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18141 sed 's/^ *//' >> tmp-stdint.h <<EOF
18142 /* glibc uses these symbols as guards to prevent redefinitions. */
18143 #ifdef __int8_t_defined
18144 #define _INT8_T
18145 #define _INT16_T
18146 #define _INT32_T
18147 #endif
18148 #ifdef __uint32_t_defined
18149 #define _UINT32_T
18150 #endif
18154 # ----------------- done header, emit basic int types -------------
18155 if test "$acx_cv_header_stdint" = stddef.h; then
18156 sed 's/^ *//' >> tmp-stdint.h <<EOF
18158 #ifndef _UINT8_T
18159 #define _UINT8_T
18160 #ifndef __uint8_t_defined
18161 #define __uint8_t_defined
18162 typedef unsigned $acx_cv_type_int8_t uint8_t;
18163 #endif
18164 #endif
18166 #ifndef _UINT16_T
18167 #define _UINT16_T
18168 #ifndef __uint16_t_defined
18169 #define __uint16_t_defined
18170 typedef unsigned $acx_cv_type_int16_t uint16_t;
18171 #endif
18172 #endif
18174 #ifndef _UINT32_T
18175 #define _UINT32_T
18176 #ifndef __uint32_t_defined
18177 #define __uint32_t_defined
18178 typedef unsigned $acx_cv_type_int32_t uint32_t;
18179 #endif
18180 #endif
18182 #ifndef _INT8_T
18183 #define _INT8_T
18184 #ifndef __int8_t_defined
18185 #define __int8_t_defined
18186 typedef $acx_cv_type_int8_t int8_t;
18187 #endif
18188 #endif
18190 #ifndef _INT16_T
18191 #define _INT16_T
18192 #ifndef __int16_t_defined
18193 #define __int16_t_defined
18194 typedef $acx_cv_type_int16_t int16_t;
18195 #endif
18196 #endif
18198 #ifndef _INT32_T
18199 #define _INT32_T
18200 #ifndef __int32_t_defined
18201 #define __int32_t_defined
18202 typedef $acx_cv_type_int32_t int32_t;
18203 #endif
18204 #endif
18206 elif test "$ac_cv_type_u_int32_t" = yes; then
18207 sed 's/^ *//' >> tmp-stdint.h <<EOF
18209 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18210 #ifndef _INT8_T
18211 #define _INT8_T
18212 #endif
18213 #ifndef _INT16_T
18214 #define _INT16_T
18215 #endif
18216 #ifndef _INT32_T
18217 #define _INT32_T
18218 #endif
18220 #ifndef _UINT8_T
18221 #define _UINT8_T
18222 #ifndef __uint8_t_defined
18223 #define __uint8_t_defined
18224 typedef u_int8_t uint8_t;
18225 #endif
18226 #endif
18228 #ifndef _UINT16_T
18229 #define _UINT16_T
18230 #ifndef __uint16_t_defined
18231 #define __uint16_t_defined
18232 typedef u_int16_t uint16_t;
18233 #endif
18234 #endif
18236 #ifndef _UINT32_T
18237 #define _UINT32_T
18238 #ifndef __uint32_t_defined
18239 #define __uint32_t_defined
18240 typedef u_int32_t uint32_t;
18241 #endif
18242 #endif
18244 else
18245 sed 's/^ *//' >> tmp-stdint.h <<EOF
18247 /* Some systems have guard macros to prevent redefinitions, define them. */
18248 #ifndef _INT8_T
18249 #define _INT8_T
18250 #endif
18251 #ifndef _INT16_T
18252 #define _INT16_T
18253 #endif
18254 #ifndef _INT32_T
18255 #define _INT32_T
18256 #endif
18257 #ifndef _UINT8_T
18258 #define _UINT8_T
18259 #endif
18260 #ifndef _UINT16_T
18261 #define _UINT16_T
18262 #endif
18263 #ifndef _UINT32_T
18264 #define _UINT32_T
18265 #endif
18269 # ------------- done basic int types, emit int64_t types ------------
18270 if test "$ac_cv_type_uint64_t" = yes; then
18271 sed 's/^ *//' >> tmp-stdint.h <<EOF
18273 /* system headers have good uint64_t and int64_t */
18274 #ifndef _INT64_T
18275 #define _INT64_T
18276 #endif
18277 #ifndef _UINT64_T
18278 #define _UINT64_T
18279 #endif
18281 elif test "$ac_cv_type_u_int64_t" = yes; then
18282 sed 's/^ *//' >> tmp-stdint.h <<EOF
18284 /* system headers have an u_int64_t (and int64_t) */
18285 #ifndef _INT64_T
18286 #define _INT64_T
18287 #endif
18288 #ifndef _UINT64_T
18289 #define _UINT64_T
18290 #ifndef __uint64_t_defined
18291 #define __uint64_t_defined
18292 typedef u_int64_t uint64_t;
18293 #endif
18294 #endif
18296 elif test -n "$acx_cv_type_int64_t"; then
18297 sed 's/^ *//' >> tmp-stdint.h <<EOF
18299 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18300 #ifndef _INT64_T
18301 #define _INT64_T
18302 typedef $acx_cv_type_int64_t int64_t;
18303 #endif
18304 #ifndef _UINT64_T
18305 #define _UINT64_T
18306 #ifndef __uint64_t_defined
18307 #define __uint64_t_defined
18308 typedef unsigned $acx_cv_type_int64_t uint64_t;
18309 #endif
18310 #endif
18312 else
18313 sed 's/^ *//' >> tmp-stdint.h <<EOF
18315 /* some common heuristics for int64_t, using compiler-specific tests */
18316 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18317 #ifndef _INT64_T
18318 #define _INT64_T
18319 #ifndef __int64_t_defined
18320 typedef long long int64_t;
18321 #endif
18322 #endif
18323 #ifndef _UINT64_T
18324 #define _UINT64_T
18325 typedef unsigned long long uint64_t;
18326 #endif
18328 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18329 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18330 does not implement __extension__. But that compiler doesn't define
18331 __GNUC_MINOR__. */
18332 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18333 # define __extension__
18334 # endif
18336 # ifndef _INT64_T
18337 # define _INT64_T
18338 __extension__ typedef long long int64_t;
18339 # endif
18340 # ifndef _UINT64_T
18341 # define _UINT64_T
18342 __extension__ typedef unsigned long long uint64_t;
18343 # endif
18345 #elif !defined __STRICT_ANSI__
18346 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18348 # ifndef _INT64_T
18349 # define _INT64_T
18350 typedef __int64 int64_t;
18351 # endif
18352 # ifndef _UINT64_T
18353 # define _UINT64_T
18354 typedef unsigned __int64 uint64_t;
18355 # endif
18356 # endif /* compiler */
18358 #endif /* ANSI version */
18362 # ------------- done int64_t types, emit intptr types ------------
18363 if test "$ac_cv_type_uintptr_t" != yes; then
18364 sed 's/^ *//' >> tmp-stdint.h <<EOF
18366 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18367 #ifndef __uintptr_t_defined
18368 typedef u$acx_cv_type_intptr_t uintptr_t;
18369 #endif
18370 #ifndef __intptr_t_defined
18371 typedef $acx_cv_type_intptr_t intptr_t;
18372 #endif
18376 # ------------- done intptr types, emit int_least types ------------
18377 if test "$ac_cv_type_int_least32_t" != yes; then
18378 sed 's/^ *//' >> tmp-stdint.h <<EOF
18380 /* Define int_least types */
18381 typedef int8_t int_least8_t;
18382 typedef int16_t int_least16_t;
18383 typedef int32_t int_least32_t;
18384 #ifdef _INT64_T
18385 typedef int64_t int_least64_t;
18386 #endif
18388 typedef uint8_t uint_least8_t;
18389 typedef uint16_t uint_least16_t;
18390 typedef uint32_t uint_least32_t;
18391 #ifdef _UINT64_T
18392 typedef uint64_t uint_least64_t;
18393 #endif
18397 # ------------- done intptr types, emit int_fast types ------------
18398 if test "$ac_cv_type_int_fast32_t" != yes; then
18399 sed 's/^ *//' >> tmp-stdint.h <<EOF
18401 /* Define int_fast types. short is often slow */
18402 typedef int8_t int_fast8_t;
18403 typedef int int_fast16_t;
18404 typedef int32_t int_fast32_t;
18405 #ifdef _INT64_T
18406 typedef int64_t int_fast64_t;
18407 #endif
18409 typedef uint8_t uint_fast8_t;
18410 typedef unsigned int uint_fast16_t;
18411 typedef uint32_t uint_fast32_t;
18412 #ifdef _UINT64_T
18413 typedef uint64_t uint_fast64_t;
18414 #endif
18418 if test "$ac_cv_type_uintmax_t" != yes; then
18419 sed 's/^ *//' >> tmp-stdint.h <<EOF
18421 /* Define intmax based on what we found */
18422 #ifdef _INT64_T
18423 typedef int64_t intmax_t;
18424 #else
18425 typedef long intmax_t;
18426 #endif
18427 #ifdef _UINT64_T
18428 typedef uint64_t uintmax_t;
18429 #else
18430 typedef unsigned long uintmax_t;
18431 #endif
18435 sed 's/^ *//' >> tmp-stdint.h <<EOF
18437 #endif /* GCC_GENERATED_STDINT_H */
18440 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18441 rm -f tmp-stdint.h
18442 else
18443 mv -f tmp-stdint.h bfd_stdint.h
18447 "default":C)
18448 case "$srcdir" in
18449 .) srcdirpre= ;;
18450 *) srcdirpre='$(srcdir)/' ;;
18451 esac
18452 POFILES=
18453 GMOFILES=
18454 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18455 if test $lang != dummy; then
18456 POFILES="$POFILES $srcdirpre$lang.po"
18457 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18459 done
18460 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18461 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18462 -e "s,@POFILES@,$POFILES," \
18463 -e "s,@GMOFILES@,$GMOFILES," \
18464 po/Makefile.in > po/Makefile ;;
18466 esac
18467 done # for ac_tag
18470 as_fn_exit 0
18471 _ACEOF
18472 ac_clean_files=$ac_clean_files_save
18474 test $ac_write_fail = 0 ||
18475 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18478 # configure is writing to config.log, and then calls config.status.
18479 # config.status does its own redirection, appending to config.log.
18480 # Unfortunately, on DOS this fails, as config.log is still kept open
18481 # by configure, so config.status won't be able to write to it; its
18482 # output is simply discarded. So we exec the FD to /dev/null,
18483 # effectively closing config.log, so it can be properly (re)opened and
18484 # appended to by config.status. When coming back to configure, we
18485 # need to make the FD available again.
18486 if test "$no_create" != yes; then
18487 ac_cs_success=:
18488 ac_config_status_args=
18489 test "$silent" = yes &&
18490 ac_config_status_args="$ac_config_status_args --quiet"
18491 exec 5>/dev/null
18492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18493 exec 5>>config.log
18494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18495 # would make configure fail if this is the last instruction.
18496 $ac_cs_success || as_fn_exit $?
18498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}