2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL
=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE
= GREP_OPTIONS
=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir
=.
/$as_dir;;
333 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
337 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs
="'$as_qdir' $as_dirs"
341 as_dir
=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
367 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p
()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
410 as_val
=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status
=$1; test $as_status -eq 0 && as_status
=1
424 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit
$as_status
431 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
438 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
450 as_me
=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits
='0123456789'
474 as_cr_alnum
=$as_cr_Letters$as_cr_digits
477 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
478 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x
"$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec
=no
; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C
= ECHO_N
= ECHO_T
=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
525 rm -f conf$$ conf$$.exe conf$$.
file
526 if test -d conf$$.dir
; then
527 rm -f conf$$.dir
/conf$$.
file
530 mkdir conf$$.dir
2>/dev
/null
532 if (echo >conf$$.
file) 2>/dev
/null
; then
533 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
541 elif ln conf$$.
file conf$$
2>/dev
/null
; then
549 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
550 rmdir conf$$.dir
2>/dev
/null
552 if mkdir
-p .
2>/dev
/null
; then
553 as_mkdir_p
='mkdir -p "$as_dir"'
555 test -d .
/-p && rmdir .
/-p
560 as_executable_p
=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL
=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix
=/usr
/local
584 ac_config_libobj_dir
=.
591 # Identity of this package.
593 PACKAGE_TARNAME
='sim'
595 PACKAGE_STRING
='sim 0'
596 PACKAGE_BUGREPORT
='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL
='https://sourceware.org/gdb/wiki/Sim/'
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
637 ac_subst_vars
='am__EXEEXT_FALSE
640 SIM_RX_CYCLE_ACCURATE_FLAGS
643 sim_ppc_default_model
657 sim_ppc_decode_mechanism
662 SIM_MIPS_GEN_MODE_MULTI_FALSE
663 SIM_MIPS_GEN_MODE_MULTI_TRUE
664 SIM_MIPS_GEN_MODE_M16_FALSE
665 SIM_MIPS_GEN_MODE_M16_TRUE
666 SIM_MIPS_GEN_MODE_SINGLE_FALSE
667 SIM_MIPS_GEN_MODE_SINGLE_TRUE
670 SIM_MIPS_MULTI_IGEN_CONFIGS
671 SIM_MIPS_IGEN_ITABLE_FLAGS
674 SIM_MIPS_SINGLE_FLAGS
678 SIM_FRV_TRAPDUMP_FLAGS
679 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
680 SIM_CFLAG_WNO_SHADOW_LOCAL
692 SIM_ENABLE_ARCH_examples_FALSE
693 SIM_ENABLE_ARCH_examples_TRUE
694 CC_FOR_TARGET_EXAMPLE_SYNACOR
695 LD_FOR_TARGET_EXAMPLE_SYNACOR
696 AS_FOR_TARGET_EXAMPLE_SYNACOR
697 SIM_ENABLE_ARCH_v850_FALSE
698 SIM_ENABLE_ARCH_v850_TRUE
702 SIM_ENABLE_ARCH_erc32_FALSE
703 SIM_ENABLE_ARCH_erc32_TRUE
707 SIM_ENABLE_ARCH_sh_FALSE
708 SIM_ENABLE_ARCH_sh_TRUE
712 SIM_ENABLE_ARCH_rx_FALSE
713 SIM_ENABLE_ARCH_rx_TRUE
717 SIM_ENABLE_ARCH_rl78_FALSE
718 SIM_ENABLE_ARCH_rl78_TRUE
722 SIM_ENABLE_ARCH_riscv_FALSE
723 SIM_ENABLE_ARCH_riscv_TRUE
727 SIM_ENABLE_ARCH_pru_FALSE
728 SIM_ENABLE_ARCH_pru_TRUE
732 SIM_ENABLE_ARCH_ppc_FALSE
733 SIM_ENABLE_ARCH_ppc_TRUE
737 SIM_ENABLE_ARCH_or1k_FALSE
738 SIM_ENABLE_ARCH_or1k_TRUE
742 SIM_ENABLE_ARCH_msp430_FALSE
743 SIM_ENABLE_ARCH_msp430_TRUE
747 SIM_ENABLE_ARCH_moxie_FALSE
748 SIM_ENABLE_ARCH_moxie_TRUE
752 SIM_ENABLE_ARCH_mn10300_FALSE
753 SIM_ENABLE_ARCH_mn10300_TRUE
754 CC_FOR_TARGET_MN10300
755 LD_FOR_TARGET_MN10300
756 AS_FOR_TARGET_MN10300
757 SIM_ENABLE_ARCH_mips_FALSE
758 SIM_ENABLE_ARCH_mips_TRUE
762 SIM_ENABLE_ARCH_microblaze_FALSE
763 SIM_ENABLE_ARCH_microblaze_TRUE
764 CC_FOR_TARGET_MICROBLAZE
765 LD_FOR_TARGET_MICROBLAZE
766 AS_FOR_TARGET_MICROBLAZE
767 SIM_ENABLE_ARCH_mcore_FALSE
768 SIM_ENABLE_ARCH_mcore_TRUE
772 SIM_ENABLE_ARCH_m68hc11_FALSE
773 SIM_ENABLE_ARCH_m68hc11_TRUE
774 CC_FOR_TARGET_M68HC11
775 LD_FOR_TARGET_M68HC11
776 AS_FOR_TARGET_M68HC11
777 SIM_ENABLE_ARCH_m32r_FALSE
778 SIM_ENABLE_ARCH_m32r_TRUE
782 SIM_ENABLE_ARCH_m32c_FALSE
783 SIM_ENABLE_ARCH_m32c_TRUE
787 SIM_ENABLE_ARCH_lm32_FALSE
788 SIM_ENABLE_ARCH_lm32_TRUE
792 SIM_ENABLE_ARCH_iq2000_FALSE
793 SIM_ENABLE_ARCH_iq2000_TRUE
797 SIM_ENABLE_ARCH_h8300_FALSE
798 SIM_ENABLE_ARCH_h8300_TRUE
802 SIM_ENABLE_ARCH_ft32_FALSE
803 SIM_ENABLE_ARCH_ft32_TRUE
807 SIM_ENABLE_ARCH_frv_FALSE
808 SIM_ENABLE_ARCH_frv_TRUE
812 SIM_ENABLE_ARCH_d10v_FALSE
813 SIM_ENABLE_ARCH_d10v_TRUE
817 SIM_ENABLE_ARCH_cris_FALSE
818 SIM_ENABLE_ARCH_cris_TRUE
822 SIM_ENABLE_ARCH_cr16_FALSE
823 SIM_ENABLE_ARCH_cr16_TRUE
827 SIM_ENABLE_ARCH_bpf_FALSE
828 SIM_ENABLE_ARCH_bpf_TRUE
832 SIM_ENABLE_ARCH_bfin_FALSE
833 SIM_ENABLE_ARCH_bfin_TRUE
837 SIM_ENABLE_ARCH_avr_FALSE
838 SIM_ENABLE_ARCH_avr_TRUE
842 SIM_ENABLE_ARCH_arm_FALSE
843 SIM_ENABLE_ARCH_arm_TRUE
847 SIM_ENABLE_ARCH_aarch64_FALSE
848 SIM_ENABLE_ARCH_aarch64_TRUE
849 CC_FOR_TARGET_AARCH64
850 LD_FOR_TARGET_AARCH64
851 AS_FOR_TARGET_AARCH64
878 INSTALL_STRIP_PROGRAM
890 MAINTAINER_MODE_FALSE
982 program_transform_name
1000 enable_option_checking
1009 enable_maintainer_mode
1010 enable_dependency_tracking
1015 enable_sim_alignment
1020 enable_sim_environment
1024 enable_sim_reserved_bits
1030 enable_build_warnings
1031 enable_sim_build_warnings
1032 enable_sim_frv_trapdump
1033 enable_sim_ppc_bitsize
1034 enable_sim_ppc_decode_mechanism
1035 enable_sim_ppc_default_model
1036 enable_sim_ppc_duplicate
1037 enable_sim_ppc_filter
1038 enable_sim_ppc_float
1039 enable_sim_ppc_hardware
1040 enable_sim_ppc_icache
1042 enable_sim_ppc_line_nr
1043 enable_sim_ppc_model
1044 enable_sim_ppc_model_issue
1045 enable_sim_ppc_monitor
1046 enable_sim_ppc_opcode
1048 enable_sim_ppc_switch
1049 enable_sim_ppc_timebase
1050 enable_sim_ppc_xor_endian
1051 enable_sim_rx_cycle_accurate
1053 ac_precious_vars
='build_alias
1067 AS_FOR_TARGET_AARCH64
1068 LD_FOR_TARGET_AARCH64
1069 CC_FOR_TARGET_AARCH64
1100 AS_FOR_TARGET_IQ2000
1101 LD_FOR_TARGET_IQ2000
1102 CC_FOR_TARGET_IQ2000
1112 AS_FOR_TARGET_M68HC11
1113 LD_FOR_TARGET_M68HC11
1114 CC_FOR_TARGET_M68HC11
1118 AS_FOR_TARGET_MICROBLAZE
1119 LD_FOR_TARGET_MICROBLAZE
1120 CC_FOR_TARGET_MICROBLAZE
1124 AS_FOR_TARGET_MN10300
1125 LD_FOR_TARGET_MN10300
1126 CC_FOR_TARGET_MN10300
1130 AS_FOR_TARGET_MSP430
1131 LD_FOR_TARGET_MSP430
1132 CC_FOR_TARGET_MSP430
1160 AS_FOR_TARGET_EXAMPLE_SYNACOR
1161 LD_FOR_TARGET_EXAMPLE_SYNACOR
1162 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1165 # Initialize some variables set by options.
1167 ac_init_version
=false
1168 ac_unrecognized_opts
=
1169 ac_unrecognized_sep
=
1170 # The variables have the same names as the options, with
1171 # dashes changed to underlines.
1172 cache_file
=/dev
/null
1179 program_transform_name
=s
,x
,x
,
1187 # Installation directory options.
1188 # These are left unexpanded so users can "make install exec_prefix=/foo"
1189 # and all the variables that are supposed to be based on exec_prefix
1190 # by default will actually change.
1191 # Use braces instead of parens because sh, perl, etc. also accept them.
1192 # (The list follows the same order as the GNU Coding Standards.)
1193 bindir
='${exec_prefix}/bin'
1194 sbindir
='${exec_prefix}/sbin'
1195 libexecdir
='${exec_prefix}/libexec'
1196 datarootdir
='${prefix}/share'
1197 datadir
='${datarootdir}'
1198 sysconfdir
='${prefix}/etc'
1199 sharedstatedir
='${prefix}/com'
1200 localstatedir
='${prefix}/var'
1201 includedir
='${prefix}/include'
1202 oldincludedir
='/usr/include'
1203 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1204 infodir
='${datarootdir}/info'
1209 libdir
='${exec_prefix}/lib'
1210 localedir
='${datarootdir}/locale'
1211 mandir
='${datarootdir}/man'
1217 # If the previous option needs an argument, assign it.
1218 if test -n "$ac_prev"; then
1219 eval $ac_prev=\
$ac_option
1225 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1230 # Accept the important Cygnus configure options, so we can diagnose typos.
1232 case $ac_dashdash$ac_option in
1236 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1238 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1239 bindir
=$ac_optarg ;;
1241 -build |
--build |
--buil |
--bui |
--bu)
1242 ac_prev
=build_alias
;;
1243 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1244 build_alias
=$ac_optarg ;;
1246 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1247 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1248 ac_prev
=cache_file
;;
1249 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1250 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1251 cache_file
=$ac_optarg ;;
1253 --config-cache |
-C)
1254 cache_file
=config.cache
;;
1256 -datadir |
--datadir |
--datadi |
--datad)
1258 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1259 datadir
=$ac_optarg ;;
1261 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1262 |
--dataroo |
--dataro |
--datar)
1263 ac_prev
=datarootdir
;;
1264 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1265 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1266 datarootdir
=$ac_optarg ;;
1268 -disable-* |
--disable-*)
1269 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1272 as_fn_error $?
"invalid feature name: $ac_useropt"
1273 ac_useropt_orig
=$ac_useropt
1274 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "enable_
$ac_useropt"
1279 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1280 ac_unrecognized_sep
=', ';;
1282 eval enable_
$ac_useropt=no
;;
1284 -docdir |
--docdir |
--docdi |
--doc |
--do)
1286 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1287 docdir
=$ac_optarg ;;
1289 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1291 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1292 dvidir
=$ac_optarg ;;
1294 -enable-* |
--enable-*)
1295 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1298 as_fn_error $?
"invalid feature name: $ac_useropt"
1299 ac_useropt_orig
=$ac_useropt
1300 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "enable_
$ac_useropt"
1305 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1306 ac_unrecognized_sep
=', ';;
1308 eval enable_
$ac_useropt=\
$ac_optarg ;;
1310 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1311 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1312 |
--exec |
--exe |
--ex)
1313 ac_prev
=exec_prefix
;;
1314 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1315 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1316 |
--exec=* |
--exe=* |
--ex=*)
1317 exec_prefix
=$ac_optarg ;;
1319 -gas |
--gas |
--ga |
--g)
1320 # Obsolete; use --with-gas.
1323 -help |
--help |
--hel |
--he |
-h)
1324 ac_init_help
=long
;;
1325 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1326 ac_init_help
=recursive
;;
1327 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1328 ac_init_help
=short
;;
1330 -host |
--host |
--hos |
--ho)
1331 ac_prev
=host_alias
;;
1332 -host=* |
--host=* |
--hos=* |
--ho=*)
1333 host_alias
=$ac_optarg ;;
1335 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1337 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1339 htmldir
=$ac_optarg ;;
1341 -includedir |
--includedir |
--includedi |
--included |
--include \
1342 |
--includ |
--inclu |
--incl |
--inc)
1343 ac_prev
=includedir
;;
1344 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1345 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1346 includedir
=$ac_optarg ;;
1348 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1350 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1351 infodir
=$ac_optarg ;;
1353 -libdir |
--libdir |
--libdi |
--libd)
1355 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1356 libdir
=$ac_optarg ;;
1358 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1359 |
--libexe |
--libex |
--libe)
1360 ac_prev
=libexecdir
;;
1361 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1362 |
--libexe=* |
--libex=* |
--libe=*)
1363 libexecdir
=$ac_optarg ;;
1365 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1366 ac_prev
=localedir
;;
1367 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1368 localedir
=$ac_optarg ;;
1370 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1371 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1372 ac_prev
=localstatedir
;;
1373 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1374 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1375 localstatedir
=$ac_optarg ;;
1377 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1379 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1380 mandir
=$ac_optarg ;;
1382 -nfp |
--nfp |
--nf)
1383 # Obsolete; use --without-fp.
1386 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1387 |
--no-cr |
--no-c |
-n)
1390 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1391 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1394 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1395 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1396 |
--oldin |
--oldi |
--old |
--ol |
--o)
1397 ac_prev
=oldincludedir
;;
1398 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1399 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1400 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1401 oldincludedir
=$ac_optarg ;;
1403 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1405 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1406 prefix
=$ac_optarg ;;
1408 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1409 |
--program-pre |
--program-pr |
--program-p)
1410 ac_prev
=program_prefix
;;
1411 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1412 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1413 program_prefix
=$ac_optarg ;;
1415 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1416 |
--program-suf |
--program-su |
--program-s)
1417 ac_prev
=program_suffix
;;
1418 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1419 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1420 program_suffix
=$ac_optarg ;;
1422 -program-transform-name |
--program-transform-name \
1423 |
--program-transform-nam |
--program-transform-na \
1424 |
--program-transform-n |
--program-transform- \
1425 |
--program-transform |
--program-transfor \
1426 |
--program-transfo |
--program-transf \
1427 |
--program-trans |
--program-tran \
1428 |
--progr-tra |
--program-tr |
--program-t)
1429 ac_prev
=program_transform_name
;;
1430 -program-transform-name=* |
--program-transform-name=* \
1431 |
--program-transform-nam=* |
--program-transform-na=* \
1432 |
--program-transform-n=* |
--program-transform-=* \
1433 |
--program-transform=* |
--program-transfor=* \
1434 |
--program-transfo=* |
--program-transf=* \
1435 |
--program-trans=* |
--program-tran=* \
1436 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1437 program_transform_name
=$ac_optarg ;;
1439 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1441 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1442 pdfdir
=$ac_optarg ;;
1444 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1446 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1449 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1450 |
-silent |
--silent |
--silen |
--sile |
--sil)
1453 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1455 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1457 sbindir
=$ac_optarg ;;
1459 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1460 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1461 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1463 ac_prev
=sharedstatedir
;;
1464 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1465 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1466 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1468 sharedstatedir
=$ac_optarg ;;
1470 -site |
--site |
--sit)
1472 -site=* |
--site=* |
--sit=*)
1475 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1477 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1478 srcdir
=$ac_optarg ;;
1480 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1481 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1482 ac_prev
=sysconfdir
;;
1483 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1484 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1485 sysconfdir
=$ac_optarg ;;
1487 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1488 ac_prev
=target_alias
;;
1489 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1490 target_alias
=$ac_optarg ;;
1492 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1495 -version |
--version |
--versio |
--versi |
--vers |
-V)
1496 ac_init_version
=: ;;
1499 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1500 # Reject names that are not valid shell variable names.
1501 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1502 as_fn_error $?
"invalid package name: $ac_useropt"
1503 ac_useropt_orig
=$ac_useropt
1504 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1505 case $ac_user_opts in
1509 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1510 ac_unrecognized_sep
=', ';;
1512 eval with_
$ac_useropt=\
$ac_optarg ;;
1514 -without-* |
--without-*)
1515 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1516 # Reject names that are not valid shell variable names.
1517 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1518 as_fn_error $?
"invalid package name: $ac_useropt"
1519 ac_useropt_orig
=$ac_useropt
1520 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1521 case $ac_user_opts in
1525 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1526 ac_unrecognized_sep
=', ';;
1528 eval with_
$ac_useropt=no
;;
1531 # Obsolete; use --with-x.
1534 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1535 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1536 ac_prev
=x_includes
;;
1537 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1538 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1539 x_includes
=$ac_optarg ;;
1541 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1542 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1543 ac_prev
=x_libraries
;;
1544 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1545 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1546 x_libraries
=$ac_optarg ;;
1548 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1549 Try \`$0 --help' for more information"
1553 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1554 # Reject names that are not valid shell variable names.
1555 case $ac_envvar in #(
1556 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1557 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1559 eval $ac_envvar=\
$ac_optarg
1560 export $ac_envvar ;;
1563 # FIXME: should be removed in autoconf 3.0.
1564 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1565 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1566 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1567 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1573 if test -n "$ac_prev"; then
1574 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1575 as_fn_error $?
"missing argument to $ac_option"
1578 if test -n "$ac_unrecognized_opts"; then
1579 case $enable_option_checking in
1581 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1582 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1586 # Check all directory arguments for consistency.
1587 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1588 datadir sysconfdir sharedstatedir localstatedir includedir \
1589 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1590 libdir localedir mandir
1592 eval ac_val
=\$
$ac_var
1593 # Remove trailing slashes.
1596 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1597 eval $ac_var=\
$ac_val;;
1599 # Be sure to have absolute directory names.
1601 [\\/$
]* | ?
:[\\/]* ) continue;;
1602 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1604 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1607 # There might be people who depend on the old broken behavior: `$host'
1608 # used to hold the argument of --host etc.
1609 # FIXME: To remove some day.
1612 target
=$target_alias
1614 # FIXME: To remove some day.
1615 if test "x$host_alias" != x
; then
1616 if test "x$build_alias" = x
; then
1617 cross_compiling
=maybe
1618 elif test "x$build_alias" != "x$host_alias"; then
1624 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1626 test "$silent" = yes && exec 6>/dev
/null
1629 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1630 ac_ls_di
=`ls -di .` &&
1631 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1632 as_fn_error $?
"working directory cannot be determined"
1633 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1634 as_fn_error $?
"pwd does not report name of working directory"
1637 # Find the source files, if location was not specified.
1638 if test -z "$srcdir"; then
1639 ac_srcdir_defaulted
=yes
1640 # Try the directory containing this script, then the parent directory.
1641 ac_confdir
=`$as_dirname -- "$as_myself" ||
1642 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1643 X"$as_myself" : 'X\(//\)[^/]' \| \
1644 X"$as_myself" : 'X\(//\)$' \| \
1645 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1646 $as_echo X"$as_myself" |
1647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1669 ac_srcdir_defaulted
=no
1671 if test ! -r "$srcdir/$ac_unique_file"; then
1672 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1673 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1675 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1677 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1679 # When building in place, set srcdir=.
1680 if test "$ac_abs_confdir" = "$ac_pwd"; then
1683 # Remove unnecessary trailing slashes from srcdir.
1684 # Double slashes in file names in object file debugging info
1685 # mess up M-x gdb in Emacs.
1687 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1689 for ac_var
in $ac_precious_vars; do
1690 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1691 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1692 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1693 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1697 # Report the --help message.
1699 if test "$ac_init_help" = "long"; then
1700 # Omit some internal or obsolete options to make the list less imposing.
1701 # This message is too long to be a string in the A/UX 3.1 sh.
1703 \`configure' configures sim 0 to adapt to many kinds of systems.
1705 Usage: $0 [OPTION]... [VAR=VALUE]...
1707 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1708 VAR=VALUE. See below for descriptions of some of the useful variables.
1710 Defaults for the options are specified in brackets.
1713 -h, --help display this help and exit
1714 --help=short display options specific to this package
1715 --help=recursive display the short help of all the included packages
1716 -V, --version display version information and exit
1717 -q, --quiet, --silent do not print \`checking ...' messages
1718 --cache-file=FILE cache test results in FILE [disabled]
1719 -C, --config-cache alias for \`--cache-file=config.cache'
1720 -n, --no-create do not create output files
1721 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1723 Installation directories:
1724 --prefix=PREFIX install architecture-independent files in PREFIX
1725 [$ac_default_prefix]
1726 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1729 By default, \`make install' will install all the files in
1730 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1731 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1732 for instance \`--prefix=\$HOME'.
1734 For better control, use the options below.
1736 Fine tuning of the installation directories:
1737 --bindir=DIR user executables [EPREFIX/bin]
1738 --sbindir=DIR system admin executables [EPREFIX/sbin]
1739 --libexecdir=DIR program executables [EPREFIX/libexec]
1740 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1741 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1742 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1743 --libdir=DIR object code libraries [EPREFIX/lib]
1744 --includedir=DIR C header files [PREFIX/include]
1745 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1746 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1747 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1748 --infodir=DIR info documentation [DATAROOTDIR/info]
1749 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1750 --mandir=DIR man documentation [DATAROOTDIR/man]
1751 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1752 --htmldir=DIR html documentation [DOCDIR]
1753 --dvidir=DIR dvi documentation [DOCDIR]
1754 --pdfdir=DIR pdf documentation [DOCDIR]
1755 --psdir=DIR ps documentation [DOCDIR]
1761 --program-prefix=PREFIX prepend PREFIX to installed program names
1762 --program-suffix=SUFFIX append SUFFIX to installed program names
1763 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1766 --build=BUILD configure
for building on BUILD
[guessed
]
1767 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1768 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1772 if test -n "$ac_init_help"; then
1773 case $ac_init_help in
1774 short | recursive
) echo "Configuration of sim 0:";;
1779 --disable-option-checking ignore unrecognized
--enable/--with options
1780 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1781 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1782 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1783 --enable-static[=PKGS
] build static libraries
[default
=yes]
1784 --enable-fast-install[=PKGS
]
1785 optimize
for fast installation
[default
=yes]
1786 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1787 --enable-maintainer-mode
1788 enable make rules and dependencies not useful
(and
1789 sometimes confusing
) to the casual installer
1790 --enable-dependency-tracking
1791 do not reject slow dependency extractors
1792 --disable-dependency-tracking
1793 speeds up one-time build
1794 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1795 --disable-silent-rules verbose build output
(undo
: "make V=0")
1796 --enable-sim Enable the GNU simulator
1797 --enable-example-sims enable example GNU simulators
1798 --enable-targets alternative target configurations
1799 --enable-sim-alignment=align
1800 Specify strict
, nonstrict or forced alignment of
1802 --enable-sim-assert Specify whether to perform random assertions
1803 --enable-cgen-maint=DIR build cgen generated files
1804 --enable-sim-debug=opts Enable debugging flags
(for developers of the sim
1806 --enable-sim-endian=endian
1807 Specify target byte endian orientation
1808 --enable-sim-environment=environment
1809 Specify mixed
, user
, virtual or operating
1811 --enable-sim-hardware Whether to
enable hardware
/device simulation
1812 --enable-sim-inline=inlines
1813 Specify
which functions should be inlined
1814 --enable-sim-profile=opts
1815 Enable profiling flags
1816 --enable-sim-reserved-bits
1817 Specify whether to check reserved bits
in
1819 --enable-sim-scache=size
1820 Specify simulator execution cache size
1821 --enable-sim-smp=n Specify number of processors to configure
for
1823 --enable-sim-stdio Specify whether to use stdio
for console
1825 --enable-sim-trace=opts Enable tracing of simulated programs
1826 --enable-werror treat compile warnings as errors
1827 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1828 --enable-sim-build-warnings
1829 enable SIM specific build-time compiler warnings
if
1831 --enable-sim-frv-trapdump
1832 Make unknown traps dump the registers
1833 --enable-sim-ppc-bitsize=n
1834 Specify target bitsize
(32 or
64).
1835 --enable-sim-ppc-decode-mechanism=which
1836 Specify the instruction decode mechanism.
1837 --enable-sim-ppc-default-model=which
1838 Specify default PowerPC to model.
1839 --enable-sim-ppc-duplicate
1840 Expand
(duplicate
) semantic functions.
1841 --enable-sim-ppc-filter=rule
1842 Specify filter rules.
1843 --enable-sim-ppc-float Specify whether the target has hard
, soft
, altivec
1844 or e500 floating point.
1845 --enable-sim-ppc-hardware=list
1846 Specify the hardware to be included
in the build.
1847 --enable-sim-ppc-icache=size
1848 Specify instruction-decode cache size and
type.
1849 --enable-sim-ppc-jump Jump between semantic code
(instead of
call
/return).
1850 --enable-sim-ppc-line-nr=opts
1851 Generate extra CPP code that references
source
1852 rather than generated code
1853 --enable-sim-ppc-model=which
1854 Specify PowerPC to model.
1855 --enable-sim-ppc-model-issue
1856 Specify whether to simulate model specific actions
1857 --enable-sim-ppc-monitor=mon
1858 Specify whether to
enable monitoring events.
1859 --enable-sim-ppc-opcode=which
1860 Override default opcode lookup.
1861 --enable-sim-ppc-smp=n Specify number of processors to configure
for.
1862 --enable-sim-ppc-switch Use a switch instead of a table
for instruction
1864 --enable-sim-ppc-timebase
1865 Specify whether the PPC timebase is supported.
1866 --enable-sim-ppc-xor-endian=n
1867 Specify number bytes involved
in PowerPC XOR
1868 bi-endian mode
(default
8).
1869 --disable-sim-rx-cycle-accurate
1870 Disable cycle accurate simulation
(faster runtime
)
1873 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1874 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1875 --with-pkgversion=PKG Use PKG
in the version string
in place of
"SIM"
1876 --with-bugurl=URL Direct users to URL to report a bug
1877 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1879 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1881 Some influential environment variables
:
1882 CC C compiler
command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1885 nonstandard directory
<lib dir
>
1886 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1887 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1888 you have headers
in a nonstandard directory
<include dir
>
1890 PKG_CONFIG path to pkg-config utility
1892 directories to add to pkg-config
's search path
1894 path overriding pkg-config's built-in search path
1895 SDL_CFLAGS C compiler flags
for SDL
, overriding pkg-config
1896 SDL_LIBS linker flags
for SDL
, overriding pkg-config
1897 AS_FOR_TARGET_AARCH64
1898 Assembler
for aarch64 tests
1899 LD_FOR_TARGET_AARCH64
1900 Linker
for aarch64 tests
1901 CC_FOR_TARGET_AARCH64
1902 C compiler
for aarch64 tests
1904 Assembler
for arm tests
1906 Linker
for arm tests
1908 C compiler
for arm tests
1910 Assembler
for avr tests
1912 Linker
for avr tests
1914 C compiler
for avr tests
1916 Assembler
for bfin tests
1918 Linker
for bfin tests
1920 C compiler
for bfin tests
1922 Assembler
for bpf tests
1924 Linker
for bpf tests
1926 C compiler
for bpf tests
1928 Assembler
for cr16 tests
1930 Linker
for cr16 tests
1932 C compiler
for cr16 tests
1934 Assembler
for cris tests
1936 Linker
for cris tests
1938 C compiler
for cris tests
1940 Assembler
for d10v tests
1942 Linker
for d10v tests
1944 C compiler
for d10v tests
1946 Assembler
for frv tests
1948 Linker
for frv tests
1950 C compiler
for frv tests
1952 Assembler
for ft32 tests
1954 Linker
for ft32 tests
1956 C compiler
for ft32 tests
1958 Assembler
for h8300 tests
1960 Linker
for h8300 tests
1962 C compiler
for h8300 tests
1963 AS_FOR_TARGET_IQ2000
1964 Assembler
for iq2000 tests
1965 LD_FOR_TARGET_IQ2000
1966 Linker
for iq2000 tests
1967 CC_FOR_TARGET_IQ2000
1968 C compiler
for iq2000 tests
1970 Assembler
for lm32 tests
1972 Linker
for lm32 tests
1974 C compiler
for lm32 tests
1976 Assembler
for m32c tests
1978 Linker
for m32c tests
1980 C compiler
for m32c tests
1982 Assembler
for m32r tests
1984 Linker
for m32r tests
1986 C compiler
for m32r tests
1987 AS_FOR_TARGET_M68HC11
1988 Assembler
for m68hc11 tests
1989 LD_FOR_TARGET_M68HC11
1990 Linker
for m68hc11 tests
1991 CC_FOR_TARGET_M68HC11
1992 C compiler
for m68hc11 tests
1994 Assembler
for mcore tests
1996 Linker
for mcore tests
1998 C compiler
for mcore tests
1999 AS_FOR_TARGET_MICROBLAZE
2000 Assembler
for microblaze tests
2001 LD_FOR_TARGET_MICROBLAZE
2002 Linker
for microblaze tests
2003 CC_FOR_TARGET_MICROBLAZE
2004 C compiler
for microblaze tests
2006 Assembler
for mips tests
2008 Linker
for mips tests
2010 C compiler
for mips tests
2011 AS_FOR_TARGET_MN10300
2012 Assembler
for mn10300 tests
2013 LD_FOR_TARGET_MN10300
2014 Linker
for mn10300 tests
2015 CC_FOR_TARGET_MN10300
2016 C compiler
for mn10300 tests
2018 Assembler
for moxie tests
2020 Linker
for moxie tests
2022 C compiler
for moxie tests
2023 AS_FOR_TARGET_MSP430
2024 Assembler
for msp430 tests
2025 LD_FOR_TARGET_MSP430
2026 Linker
for msp430 tests
2027 CC_FOR_TARGET_MSP430
2028 C compiler
for msp430 tests
2030 Assembler
for or1k tests
2032 Linker
for or1k tests
2034 C compiler
for or1k tests
2036 Assembler
for ppc tests
2038 Linker
for ppc tests
2040 C compiler
for ppc tests
2042 Assembler
for pru tests
2044 Linker
for pru tests
2046 C compiler
for pru tests
2048 Assembler
for riscv tests
2050 Linker
for riscv tests
2052 C compiler
for riscv tests
2054 Assembler
for rl78 tests
2056 Linker
for rl78 tests
2058 C compiler
for rl78 tests
2060 Assembler
for rx tests
2064 C compiler
for rx tests
2066 Assembler
for sh tests
2070 C compiler
for sh tests
2072 Assembler
for erc32 tests
2074 Linker
for erc32 tests
2076 C compiler
for erc32 tests
2078 Assembler
for v850 tests
2080 Linker
for v850 tests
2082 C compiler
for v850 tests
2083 AS_FOR_TARGET_EXAMPLE_SYNACOR
2084 Assembler
for example-synacor tests
2085 LD_FOR_TARGET_EXAMPLE_SYNACOR
2086 Linker
for example-synacor tests
2087 CC_FOR_TARGET_EXAMPLE_SYNACOR
2088 C compiler
for example-synacor tests
2090 Use these variables to override the choices made by
`configure' or to help
2091 it to find libraries and programs with nonstandard names/locations.
2093 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2094 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2099 if test "$ac_init_help" = "recursive"; then
2100 # If there are subdirs, report their specific --help.
2101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2102 test -d "$ac_dir" ||
2103 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2111 # A ".." for each directory in $ac_dir_suffix.
2112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2113 case $ac_top_builddir_sub in
2114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2118 ac_abs_top_builddir=$ac_pwd
2119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2120 # for backward compatibility:
2121 ac_top_builddir=$ac_top_build_prefix
2124 .) # We are building in place.
2126 ac_top_srcdir=$ac_top_builddir_sub
2127 ac_abs_top_srcdir=$ac_pwd ;;
2128 [\\/]* | ?:[\\/]* ) # Absolute name.
2129 ac_srcdir=$srcdir$ac_dir_suffix;
2130 ac_top_srcdir=$srcdir
2131 ac_abs_top_srcdir=$srcdir ;;
2133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2134 ac_top_srcdir=$ac_top_build_prefix$srcdir
2135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2139 cd "$ac_dir" || { ac_status=$?; continue; }
2140 # Check for guested configure.
2141 if test -f "$ac_srcdir/configure.gnu"; then
2143 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2144 elif test -f "$ac_srcdir/configure"; then
2146 $SHELL "$ac_srcdir/configure" --help=recursive
2148 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2150 cd "$ac_pwd" || { ac_status=$?; break; }
2154 test -n "$ac_init_help" && exit $ac_status
2155 if $ac_init_version; then
2158 generated by GNU Autoconf 2.69
2160 Copyright (C) 2012 Free Software Foundation, Inc.
2161 This configure script is free software; the Free Software Foundation
2162 gives unlimited permission to copy, distribute and modify it.
2167 ## ------------------------ ##
2168 ## Autoconf initialization. ##
2169 ## ------------------------ ##
2171 # ac_fn_c_try_compile LINENO
2172 # --------------------------
2173 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_compile ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext
2178 if { { ac_try="$ac_compile"
2180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2181 *) ac_try_echo
=$ac_try;;
2183 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_compile") 2>conftest.err
2187 if test -s conftest.err
; then
2188 grep -v '^ *+' conftest.err
>conftest.er1
2189 cat conftest.er1
>&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest.
$ac_objext; then :
2199 $as_echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.
$ac_ext >&5
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status
$ac_retval
2207 } # ac_fn_c_try_compile
2209 # ac_fn_c_try_cpp LINENO
2210 # ----------------------
2211 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2214 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2215 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } > conftest.i && {
2231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2246 # ac_fn_c_try_run LINENO
2247 # ----------------------
2248 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249 # that executables *can* be run.
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2256 *) ac_try_echo
=$ac_try;;
2258 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2280 ac_retval=$ac_status
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284 as_fn_set_status $ac_retval
2288 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289 # -------------------------------------------------------
2290 # Tests whether HEADER exists and can be compiled using the include files in
2291 # INCLUDES, setting the cache variable VAR accordingly.
2292 ac_fn_c_check_header_compile ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2305 if ac_fn_c_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_header_compile
2319 # ac_fn_c_try_link LINENO
2320 # -----------------------
2321 # Try to link conftest.$ac_ext, and return whether this succeeded.
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2329 *) ac_try_echo
=$ac_try;;
2331 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332 $as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2335 if test -s conftest.err
; then
2336 grep -v '^ *+' conftest.err
>conftest.er1
2337 cat conftest.er1
>&5
2338 mv -f conftest.er1 conftest.err
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest
$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 test -x conftest
$ac_exeext
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.
$ac_ext >&5
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status
$ac_retval
2363 } # ac_fn_c_try_link
2365 # ac_fn_c_check_func LINENO FUNC VAR
2366 # ----------------------------------
2367 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2368 ac_fn_c_check_func
()
2370 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372 $as_echo_n "checking for $2... " >&6; }
2373 if eval \
${$3+:} false
; then :
2374 $as_echo_n "(cached) " >&6
2376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2378 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380 #define $2 innocuous_$2
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2388 # include <limits.h>
2390 # include <assert.h>
2395 /* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2402 /* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405 #if defined __stub_$2 || defined __stub___$2
2417 if ac_fn_c_try_link
"$LINENO"; then :
2422 rm -f core conftest.err conftest.
$ac_objext \
2423 conftest
$ac_exeext conftest.
$ac_ext
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_func
2432 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2433 # ----------------------------------------------------
2434 # Tries to find if the field MEMBER exists in type AGGR, after including
2435 # INCLUDES, setting cache variable VAR accordingly.
2436 ac_fn_c_check_member
()
2438 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2440 $as_echo_n "checking for $2.$3... " >&6; }
2441 if eval \
${$4+:} false
; then :
2442 $as_echo_n "(cached) " >&6
2444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2457 if ac_fn_c_try_compile
"$LINENO"; then :
2460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2467 if (sizeof ac_aggr.$3)
2473 if ac_fn_c_try_compile
"$LINENO"; then :
2478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 } # ac_fn_c_check_member
2489 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2490 # ---------------------------------------------
2491 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2493 ac_fn_c_check_decl
()
2495 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2496 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2497 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2499 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2500 if eval \
${$3+:} false
; then :
2501 $as_echo_n "(cached) " >&6
2503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2509 #ifndef $as_decl_name
2511 (void) $as_decl_use;
2513 (void) $as_decl_name;
2521 if ac_fn_c_try_compile
"$LINENO"; then :
2526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 } # ac_fn_c_check_decl
2535 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2536 # -------------------------------------------
2537 # Tests whether TYPE exists after having included INCLUDES, setting cache
2538 # variable VAR accordingly.
2539 ac_fn_c_check_type
()
2541 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if eval \
${$3+:} false
; then :
2545 $as_echo_n "(cached) " >&6
2548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2560 if ac_fn_c_try_compile
"$LINENO"; then :
2561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2573 if ac_fn_c_try_compile
"$LINENO"; then :
2578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587 } # ac_fn_c_check_type
2589 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2590 # --------------------------------------------
2591 # Tries to find the compile-time value of EXPR in a program that includes
2592 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2594 ac_fn_c_compute_int
()
2596 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2597 if test "$cross_compiling" = yes; then
2598 # Depending upon the size, compute the lo and hi bounds.
2599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2605 static int test_array [1 - 2 * !(($2) >= 0)];
2607 return test_array [0];
2613 if ac_fn_c_try_compile
"$LINENO"; then :
2616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2624 return test_array [0];
2630 if ac_fn_c_try_compile
"$LINENO"; then :
2631 ac_hi
=$ac_mid; break
2633 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2634 if test $ac_lo -le $ac_mid; then
2638 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2649 static int test_array [1 - 2 * !(($2) < 0)];
2651 return test_array [0];
2657 if ac_fn_c_try_compile
"$LINENO"; then :
2660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2668 return test_array [0];
2674 if ac_fn_c_try_compile
"$LINENO"; then :
2675 ac_lo
=$ac_mid; break
2677 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2678 if test $ac_mid -le $ac_hi; then
2682 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2692 # Binary search between lo and hi bounds.
2693 while test "x$ac_lo" != "x$ac_hi"; do
2694 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2701 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2703 return test_array [0];
2709 if ac_fn_c_try_compile
"$LINENO"; then :
2712 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2717 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2724 static long int longval () { return $2; }
2725 static unsigned long int ulongval () { return $2; }
2732 FILE *f = fopen ("conftest.val", "w");
2737 long int i = longval ();
2740 fprintf (f, "%ld", i);
2744 unsigned long int i = ulongval ();
2747 fprintf (f, "%lu", i);
2749 /* Do not output a trailing newline, as this causes \r\n confusion
2750 on some platforms. */
2751 return ferror (f) || fclose (f) != 0;
2757 if ac_fn_c_try_run
"$LINENO"; then :
2758 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 as_fn_set_status
$ac_retval
2770 } # ac_fn_c_compute_int
2771 cat >config.log
<<_ACEOF
2772 This file contains any messages produced by compilers while
2773 running configure, to aid debugging if configure makes a mistake.
2775 It was created by sim $as_me 0, which was
2776 generated by GNU Autoconf 2.69. Invocation command line was
2788 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2789 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2790 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2791 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2792 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2794 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2795 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2797 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2798 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2799 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2800 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2801 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2802 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2803 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir
=.
2812 $as_echo "PATH: $as_dir"
2828 # Keep a trace of the command line.
2829 # Strip out --no-create and --no-recursion so they do not pile up.
2830 # Strip out --silent because we don't want to record it for future runs.
2831 # Also quote any args containing shell meta-characters.
2832 # Make two passes to allow for proper duplicate-argument suppression.
2836 ac_must_keep_next
=false
2842 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2843 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2844 |
-silent |
--silent |
--silen |
--sile |
--sil)
2847 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2850 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2852 as_fn_append ac_configure_args1
" '$ac_arg'"
2853 if test $ac_must_keep_next = true
; then
2854 ac_must_keep_next
=false
# Got value, back to normal.
2857 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2858 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2859 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2860 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2861 case "$ac_configure_args0 " in
2862 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2865 -* ) ac_must_keep_next
=true
;;
2868 as_fn_append ac_configure_args
" '$ac_arg'"
2873 { ac_configure_args0
=; unset ac_configure_args0
;}
2874 { ac_configure_args1
=; unset ac_configure_args1
;}
2876 # When interrupted or exit'd, cleanup temporary files, and complete
2877 # config.log. We remove comments because anyway the quotes in there
2878 # would cause problems or look ugly.
2879 # WARNING: Use '\'' to represent an apostrophe within the trap.
2880 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2881 trap 'exit_status=$?
2882 # Save into config.log some information that might help in debugging.
2886 $as_echo "## ---------------- ##
2887 ## Cache variables. ##
2888 ## ---------------- ##"
2890 # The following way of writing the cache mishandles newlines in values,
2892 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2893 eval ac_val=\$$ac_var
2897 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2898 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2901 _ | IFS | as_nl) ;; #(
2902 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2903 *) { eval $ac_var=; unset $ac_var;} ;;
2908 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2909 *${as_nl}ac_space=\ *)
2911 "s/'\''/'\''\\\\'\'''\''/g;
2912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2922 $as_echo "## ----------------- ##
2923 ## Output variables. ##
2924 ## ----------------- ##"
2926 for ac_var in $ac_subst_vars
2928 eval ac_val=\$$ac_var
2930 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2932 $as_echo "$ac_var='\''$ac_val'\''"
2936 if test -n "$ac_subst_files"; then
2937 $as_echo "## ------------------- ##
2938 ## File substitutions. ##
2939 ## ------------------- ##"
2941 for ac_var
in $ac_subst_files
2943 eval ac_val
=\$
$ac_var
2945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2947 $as_echo "$ac_var='\''$ac_val'\''"
2952 if test -s confdefs.h; then
2953 $as_echo "## ----------- ##
2960 test "$ac_signal" != 0 &&
2961 $as_echo "$as_me: caught signal $ac_signal"
2962 $as_echo "$as_me: exit $exit_status"
2964 rm -f core *.core core.conftest.* &&
2965 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2968 for ac_signal
in 1 2 13 15; do
2969 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2973 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2974 rm -f -r conftest
* confdefs.h
2976 $as_echo "/* confdefs.h */" > confdefs.h
2978 # Predefined preprocessor variables.
2980 cat >>confdefs.h
<<_ACEOF
2981 #define PACKAGE_NAME "$PACKAGE_NAME"
2984 cat >>confdefs.h
<<_ACEOF
2985 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2988 cat >>confdefs.h
<<_ACEOF
2989 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2992 cat >>confdefs.h
<<_ACEOF
2993 #define PACKAGE_STRING "$PACKAGE_STRING"
2996 cat >>confdefs.h
<<_ACEOF
2997 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3000 cat >>confdefs.h
<<_ACEOF
3001 #define PACKAGE_URL "$PACKAGE_URL"
3005 # Let the site file select an alternate cache file if it wants to.
3006 # Prefer an explicitly selected file to automatically selected ones.
3009 if test -n "$CONFIG_SITE"; then
3010 # We do not want a PATH search for config.site.
3011 case $CONFIG_SITE in #((
3012 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3013 */*) ac_site_file1
=$CONFIG_SITE;;
3014 *) ac_site_file1
=.
/$CONFIG_SITE;;
3016 elif test "x$prefix" != xNONE
; then
3017 ac_site_file1
=$prefix/share
/config.site
3018 ac_site_file2
=$prefix/etc
/config.site
3020 ac_site_file1
=$ac_default_prefix/share
/config.site
3021 ac_site_file2
=$ac_default_prefix/etc
/config.site
3023 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3025 test "x$ac_site_file" = xNONE
&& continue
3026 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3028 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3029 sed 's/^/| /' "$ac_site_file" >&5
3031 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $?
"failed to load site script $ac_site_file
3034 See \`config.log' for more details" "$LINENO" 5; }
3038 if test -r "$cache_file"; then
3039 # Some versions of bash will fail to source /dev/null (special files
3040 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3041 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3043 $as_echo "$as_me: loading cache $cache_file" >&6;}
3045 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3046 *) .
"./$cache_file";;
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3051 $as_echo "$as_me: creating cache $cache_file" >&6;}
3055 as_fn_append ac_header_list
" dlfcn.h"
3056 as_fn_append ac_header_list
" fcntl.h"
3057 as_fn_append ac_header_list
" fpu_control.h"
3058 as_fn_append ac_header_list
" termios.h"
3059 as_fn_append ac_header_list
" utime.h"
3060 as_fn_append ac_header_list
" linux/if_tun.h"
3061 as_fn_append ac_header_list
" linux/mii.h"
3062 as_fn_append ac_header_list
" linux/types.h"
3063 as_fn_append ac_header_list
" net/if.h"
3064 as_fn_append ac_header_list
" netinet/in.h"
3065 as_fn_append ac_header_list
" netinet/tcp.h"
3066 as_fn_append ac_header_list
" sys/ioctl.h"
3067 as_fn_append ac_header_list
" sys/mman.h"
3068 as_fn_append ac_header_list
" sys/mount.h"
3069 as_fn_append ac_header_list
" sys/param.h"
3070 as_fn_append ac_header_list
" sys/resource.h"
3071 as_fn_append ac_header_list
" sys/socket.h"
3072 as_fn_append ac_header_list
" sys/statfs.h"
3073 as_fn_append ac_header_list
" sys/termio.h"
3074 as_fn_append ac_header_list
" sys/termios.h"
3075 as_fn_append ac_header_list
" sys/types.h"
3076 as_fn_append ac_header_list
" sys/vfs.h"
3077 as_fn_append ac_func_list
" __setfpucw"
3078 as_fn_append ac_func_list
" access"
3079 as_fn_append ac_func_list
" aint"
3080 as_fn_append ac_func_list
" anint"
3081 as_fn_append ac_func_list
" cfgetispeed"
3082 as_fn_append ac_func_list
" cfgetospeed"
3083 as_fn_append ac_func_list
" cfsetispeed"
3084 as_fn_append ac_func_list
" cfsetospeed"
3085 as_fn_append ac_func_list
" chdir"
3086 as_fn_append ac_func_list
" chmod"
3087 as_fn_append ac_func_list
" dup"
3088 as_fn_append ac_func_list
" dup2"
3089 as_fn_append ac_func_list
" execv"
3090 as_fn_append ac_func_list
" execve"
3091 as_fn_append ac_func_list
" fcntl"
3092 as_fn_append ac_func_list
" fork"
3093 as_fn_append ac_func_list
" fstat"
3094 as_fn_append ac_func_list
" fstatfs"
3095 as_fn_append ac_func_list
" ftruncate"
3096 as_fn_append ac_func_list
" getdirentries"
3097 as_fn_append ac_func_list
" getegid"
3098 as_fn_append ac_func_list
" geteuid"
3099 as_fn_append ac_func_list
" getgid"
3100 as_fn_append ac_func_list
" getpid"
3101 as_fn_append ac_func_list
" getppid"
3102 as_fn_append ac_func_list
" getrusage"
3103 as_fn_append ac_func_list
" gettimeofday"
3104 as_fn_append ac_func_list
" getuid"
3105 as_fn_append ac_func_list
" ioctl"
3106 as_fn_append ac_func_list
" kill"
3107 as_fn_append ac_func_list
" link"
3108 as_fn_append ac_func_list
" lseek"
3109 as_fn_append ac_func_list
" lstat"
3110 as_fn_append ac_func_list
" mkdir"
3111 as_fn_append ac_func_list
" mmap"
3112 as_fn_append ac_func_list
" munmap"
3113 as_fn_append ac_func_list
" pipe"
3114 as_fn_append ac_func_list
" posix_fallocate"
3115 as_fn_append ac_func_list
" pread"
3116 as_fn_append ac_func_list
" rmdir"
3117 as_fn_append ac_func_list
" setregid"
3118 as_fn_append ac_func_list
" setreuid"
3119 as_fn_append ac_func_list
" setgid"
3120 as_fn_append ac_func_list
" setuid"
3121 as_fn_append ac_func_list
" sigaction"
3122 as_fn_append ac_func_list
" sigprocmask"
3123 as_fn_append ac_func_list
" sqrt"
3124 as_fn_append ac_func_list
" stat"
3125 as_fn_append ac_func_list
" strsignal"
3126 as_fn_append ac_func_list
" symlink"
3127 as_fn_append ac_func_list
" tcdrain"
3128 as_fn_append ac_func_list
" tcflow"
3129 as_fn_append ac_func_list
" tcflush"
3130 as_fn_append ac_func_list
" tcgetattr"
3131 as_fn_append ac_func_list
" tcgetpgrp"
3132 as_fn_append ac_func_list
" tcsendbreak"
3133 as_fn_append ac_func_list
" tcsetattr"
3134 as_fn_append ac_func_list
" tcsetpgrp"
3135 as_fn_append ac_func_list
" time"
3136 as_fn_append ac_func_list
" truncate"
3137 as_fn_append ac_func_list
" umask"
3138 as_fn_append ac_func_list
" unlink"
3139 as_fn_append ac_func_list
" utime"
3140 # Check that the precious variables saved in the cache have kept the same
3142 ac_cache_corrupted
=false
3143 for ac_var
in $ac_precious_vars; do
3144 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3145 eval ac_new_set
=\
$ac_env_${ac_var}_set
3146 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3147 eval ac_new_val
=\
$ac_env_${ac_var}_value
3148 case $ac_old_set,$ac_new_set in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3151 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3152 ac_cache_corrupted
=: ;;
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3155 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3156 ac_cache_corrupted
=: ;;
3159 if test "x$ac_old_val" != "x$ac_new_val"; then
3160 # differences in whitespace do not lead to failure.
3161 ac_old_val_w
=`echo x $ac_old_val`
3162 ac_new_val_w
=`echo x $ac_new_val`
3163 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3165 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3166 ac_cache_corrupted
=:
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3169 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3170 eval $ac_var=\
$ac_old_val
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3173 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3175 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3178 # Pass precious variables to config.status.
3179 if test "$ac_new_set" = set; then
3181 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3182 *) ac_arg
=$ac_var=$ac_new_val ;;
3184 case " $ac_configure_args " in
3185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3186 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3190 if $ac_cache_corrupted; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3194 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3195 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3197 ## -------------------- ##
3198 ## Main body of script. ##
3199 ## -------------------- ##
3202 ac_cpp
='$CPP $CPPFLAGS'
3203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3214 # Check whether --with-pkgversion was given.
3215 if test "${with_pkgversion+set}" = set; then :
3216 withval
=$with_pkgversion; case "$withval" in
3217 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
3219 *) PKGVERSION
="($withval) " ;;
3229 cat >>confdefs.h
<<_ACEOF
3230 #define PKGVERSION "$PKGVERSION"
3235 # Check whether --with-bugurl was given.
3236 if test "${with_bugurl+set}" = set; then :
3237 withval
=$with_bugurl; case "$withval" in
3238 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
3241 *) BUGURL
="$withval"
3245 BUGURL
="$PACKAGE_BUGREPORT"
3255 REPORT_BUGS_TO
="<$BUGURL>"
3256 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3263 cat >>confdefs.h
<<_ACEOF
3264 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3268 ac_config_headers
="$ac_config_headers config.h"
3271 .
$srcdir/..
/bfd
/development.sh
3274 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3275 if test -f "$ac_dir/install-sh"; then
3277 ac_install_sh
="$ac_aux_dir/install-sh -c"
3279 elif test -f "$ac_dir/install.sh"; then
3281 ac_install_sh
="$ac_aux_dir/install.sh -c"
3283 elif test -f "$ac_dir/shtool"; then
3285 ac_install_sh
="$ac_aux_dir/shtool install -c"
3289 if test -z "$ac_aux_dir"; then
3290 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3293 # These three variables are undocumented and unsupported,
3294 # and are intended to be withdrawn in a future Autoconf release.
3295 # They can cause serious problems if a builder's source tree is in a directory
3296 # whose full name contains unusual characters.
3297 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3298 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3299 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3302 # Make sure we can run config.sub.
3303 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3304 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3307 $as_echo_n "checking build system type... " >&6; }
3308 if ${ac_cv_build+:} false
; then :
3309 $as_echo_n "(cached) " >&6
3311 ac_build_alias
=$build_alias
3312 test "x$ac_build_alias" = x
&&
3313 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3314 test "x$ac_build_alias" = x
&&
3315 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3316 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3317 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3321 $as_echo "$ac_cv_build" >&6; }
3322 case $ac_cv_build in
3324 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3327 ac_save_IFS
=$IFS; IFS
='-'
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3337 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3341 $as_echo_n "checking host system type... " >&6; }
3342 if ${ac_cv_host+:} false
; then :
3343 $as_echo_n "(cached) " >&6
3345 if test "x$host_alias" = x
; then
3346 ac_cv_host
=$ac_cv_build
3348 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3349 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3354 $as_echo "$ac_cv_host" >&6; }
3357 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3360 ac_save_IFS
=$IFS; IFS
='-'
3366 # Remember, the first character of IFS is used to create $*,
3367 # except with old shells:
3370 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3374 $as_echo_n "checking target system type... " >&6; }
3375 if ${ac_cv_target+:} false
; then :
3376 $as_echo_n "(cached) " >&6
3378 if test "x$target_alias" = x
; then
3379 ac_cv_target
=$ac_cv_host
3381 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3382 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3387 $as_echo "$ac_cv_target" >&6; }
3388 case $ac_cv_target in
3390 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
3392 target
=$ac_cv_target
3393 ac_save_IFS
=$IFS; IFS
='-'
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3403 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3406 # The aliases save the names the user supplied, while $host etc.
3407 # will get canonicalized.
3408 test -n "$target_alias" &&
3409 test "$program_prefix$program_suffix$program_transform_name" = \
3411 program_prefix
=${target_alias}-
3412 # Expand $ac_aux_dir to an absolute path.
3413 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3416 ac_cpp
='$CPP $CPPFLAGS'
3417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3422 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CC+:} false
; then :
3426 $as_echo_n "(cached) " >&6
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC
="$CC" # Let the user override the test.
3431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir
=.
3436 for ac_exec_ext
in '' $ac_executable_extensions; do
3437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$ac_cv_prog_CC"; then
3461 # Extract the first word of "gcc", so it can be a program name with args.
3462 set dummy gcc
; ac_word
=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3466 $as_echo_n "(cached) " >&6
3468 if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir
=.
3476 for ac_exec_ext
in '' $ac_executable_extensions; do
3477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_ac_ct_CC
="gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3489 if test -n "$ac_ct_CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491 $as_echo "$ac_ct_CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3497 if test "x$ac_ct_CC" = x
; then
3500 case $cross_compiling:$ac_tool_warned in
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 ac_tool_warned
=yes ;;
3512 if test -z "$CC"; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3515 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_CC+:} false
; then :
3519 $as_echo_n "(cached) " >&6
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC
="$CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3553 if test -z "$CC"; then
3554 # Extract the first word of "cc", so it can be a program name with args.
3555 set dummy cc
; ac_word
=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_CC+:} false
; then :
3559 $as_echo_n "(cached) " >&6
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC
="$CC" # Let the user override the test.
3565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir
=.
3570 for ac_exec_ext
in '' $ac_executable_extensions; do
3571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573 ac_prog_rejected
=yes
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 if test $ac_prog_rejected = yes; then
3585 # We found a bogon in the path, so make sure we never use it.
3586 set dummy
$ac_cv_prog_CC
3588 if test $# != 0; then
3589 # We chose a different compiler from the bogus one.
3590 # However, it has the same basename, so the bogon will be chosen
3591 # first if we set CC to just the basename; use the full file name.
3593 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 for ac_prog
in cl.exe
3613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if ${ac_cv_prog_CC+:} false
; then :
3618 $as_echo_n "(cached) " >&6
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC
="$CC" # Let the user override the test.
3623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3627 test -z "$as_dir" && as_dir
=.
3628 for ac_exec_ext
in '' $ac_executable_extensions; do
3629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3650 test -n "$CC" && break
3653 if test -z "$CC"; then
3655 for ac_prog
in cl.exe
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy
$ac_prog; ac_word
=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3662 $as_echo_n "(cached) " >&6
3664 if test -n "$ac_ct_CC"; then
3665 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir
=.
3672 for ac_exec_ext
in '' $ac_executable_extensions; do
3673 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC
="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 $as_echo "$ac_ct_CC" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3694 test -n "$ac_ct_CC" && break
3697 if test "x$ac_ct_CC" = x
; then
3700 case $cross_compiling:$ac_tool_warned in
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned
=yes ;;
3713 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $?
"no acceptable C compiler found in \$PATH
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 # Provide some information about the compiler.
3719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3722 for ac_option
in --version -v -V -qversion; do
3723 { { ac_try
="$ac_compiler $ac_option >&5"
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3732 if test -s conftest.err; then
3734 ... rest of stderr output deleted ...
3735 10q' conftest.err >conftest.er1
3736 cat conftest.er1 >&5
3738 rm -f conftest.er1 conftest.err
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3754 ac_clean_files_save=$ac_clean_files
3755 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3756 # Try to create an executable without -o first, disregard a.out.
3757 # It will help us diagnose broken compilers, and finding out an intuition
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3760 $as_echo_n "checking whether the C compiler works... " >&6; }
3761 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3763 # The possible output files:
3764 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3767 for ac_file in $ac_files
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3776 if { { ac_try="$ac_link_default"
3778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3779 *) ac_try_echo
=$ac_try;;
3781 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_link_default") 2>&5
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3790 # so that the user can short-circuit this test for compilers unknown to
3792 for ac_file
in $ac_files ''
3794 test -f "$ac_file" ||
continue
3796 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3799 # We found the default executable, but exeext='' is most
3803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3805 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 # We set ac_cv_exeext here because the later test for it is not
3808 # safe: cross compilers may not add the suffix if given an `-o'
3809 # argument, so we may need to know it at that point already.
3810 # Even if this section looks crufty: it has the advantage of
3817 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3822 if test -z "$ac_file"; then :
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.
$ac_ext >&5
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error
77 "C compiler cannot create executables
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834 $as_echo "yes" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3839 $as_echo "$ac_file" >&6; }
3840 ac_exeext
=$ac_cv_exeext
3842 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3843 ac_clean_files
=$ac_clean_files_save
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845 $as_echo_n "checking for suffix of executables... " >&6; }
3846 if { { ac_try
="$ac_link"
3848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3858 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3859 # work properly (i.e., refer to `conftest.exe'), while it won't with
3861 for ac_file
in conftest.exe conftest conftest.
*; do
3862 test -f "$ac_file" ||
continue
3864 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3865 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3874 See \`config.log' for more details" "$LINENO" 5; }
3876 rm -f conftest conftest
$ac_cv_exeext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878 $as_echo "$ac_cv_exeext" >&6; }
3880 rm -f conftest.
$ac_ext
3881 EXEEXT
=$ac_cv_exeext
3883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3889 FILE *f = fopen ("conftest.out", "w");
3890 return ferror (f) || fclose (f) != 0;
3896 ac_clean_files
="$ac_clean_files conftest.out"
3897 # Check that the compiler produces executables we can run. If not, either
3898 # the compiler is broken, or we cross compile.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3900 $as_echo_n "checking whether we are cross compiling... " >&6; }
3901 if test "$cross_compiling" != yes; then
3902 { { ac_try
="$ac_link"
3904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_link") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }
3913 if { ac_try='./conftest$ac_cv_exeext'
3914 { { case "(($ac_try" in
3915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3916 *) ac_try_echo
=$ac_try;;
3918 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
3926 if test "$cross_compiling" = maybe
; then
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $?
"cannot run C compiled programs.
3932 If you meant to cross compile, use \`--host'.
3933 See \`config.log' for more details" "$LINENO" 5; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3938 $as_echo "$cross_compiling" >&6; }
3940 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3941 ac_clean_files
=$ac_clean_files_save
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3943 $as_echo_n "checking for suffix of object files... " >&6; }
3944 if ${ac_cv_objext+:} false
; then :
3945 $as_echo_n "(cached) " >&6
3947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3958 rm -f conftest.o conftest.obj
3959 if { { ac_try
="$ac_compile"
3961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_compile") 2>&5
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }; then :
3970 for ac_file in conftest.o conftest.obj conftest.*; do
3971 test -f "$ac_file" || continue;
3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3985 See \
`config.log' for more details" "$LINENO" 5; }
3987 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3990 $as_echo "$ac_cv_objext" >&6; }
3991 OBJEXT=$ac_cv_objext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3995 if ${ac_cv_c_compiler_gnu+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4012 if ac_fn_c_try_compile "$LINENO"; then :
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if ${ac_cv_prog_cc_g+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 if ac_fn_c_try_compile "$LINENO"; then :
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4081 if ac_fn_c_try_compile "$LINENO"; then :
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4092 $as_echo "$ac_cv_prog_cc_g" >&6; }
4093 if test "$ac_test_CFLAGS" = set; then
4094 CFLAGS=$ac_save_CFLAGS
4095 elif test $ac_cv_prog_cc_g = yes; then
4096 if test "$GCC" = yes; then
4102 if test "$GCC" = yes; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4110 if ${ac_cv_prog_cc_c89+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_cv_prog_cc_c89=no
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4134 s = g (p, va_arg (v,int));
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4140 function prototypes and stuff, but not '\xHH' hex character constants.
4141 These don't provoke an error unfortunately, instead are silently treated
4142 as 'x'. The following induces an error, until -std is added to get
4143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4144 array size at least. It's necessary to write '\x00'==0 to get something
4145 that's true only with -std. */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149 inside strings and character constants. */
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_c89=$ac_arg
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c89" != "xno" && break
4177 rm -f conftest.$ac_ext
4182 case "x$ac_cv_prog_cc_c89" in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4211 if ${am_cv_prog_cc_c_o+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4225 # Make sure it works both with $CC and with simple cc.
4226 # Following AC_PROG_CC_C_O, we do the test twice because some
4227 # compilers refuse to overwrite an existing .o file with -o,
4228 # though they will create one.
4229 am_cv_prog_cc_c_o=yes
4231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } \
4236 && test -f conftest2.$ac_objext; then
4239 am_cv_prog_cc_c_o=no
4243 rm -f core conftest*
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4248 if test "$am_cv_prog_cc_c_o" != yes; then
4249 # Losing compiler, so override with the script.
4250 # FIXME: It is wrong to rewrite CC.
4251 # But if we don't then we get into trouble of one sort or another.
4252 # A longer-term fix would be to have automake use am__CC in this case,
4253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4254 CC="$am_aux_dir/compile $CC"
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4269 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4270 # On Suns, sometimes $CPP names a directory.
4271 if test -n "$CPP" && test -d "$CPP"; then
4274 if test -z "$CPP"; then
4275 if ${ac_cv_prog_CPP+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 # Double quotes because CPP needs to be expanded
4279 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4282 for ac_c_preproc_warn_flag in '' yes
4284 # Use a header file that comes with gcc, so configuring glibc
4285 # with a fresh cross-compiler works.
4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 # <limits.h> exists even on freestanding compilers.
4288 # On the NeXT, cc -E runs the code through the compiler's parser,
4289 # not just through cpp. "Syntax error" is here to catch this case.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4293 # include <limits.h>
4295 # include <assert.h>
4299 if ac_fn_c_try_cpp "$LINENO"; then :
4302 # Broken: fails on valid input.
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4307 # OK, works on sane cases. Now check whether nonexistent headers
4308 # can be detected and how.
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <ac_nonexistent.h>
4313 if ac_fn_c_try_cpp "$LINENO"; then :
4314 # Broken: success on invalid input.
4317 # Passes both tests.
4321 rm -f conftest.err conftest.i conftest.$ac_ext
4324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4325 rm -f conftest.i conftest.err conftest.
$ac_ext
4326 if $ac_preproc_ok; then :
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4339 $as_echo "$CPP" >&6; }
4341 for ac_c_preproc_warn_flag
in '' yes
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4352 # include <limits.h>
4354 # include <assert.h>
4358 if ac_fn_c_try_cpp
"$LINENO"; then :
4361 # Broken: fails on valid input.
4364 rm -f conftest.err conftest.i conftest.
$ac_ext
4366 # OK, works on sane cases. Now check whether nonexistent headers
4367 # can be detected and how.
4368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4372 if ac_fn_c_try_cpp
"$LINENO"; then :
4373 # Broken: success on invalid input.
4376 # Passes both tests.
4380 rm -f conftest.err conftest.i conftest.
$ac_ext
4383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384 rm -f conftest.i conftest.err conftest.
$ac_ext
4385 if $ac_preproc_ok; then :
4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4391 See \`config.log' for more details" "$LINENO" 5; }
4395 ac_cpp
='$CPP $CPPFLAGS'
4396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4403 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4404 if ${ac_cv_path_GREP+:} false
; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -z "$GREP"; then
4408 ac_path_GREP_found
=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4411 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_prog
in grep ggrep
; do
4416 for ac_exec_ext
in '' $ac_executable_extensions; do
4417 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p
"$ac_path_GREP" ||
continue
4419 # Check for GNU ac_path_GREP and select it if it is found.
4420 # Check for GNU $ac_path_GREP
4421 case `"$ac_path_GREP" --version 2>&1` in
4423 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4426 $as_echo_n 0123456789 >"conftest.in"
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'GREP' >> "conftest.nl"
4433 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4434 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4435 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4436 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_GREP
="$ac_path_GREP"
4439 ac_path_GREP_max
=$ac_count
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4444 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4447 $ac_path_GREP_found && break 3
4452 if test -z "$ac_cv_path_GREP"; then
4453 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4456 ac_cv_path_GREP
=$GREP
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4461 $as_echo "$ac_cv_path_GREP" >&6; }
4462 GREP
="$ac_cv_path_GREP"
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4466 $as_echo_n "checking for egrep... " >&6; }
4467 if ${ac_cv_path_EGREP+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4471 then ac_cv_path_EGREP
="$GREP -E"
4473 if test -z "$EGREP"; then
4474 ac_path_EGREP_found
=false
4475 # Loop through the user's path and test for each of PROGNAME-LIST
4476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4477 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4480 test -z "$as_dir" && as_dir
=.
4481 for ac_prog
in egrep; do
4482 for ac_exec_ext
in '' $ac_executable_extensions; do
4483 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4484 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4485 # Check for GNU ac_path_EGREP and select it if it is found.
4486 # Check for GNU $ac_path_EGREP
4487 case `"$ac_path_EGREP" --version 2>&1` in
4489 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4492 $as_echo_n 0123456789 >"conftest.in"
4495 cat "conftest.in" "conftest.in" >"conftest.tmp"
4496 mv "conftest.tmp" "conftest.in"
4497 cp "conftest.in" "conftest.nl"
4498 $as_echo 'EGREP' >> "conftest.nl"
4499 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4500 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4501 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4502 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4503 # Best one so far, save it but keep looking for a better one
4504 ac_cv_path_EGREP
="$ac_path_EGREP"
4505 ac_path_EGREP_max
=$ac_count
4507 # 10*(2^10) chars as input seems more than enough
4508 test $ac_count -gt 10 && break
4510 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4513 $ac_path_EGREP_found && break 3
4518 if test -z "$ac_cv_path_EGREP"; then
4519 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4522 ac_cv_path_EGREP
=$EGREP
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4528 $as_echo "$ac_cv_path_EGREP" >&6; }
4529 EGREP
="$ac_cv_path_EGREP"
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4533 $as_echo_n "checking for ANSI C header files... " >&6; }
4534 if ${ac_cv_header_stdc+:} false
; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4552 if ac_fn_c_try_compile
"$LINENO"; then :
4553 ac_cv_header_stdc
=yes
4555 ac_cv_header_stdc
=no
4557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4559 if test $ac_cv_header_stdc = yes; then
4560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "memchr" >/dev
/null
2>&1; then :
4570 ac_cv_header_stdc
=no
4576 if test $ac_cv_header_stdc = yes; then
4577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "free" >/dev
/null
2>&1; then :
4587 ac_cv_header_stdc
=no
4593 if test $ac_cv_header_stdc = yes; then
4594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4595 if test "$cross_compiling" = yes; then :
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4602 #if ((' ' & 0x0FF) == 0x020)
4603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4606 # define ISLOWER(c) \
4607 (('a' <= (c) && (c) <= 'i') \
4608 || ('j' <= (c) && (c) <= 'r') \
4609 || ('s' <= (c) && (c) <= 'z'))
4610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4618 for (i = 0; i < 256; i++)
4619 if (XOR (islower (i), ISLOWER (i))
4620 || toupper (i) != TOUPPER (i))
4625 if ac_fn_c_try_run
"$LINENO"; then :
4628 ac_cv_header_stdc
=no
4630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4637 $as_echo "$ac_cv_header_stdc" >&6; }
4638 if test $ac_cv_header_stdc = yes; then
4640 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4645 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4646 inttypes.h stdint.h unistd.h
4648 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4649 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4651 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4652 cat >>confdefs.h
<<_ACEOF
4653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4661 test "$program_prefix" != NONE
&&
4662 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4663 # Use a double $ so make ignores it.
4664 test "$program_suffix" != NONE
&&
4665 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4666 # Double any \ or $.
4667 # By default was `s,x,x', remove it if useless.
4668 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4669 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4671 # Find a good install program. We prefer a C program (faster),
4672 # so one script is as good as another. But avoid the broken or
4673 # incompatible versions:
4674 # SysV /etc/install, /usr/sbin/install
4675 # SunOS /usr/etc/install
4676 # IRIX /sbin/install
4678 # AmigaOS /C/install, which installs bootblocks on floppy discs
4679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4682 # OS/2's system install, which has a completely different semantic
4683 # ./install, which can be erroneously created by make from ./install.sh.
4684 # Reject install programs that cannot install multiple files.
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4687 if test -z "$INSTALL"; then
4688 if ${ac_cv_path_install+:} false
; then :
4689 $as_echo_n "(cached) " >&6
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir
=.
4696 # Account for people who put trailing slashes in PATH elements.
4697 case $as_dir/ in #((
4698 .
/ | .
// |
/[cC
]/* | \
4699 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4700 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4703 # OSF1 and SCO ODT 3.0 have their own names for install.
4704 # Don't use installbsd from OSF since it installs stuff as root
4706 for ac_prog
in ginstall scoinst
install; do
4707 for ac_exec_ext
in '' $ac_executable_extensions; do
4708 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4709 if test $ac_prog = install &&
4710 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4711 # AIX install. It has an incompatible calling convention.
4713 elif test $ac_prog = install &&
4714 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4715 # program-specific install script used by HP pwplus--don't use.
4718 rm -rf conftest.one conftest.two conftest.dir
4719 echo one
> conftest.one
4720 echo two
> conftest.two
4722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4723 test -s conftest.one
&& test -s conftest.two
&&
4724 test -s conftest.dir
/conftest.one
&&
4725 test -s conftest.dir
/conftest.two
4727 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4740 rm -rf conftest.one conftest.two conftest.dir
4743 if test "${ac_cv_path_install+set}" = set; then
4744 INSTALL
=$ac_cv_path_install
4746 # As a last resort, use the slow shell script. Don't cache a
4747 # value for INSTALL within a source directory, because that will
4748 # break other packages using the cache if that directory is
4749 # removed, or if the value is a relative name.
4750 INSTALL
=$ac_install_sh
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4754 $as_echo "$INSTALL" >&6; }
4756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4757 # It thinks the first close brace ends the variable substitution.
4758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4762 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4768 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4769 if ${ac_cv_c_bigendian+:} false
; then :
4770 $as_echo_n "(cached) " >&6
4772 ac_cv_c_bigendian
=unknown
4773 # See if we're dealing with a universal compiler.
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #ifndef __APPLE_CC__
4777 not a universal capable compiler
4782 if ac_fn_c_try_compile
"$LINENO"; then :
4784 # Check for potential -arch flags. It is not universal unless
4785 # there are at least two -arch flags with different values.
4788 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4789 if test -n "$ac_prev"; then
4791 i?
86 | x86_64 | ppc | ppc64
)
4792 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4795 ac_cv_c_bigendian
=universal
4801 elif test "x$ac_word" = "x-arch"; then
4806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 if test $ac_cv_c_bigendian = unknown
; then
4808 # See if sys/param.h defines the BYTE_ORDER macro.
4809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #include <sys/types.h>
4812 #include <sys/param.h>
4817 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4818 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4827 if ac_fn_c_try_compile
"$LINENO"; then :
4828 # It does; now see whether it defined to BIG_ENDIAN or not.
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #include <sys/types.h>
4832 #include <sys/param.h>
4837 #if BYTE_ORDER != BIG_ENDIAN
4845 if ac_fn_c_try_compile
"$LINENO"; then :
4846 ac_cv_c_bigendian
=yes
4848 ac_cv_c_bigendian
=no
4850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4854 if test $ac_cv_c_bigendian = unknown
; then
4855 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4863 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4871 if ac_fn_c_try_compile
"$LINENO"; then :
4872 # It does; now see whether it defined to _BIG_ENDIAN or not.
4873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4888 if ac_fn_c_try_compile
"$LINENO"; then :
4889 ac_cv_c_bigendian
=yes
4891 ac_cv_c_bigendian
=no
4893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4897 if test $ac_cv_c_bigendian = unknown
; then
4898 # Compile a test program.
4899 if test "$cross_compiling" = yes; then :
4900 # Try to guess by grepping values from an object file.
4901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 short int ascii_mm[] =
4904 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4905 short int ascii_ii[] =
4906 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4907 int use_ascii (int i) {
4908 return ascii_mm[i] + ascii_ii[i];
4910 short int ebcdic_ii[] =
4911 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4912 short int ebcdic_mm[] =
4913 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4914 int use_ebcdic (int i) {
4915 return ebcdic_mm[i] + ebcdic_ii[i];
4922 return use_ascii (foo) == use_ebcdic (foo);
4927 if ac_fn_c_try_compile
"$LINENO"; then :
4928 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4929 ac_cv_c_bigendian
=yes
4931 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4932 if test "$ac_cv_c_bigendian" = unknown
; then
4933 ac_cv_c_bigendian
=no
4935 # finding both strings is unlikely to happen, but who knows?
4936 ac_cv_c_bigendian
=unknown
4940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 $ac_includes_default
4949 /* Are we little or big endian? From Harbison&Steele. */
4953 char c[sizeof (long int)];
4956 return u.c[sizeof (long int) - 1] == 1;
4962 if ac_fn_c_try_run
"$LINENO"; then :
4963 ac_cv_c_bigendian
=no
4965 ac_cv_c_bigendian
=yes
4967 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4968 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4974 $as_echo "$ac_cv_c_bigendian" >&6; }
4975 case $ac_cv_c_bigendian in #(
4977 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4983 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4987 as_fn_error $?
"unknown endianness
4988 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4996 set dummy
${ac_tool_prefix}dtc
; ac_word
=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_DTC+:} false
; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$DTC"; then
5003 ac_cv_prog_DTC
="$DTC" # Let the user override the test.
5005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir
=.
5010 for ac_exec_ext
in '' $ac_executable_extensions; do
5011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_DTC
="${ac_tool_prefix}dtc"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 if test -n "$DTC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
5025 $as_echo "$DTC" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5033 if test -z "$ac_cv_prog_DTC"; then
5035 # Extract the first word of "dtc", so it can be a program name with args.
5036 set dummy dtc
; ac_word
=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_ac_ct_DTC+:} false
; then :
5040 $as_echo_n "(cached) " >&6
5042 if test -n "$ac_ct_DTC"; then
5043 ac_cv_prog_ac_ct_DTC
="$ac_ct_DTC" # Let the user override the test.
5045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir
=.
5050 for ac_exec_ext
in '' $ac_executable_extensions; do
5051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5052 ac_cv_prog_ac_ct_DTC
="dtc"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 ac_ct_DTC
=$ac_cv_prog_ac_ct_DTC
5063 if test -n "$ac_ct_DTC"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
5065 $as_echo "$ac_ct_DTC" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5071 if test "x$ac_ct_DTC" = x
; then
5074 case $cross_compiling:$ac_tool_warned in
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned
=yes ;;
5083 DTC
="$ac_cv_prog_DTC"
5087 if test "x$cross_compiling" = "xno"; then
5088 : "${AR_FOR_BUILD:=\$(AR)}"
5089 : "${CC_FOR_BUILD:=\$(CC)}"
5090 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
5091 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
5092 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
5093 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
5095 : "${AR_FOR_BUILD:=ar}"
5096 : "${CC_FOR_BUILD:=gcc}"
5097 : "${RANLIB_FOR_BUILD:=ranlib}"
5098 : "${CFLAGS_FOR_BUILD:=-g -O}"
5099 : "${CPPFLAGS_FOR_BUILD:=}"
5100 : "${LDLFAGS_FOR_BUILD:=}"
5110 if test -n "$ac_tool_prefix"; then
5111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5112 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_AR+:} false
; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$AR"; then
5119 ac_cv_prog_AR
="$AR" # Let the user override the test.
5121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir
=.
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 if test -n "$AR"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5141 $as_echo "$AR" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5149 if test -z "$ac_cv_prog_AR"; then
5151 # Extract the first word of "ar", so it can be a program name with args.
5152 set dummy
ar; ac_word
=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$ac_ct_AR"; then
5159 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir
=.
5166 for ac_exec_ext
in '' $ac_executable_extensions; do
5167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_ac_ct_AR
="ar"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5179 if test -n "$ac_ct_AR"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5181 $as_echo "$ac_ct_AR" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5187 if test "x$ac_ct_AR" = x
; then
5190 case $cross_compiling:$ac_tool_warned in
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194 ac_tool_warned
=yes ;;
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5204 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if ${ac_cv_prog_RANLIB+:} false
; then :
5208 $as_echo_n "(cached) " >&6
5210 if test -n "$RANLIB"; then
5211 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir
=.
5218 for ac_exec_ext
in '' $ac_executable_extensions; do
5219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 RANLIB
=$ac_cv_prog_RANLIB
5231 if test -n "$RANLIB"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5233 $as_echo "$RANLIB" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5241 if test -z "$ac_cv_prog_RANLIB"; then
5242 ac_ct_RANLIB
=$RANLIB
5243 # Extract the first word of "ranlib", so it can be a program name with args.
5244 set dummy ranlib
; ac_word
=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$ac_ct_RANLIB"; then
5251 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir
=.
5258 for ac_exec_ext
in '' $ac_executable_extensions; do
5259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5271 if test -n "$ac_ct_RANLIB"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5273 $as_echo "$ac_ct_RANLIB" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5279 if test "x$ac_ct_RANLIB" = x
; then
5282 case $cross_compiling:$ac_tool_warned in
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned
=yes ;;
5288 RANLIB
=$ac_ct_RANLIB
5291 RANLIB
="$ac_cv_prog_RANLIB"
5301 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5302 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5304 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5308 $as_echo_n "(cached) " >&6
5312 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir
=.
5320 for ac_exec_ext
in '' $ac_executable_extensions; do
5321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5334 if test -n "$PKG_CONFIG"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5336 $as_echo "$PKG_CONFIG" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5344 if test -z "$ac_cv_path_PKG_CONFIG"; then
5345 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5346 # Extract the first word of "pkg-config", so it can be a program name with args.
5347 set dummy pkg-config
; ac_word
=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 case $ac_pt_PKG_CONFIG in
5355 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir
=.
5363 for ac_exec_ext
in '' $ac_executable_extensions; do
5364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5377 if test -n "$ac_pt_PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5379 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5385 if test "x$ac_pt_PKG_CONFIG" = x
; then
5388 case $cross_compiling:$ac_tool_warned in
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned
=yes ;;
5394 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5397 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5401 if test -n "$PKG_CONFIG"; then
5402 _pkg_min_version
=0.9.0
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5404 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 $as_echo "yes" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5416 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5417 # is C99. So handle it ourselves.
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5421 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5425 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5426 # error "C11 support not found"
5430 if ac_fn_c_try_compile
"$LINENO"; then :
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5438 $as_echo_n "checking for -std=c11 support... " >&6; }
5441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5445 # error "C11 support not found"
5449 if ac_fn_c_try_compile
"$LINENO"; then :
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5454 C_DIALECT
="-std=c11"
5457 as_fn_error $?
"C11 is required" "$LINENO" 5
5459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 for ac_header
in $ac_header_list
5469 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5472 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5473 cat >>confdefs.h
<<_ACEOF
5474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5528 for ac_func
in $ac_func_list
5530 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5531 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5532 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5533 cat >>confdefs.h
<<_ACEOF
5534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5667 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5668 if ${ac_cv_struct_tm+:} false
; then :
5669 $as_echo_n "(cached) " >&6
5671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5680 int *p = &tm.tm_sec;
5686 if ac_fn_c_try_compile
"$LINENO"; then :
5687 ac_cv_struct_tm
=time.h
5689 ac_cv_struct_tm
=sys
/time.h
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5694 $as_echo "$ac_cv_struct_tm" >&6; }
5695 if test $ac_cv_struct_tm = sys
/time.h
; then
5697 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5702 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5703 if ${ac_cv_type_uid_t+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712 $EGREP "uid_t" >/dev
/null
2>&1; then :
5713 ac_cv_type_uid_t
=yes
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5721 $as_echo "$ac_cv_type_uid_t" >&6; }
5722 if test $ac_cv_type_uid_t = no
; then
5724 $as_echo "#define uid_t int" >>confdefs.h
5727 $as_echo "#define gid_t int" >>confdefs.h
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5734 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5739 macro_version
='2.2.7a'
5740 macro_revision
='1.3134'
5754 ltmain
="$ac_aux_dir/ltmain.sh"
5756 # Backslashify metacharacters that are still active within
5757 # double-quoted strings.
5758 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5760 # Same as above, but do not quote variable references.
5761 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5763 # Sed substitution to delay expansion of an escaped shell variable in a
5764 # double_quote_subst'ed string.
5765 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5767 # Sed substitution to delay expansion of an escaped single quote.
5768 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5770 # Sed substitution to avoid accidental globbing in evaled expressions
5771 no_glob_subst
='s/\*/\\\*/g'
5773 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5774 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5775 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5778 $as_echo_n "checking how to print strings... " >&6; }
5779 # Test print first, because it will be a builtin if present.
5780 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5781 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5783 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5786 # Use this function as a fallback that always works.
5787 func_fallback_echo ()
5789 eval 'cat <<_LTECHO_EOF
5793 ECHO='func_fallback_echo
'
5796 # func_echo_all arg...
5797 # Invoke $ECHO with all args, space-separated.
5804 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5805 $as_echo "printf" >&6; } ;;
5806 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5807 $as_echo "print -r" >&6; } ;;
5808 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5809 $as_echo "cat" >&6; } ;;
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5826 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5827 if ${ac_cv_path_SED+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5831 for ac_i in 1 2 3 4 5 6 7; do
5832 ac_script="$ac_script$as_nl$ac_script"
5834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5835 { ac_script=; unset ac_script;}
5836 if test -z "$SED"; then
5837 ac_path_SED_found=false
5838 # Loop through the user's path and
test for each of PROGNAME-LIST
5839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir
=.
5844 for ac_prog
in sed gsed
; do
5845 for ac_exec_ext
in '' $ac_executable_extensions; do
5846 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5847 as_fn_executable_p
"$ac_path_SED" ||
continue
5848 # Check for GNU ac_path_SED and select it if it is found.
5849 # Check for GNU $ac_path_SED
5850 case `"$ac_path_SED" --version 2>&1` in
5852 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5855 $as_echo_n 0123456789 >"conftest.in"
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo '' >> "conftest.nl"
5862 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5863 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5864 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5865 if test $ac_count -gt ${ac_path_SED_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_SED
="$ac_path_SED"
5868 ac_path_SED_max
=$ac_count
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5873 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5876 $ac_path_SED_found && break 3
5881 if test -z "$ac_cv_path_SED"; then
5882 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5890 $as_echo "$ac_cv_path_SED" >&6; }
5891 SED
="$ac_cv_path_SED"
5894 test -z "$SED" && SED
=sed
5895 Xsed
="$SED -e 1s/^X//"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5908 $as_echo_n "checking for fgrep... " >&6; }
5909 if ${ac_cv_path_FGREP+:} false
; then :
5910 $as_echo_n "(cached) " >&6
5912 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5913 then ac_cv_path_FGREP
="$GREP -F"
5915 if test -z "$FGREP"; then
5916 ac_path_FGREP_found
=false
5917 # Loop through the user's path and test for each of PROGNAME-LIST
5918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5919 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5922 test -z "$as_dir" && as_dir
=.
5923 for ac_prog
in fgrep
; do
5924 for ac_exec_ext
in '' $ac_executable_extensions; do
5925 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5926 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5927 # Check for GNU ac_path_FGREP and select it if it is found.
5928 # Check for GNU $ac_path_FGREP
5929 case `"$ac_path_FGREP" --version 2>&1` in
5931 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5934 $as_echo_n 0123456789 >"conftest.in"
5937 cat "conftest.in" "conftest.in" >"conftest.tmp"
5938 mv "conftest.tmp" "conftest.in"
5939 cp "conftest.in" "conftest.nl"
5940 $as_echo 'FGREP' >> "conftest.nl"
5941 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5942 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5943 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5944 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5945 # Best one so far, save it but keep looking for a better one
5946 ac_cv_path_FGREP
="$ac_path_FGREP"
5947 ac_path_FGREP_max
=$ac_count
5949 # 10*(2^10) chars as input seems more than enough
5950 test $ac_count -gt 10 && break
5952 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5955 $ac_path_FGREP_found && break 3
5960 if test -z "$ac_cv_path_FGREP"; then
5961 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 ac_cv_path_FGREP
=$FGREP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5970 $as_echo "$ac_cv_path_FGREP" >&6; }
5971 FGREP
="$ac_cv_path_FGREP"
5974 test -z "$GREP" && GREP
=grep
5994 # Check whether --with-gnu-ld was given.
5995 if test "${with_gnu_ld+set}" = set; then :
5996 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6002 if test "$GCC" = yes; then
6003 # Check if gcc -print-prog-name=ld gives a path.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6005 $as_echo_n "checking for ld used by $CC... " >&6; }
6008 # gcc leaves a trailing carriage return which upsets mingw
6009 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6011 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6014 # Accept absolute paths.
6016 re_direlt
='/[^/][^/]*/\.\./'
6017 # Canonicalize the pathname of ld
6018 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6019 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6020 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6022 test -z "$LD" && LD
="$ac_prog"
6025 # If it fails, then pretend we aren't using GCC.
6029 # If it is relative, then search for the first ld in PATH.
6033 elif test "$with_gnu_ld" = yes; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6035 $as_echo_n "checking for GNU ld... " >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6038 $as_echo_n "checking for non-GNU ld... " >&6; }
6040 if ${lt_cv_path_LD+:} false
; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -z "$LD"; then
6044 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6045 for ac_dir
in $PATH; do
6047 test -z "$ac_dir" && ac_dir
=.
6048 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6049 lt_cv_path_LD
="$ac_dir/$ac_prog"
6050 # Check to see if the program is GNU ld. I'd rather use --version,
6051 # but apparently some variants of GNU ld only accept -v.
6052 # Break only if it was the GNU/non-GNU ld that we prefer.
6053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6054 *GNU
* |
*'with BFD'*)
6055 test "$with_gnu_ld" != no
&& break
6058 test "$with_gnu_ld" != yes && break
6065 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6070 if test -n "$LD"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6072 $as_echo "$LD" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6077 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6079 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6080 if ${lt_cv_prog_gnu_ld+:} false
; then :
6081 $as_echo_n "(cached) " >&6
6083 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6084 case `$LD -v 2>&1 </dev/null` in
6085 *GNU
* |
*'with BFD'*)
6086 lt_cv_prog_gnu_ld
=yes
6089 lt_cv_prog_gnu_ld
=no
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6094 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6095 with_gnu_ld
=$lt_cv_prog_gnu_ld
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6106 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6107 if ${lt_cv_path_NM+:} false
; then :
6108 $as_echo_n "(cached) " >&6
6110 if test -n "$NM"; then
6111 # Let the user override the nm to test.
6112 lt_nm_to_check
="$NM"
6114 lt_nm_to_check
="${ac_tool_prefix}nm"
6115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6116 lt_nm_to_check
="$lt_nm_to_check nm"
6119 for lt_tmp_nm
in "$lt_nm_to_check"; do
6120 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6121 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6123 test -z "$ac_dir" && ac_dir
=.
6124 # Strip out any user-provided options from the nm to test twice,
6125 # the first time to test to see if nm (rather than its options) has
6126 # an explicit path, the second time to yield a file which can be
6128 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6129 case "$tmp_nm_path" in
6130 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6131 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6133 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6134 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
6135 # Check to see if the nm accepts a BSD-compat flag.
6136 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6137 # nm: unknown option "B" ignored
6138 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6139 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6143 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6145 lt_cv_path_NM
="$tmp_nm -p"
6149 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6150 continue # so that we can try to find one that supports BSD flags
6159 : ${lt_cv_path_NM=no}
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6162 $as_echo "$lt_cv_path_NM" >&6; }
6163 if test "$lt_cv_path_NM" != "no"; then
6166 # Didn't find any BSD compatible name lister, look for dumpbin.
6167 if test -n "$DUMPBIN"; then :
6168 # Let the user override the test.
6170 if test -n "$ac_tool_prefix"; then
6171 for ac_prog
in dumpbin
"link -dump"
6173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6174 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$DUMPBIN"; then
6181 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir
=.
6188 for ac_exec_ext
in '' $ac_executable_extensions; do
6189 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 DUMPBIN
=$ac_cv_prog_DUMPBIN
6201 if test -n "$DUMPBIN"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6203 $as_echo "$DUMPBIN" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6210 test -n "$DUMPBIN" && break
6213 if test -z "$DUMPBIN"; then
6214 ac_ct_DUMPBIN
=$DUMPBIN
6215 for ac_prog
in dumpbin
"link -dump"
6217 # Extract the first word of "$ac_prog", so it can be a program name with args.
6218 set dummy
$ac_prog; ac_word
=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$ac_ct_DUMPBIN"; then
6225 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir
=.
6232 for ac_exec_ext
in '' $ac_executable_extensions; do
6233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6245 if test -n "$ac_ct_DUMPBIN"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6247 $as_echo "$ac_ct_DUMPBIN" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6254 test -n "$ac_ct_DUMPBIN" && break
6257 if test "x$ac_ct_DUMPBIN" = x
; then
6260 case $cross_compiling:$ac_tool_warned in
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned
=yes ;;
6266 DUMPBIN
=$ac_ct_DUMPBIN
6270 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6272 DUMPBIN
="$DUMPBIN -symbols"
6280 if test "$DUMPBIN" != ":"; then
6284 test -z "$NM" && NM
=nm
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6292 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6293 if ${lt_cv_nm_interface+:} false
; then :
6294 $as_echo_n "(cached) " >&6
6296 lt_cv_nm_interface
="BSD nm"
6297 echo "int some_variable = 0;" > conftest.
$ac_ext
6298 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6299 (eval "$ac_compile" 2>conftest.err
)
6300 cat conftest.err
>&5
6301 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6302 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6303 cat conftest.err
>&5
6304 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6305 cat conftest.out
>&5
6306 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6307 lt_cv_nm_interface
="MS dumpbin"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6312 $as_echo "$lt_cv_nm_interface" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6315 $as_echo_n "checking whether ln -s works... " >&6; }
6317 if test "$LN_S" = "ln -s"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319 $as_echo "yes" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6322 $as_echo "no, using $LN_S" >&6; }
6325 # find the maximum length of command line arguments
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6327 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6328 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6329 $as_echo_n "(cached) " >&6
6336 # On DJGPP, this test can blow up pretty badly due to problems in libc
6337 # (any single argument exceeding 2000 bytes causes a buffer overrun
6338 # during glob expansion). Even if it were fixed, the result of this
6339 # check would be larger than it should be.
6340 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6344 # Under GNU Hurd, this test is not required because there is
6345 # no limit to the length of command line arguments.
6346 # Libtool will interpret -1 as no limit whatsoever
6347 lt_cv_sys_max_cmd_len
=-1;
6350 cygwin
* | mingw
* | cegcc
*)
6351 # On Win9x/ME, this test blows up -- it succeeds, but takes
6352 # about 5 minutes as the teststring grows exponentially.
6353 # Worse, since 9x/ME are not pre-emptively multitasking,
6354 # you end up with a "frozen" computer, even though with patience
6355 # the test eventually succeeds (with a max line length of 256k).
6356 # Instead, let's just punt: use the minimum linelength reported by
6357 # all of the supported platforms: 8192 (on NT/2K/XP).
6358 lt_cv_sys_max_cmd_len
=8192;
6362 # On MiNT this can take a long time and run out of memory.
6363 lt_cv_sys_max_cmd_len
=8192;
6367 # On AmigaOS with pdksh, this test takes hours, literally.
6368 # So we just punt and use a minimum line length of 8192.
6369 lt_cv_sys_max_cmd_len
=8192;
6372 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6373 # This has been around since 386BSD, at least. Likely further.
6374 if test -x /sbin
/sysctl
; then
6375 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6376 elif test -x /usr
/sbin
/sysctl
; then
6377 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6379 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6381 # And add a safety zone
6382 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6383 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6387 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6388 lt_cv_sys_max_cmd_len
=196608
6392 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6393 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6394 # nice to cause kernel panics so lets avoid the loop below.
6395 # First set a reasonable default.
6396 lt_cv_sys_max_cmd_len
=16384
6398 if test -x /sbin
/sysconfig
; then
6399 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6400 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6405 lt_cv_sys_max_cmd_len
=102400
6407 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6408 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6409 if test -n "$kargmax"; then
6410 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6412 lt_cv_sys_max_cmd_len
=32768
6416 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6417 if test -n "$lt_cv_sys_max_cmd_len"; then
6418 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6419 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6421 # Make teststring a little bigger before we do anything with it.
6422 # a 1K string should be a reasonable start.
6423 for i
in 1 2 3 4 5 6 7 8 ; do
6424 teststring
=$teststring$teststring
6426 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6427 # If test is not a shell built-in, we'll probably end up computing a
6428 # maximum length that is only half of the actual maximum length, but
6430 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6431 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6432 test $i != 17 # 1/2 MB should be enough
6435 teststring
=$teststring$teststring
6437 # Only check the string length outside the loop.
6438 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6440 # Add a significant safety factor because C++ compilers can tack on
6441 # massive amounts of additional arguments before passing them to the
6442 # linker. It appears as though 1/2 is a usable value.
6443 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6450 if test -n $lt_cv_sys_max_cmd_len ; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6452 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6455 $as_echo "none" >&6; }
6457 max_cmd_len
=$lt_cv_sys_max_cmd_len
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6469 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6470 # Try some XSI features
6473 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6475 && eval 'test $(( 1 + 1 )) -eq 2 \
6476 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6479 $as_echo "$xsi_shell" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6483 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6485 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6487 && lt_shell_append=yes
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6489 $as_echo "$lt_shell_append" >&6; }
6492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6502 # test EBCDIC or ASCII
6503 case `echo X|tr X '\101'` in
6504 A) # ASCII based system
6505 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6506 lt_SP2NL='tr \040 \012'
6507 lt_NL2SP='tr \015\012 \040\040'
6509 *) # EBCDIC based system
6510 lt_SP2NL='tr \100 \n'
6511 lt_NL2SP='tr \r\n \100\100'
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6524 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6525 if ${lt_cv_ld_reload_flag+:} false; then :
6526 $as_echo_n "(cached
) " >&6
6528 lt_cv_ld_reload_flag='-r'
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6531 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6532 reload_flag=$lt_cv_ld_reload_flag
6533 case $reload_flag in
6535 *) reload_flag=" $reload_flag" ;;
6537 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6540 if test "$GCC" = yes; then
6541 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6556 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6558 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6560 $as_echo_n "checking
for $ac_word...
" >&6; }
6561 if ${ac_cv_prog_OBJDUMP+:} false; then :
6562 $as_echo_n "(cached
) " >&6
6564 if test -n "$OBJDUMP"; then
6565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6584 OBJDUMP=$ac_cv_prog_OBJDUMP
6585 if test -n "$OBJDUMP"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6587 $as_echo "$OBJDUMP" >&6; }
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6590 $as_echo "no
" >&6; }
6595 if test -z "$ac_cv_prog_OBJDUMP"; then
6596 ac_ct_OBJDUMP=$OBJDUMP
6597 # Extract the first word of "objdump
", so it can be a program name with args.
6598 set dummy objdump; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6600 $as_echo_n "checking
for $ac_word...
" >&6; }
6601 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6602 $as_echo_n "(cached
) " >&6
6604 if test -n "$ac_ct_OBJDUMP"; then
6605 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6624 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6625 if test -n "$ac_ct_OBJDUMP"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6627 $as_echo "$ac_ct_OBJDUMP" >&6; }
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6630 $as_echo "no
" >&6; }
6633 if test "x
$ac_ct_OBJDUMP" = x; then
6636 case $cross_compiling:$ac_tool_warned in
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6639 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6640 ac_tool_warned=yes ;;
6642 OBJDUMP=$ac_ct_OBJDUMP
6645 OBJDUMP="$ac_cv_prog_OBJDUMP"
6648 test -z "$OBJDUMP" && OBJDUMP=objdump
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6659 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6660 if ${lt_cv_deplibs_check_method+:} false; then :
6661 $as_echo_n "(cached
) " >&6
6663 lt_cv_file_magic_cmd='$MAGIC_CMD'
6664 lt_cv_file_magic_test_file=
6665 lt_cv_deplibs_check_method='unknown'
6666 # Need to set the preceding variable on all platforms that support
6667 # interlibrary dependencies.
6668 # 'none' -- dependencies not supported.
6669 # `unknown' -- same as none, but documents that we really don't know.
6670 # 'pass_all' -- all dependencies passed with no checks.
6671 # 'test_compile' -- check by making test program.
6672 # 'file_magic [[regex]]' -- check by looking for files in library path
6673 # which responds to the $file_magic_cmd with a given extended regex.
6674 # If you have `file' or equivalent on your system and you're not sure
6675 # whether `pass_all' will *always* work, you probably want this one.
6679 lt_cv_deplibs_check_method=pass_all
6683 lt_cv_deplibs_check_method=pass_all
6687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6688 lt_cv_file_magic_cmd='/usr/bin/file -L'
6689 lt_cv_file_magic_test_file=/shlib/libc.so
6693 # func_win32_libid is a shell function defined in ltmain.sh
6694 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6695 lt_cv_file_magic_cmd='func_win32_libid'
6699 # Base MSYS/MinGW do not provide the 'file' command needed by
6700 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6701 # unless we find 'file', for example because we are cross-compiling.
6702 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6703 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6704 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6705 lt_cv_file_magic_cmd='func_win32_libid'
6707 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6708 lt_cv_file_magic_cmd='$OBJDUMP -f'
6713 # use the weaker test based on 'objdump'. See mingw*.
6714 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6715 lt_cv_file_magic_cmd='$OBJDUMP -f'
6718 darwin* | rhapsody*)
6719 lt_cv_deplibs_check_method=pass_all
6722 freebsd* | dragonfly*)
6723 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6726 # Not sure whether the presence of OpenBSD here was a mistake.
6727 # Let's accept both of them until this is cleared up.
6728 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6729 lt_cv_file_magic_cmd=/usr/bin/file
6730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6734 lt_cv_deplibs_check_method=pass_all
6739 lt_cv_deplibs_check_method=pass_all
6743 lt_cv_deplibs_check_method=pass_all
6746 hpux10.20* | hpux11*)
6747 lt_cv_file_magic_cmd=/usr/bin/file
6750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6751 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6754 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]'
6755 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6765 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6769 irix5* | irix6* | nonstopux*)
6771 *-32|*"-32 ") libmagic=32-bit;;
6772 *-n32|*"-n32 ") libmagic=N32;;
6773 *-64|*"-64 ") libmagic=64-bit;;
6774 *) libmagic=never-match;;
6776 lt_cv_deplibs_check_method=pass_all
6779 # This must be Linux ELF.
6780 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6781 lt_cv_deplibs_check_method=pass_all
6785 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6794 lt_cv_file_magic_cmd=/usr/bin/file
6795 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6799 lt_cv_deplibs_check_method=pass_all
6803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6810 osf3* | osf4* | osf5*)
6811 lt_cv_deplibs_check_method=pass_all
6815 lt_cv_deplibs_check_method=pass_all
6819 lt_cv_deplibs_check_method=pass_all
6822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6823 lt_cv_deplibs_check_method=pass_all
6827 case $host_vendor in
6829 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]'
6830 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6833 lt_cv_deplibs_check_method=pass_all
6836 lt_cv_file_magic_cmd='/bin/file'
6837 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6840 lt_cv_file_magic_cmd='/bin/file'
6841 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6842 lt_cv_file_magic_test_file=/lib/libc.so
6845 lt_cv_deplibs_check_method=pass_all
6848 lt_cv_deplibs_check_method=pass_all
6854 lt_cv_deplibs_check_method=pass_all
6857 # Assume VxWorks cross toolchains are built on Linux, possibly
6858 # as canadian for Windows hosts.
6859 lt_cv_deplibs_check_method=pass_all
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6865 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6866 file_magic_cmd=$lt_cv_file_magic_cmd
6867 deplibs_check_method=$lt_cv_deplibs_check_method
6868 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6882 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6883 for plugin in $plugin_names; do
6884 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6885 if test x$plugin_so = x$plugin; then
6886 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6888 if test x$plugin_so != x$plugin; then
6889 plugin_option="--plugin $plugin_so"
6894 if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}ar; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6898 $as_echo_n "checking
for $ac_word...
" >&6; }
6899 if ${ac_cv_prog_AR+:} false; then :
6900 $as_echo_n "(cached
) " >&6
6902 if test -n "$AR"; then
6903 ac_cv_prog_AR="$AR" # Let the user override the test.
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_AR="${ac_tool_prefix}ar"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6923 if test -n "$AR"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6925 $as_echo "$AR" >&6; }
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6928 $as_echo "no
" >&6; }
6933 if test -z "$ac_cv_prog_AR"; then
6935 # Extract the first word of "ar", so it can be a program name with args.
6936 set dummy ar; ac_word=$2
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6938 $as_echo_n "checking
for $ac_word...
" >&6; }
6939 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6940 $as_echo_n "(cached
) " >&6
6942 if test -n "$ac_ct_AR"; then
6943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_ac_ct_AR="ar"
6953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6963 if test -n "$ac_ct_AR"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6965 $as_echo "$ac_ct_AR" >&6; }
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6968 $as_echo "no
" >&6; }
6971 if test "x
$ac_ct_AR" = x; then
6974 case $cross_compiling:$ac_tool_warned in
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6977 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6978 ac_tool_warned=yes ;;
6986 test -z "$AR" && AR=ar
6987 if test -n "$plugin_option"; then
6988 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6990 $AR $plugin_option rc conftest.a conftest.c
6991 if test "$?
" != 0; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6993 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6995 AR="$AR $plugin_option"
7000 test -z "$AR_FLAGS" && AR_FLAGS=cru
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7014 set dummy ${ac_tool_prefix}strip; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7016 $as_echo_n "checking
for $ac_word...
" >&6; }
7017 if ${ac_cv_prog_STRIP+:} false; then :
7018 $as_echo_n "(cached
) " >&6
7020 if test -n "$STRIP"; then
7021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7040 STRIP=$ac_cv_prog_STRIP
7041 if test -n "$STRIP"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7043 $as_echo "$STRIP" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7046 $as_echo "no
" >&6; }
7051 if test -z "$ac_cv_prog_STRIP"; then
7053 # Extract the first word of "strip
", so it can be a program name with args.
7054 set dummy strip; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7056 $as_echo_n "checking
for $ac_word...
" >&6; }
7057 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7058 $as_echo_n "(cached
) " >&6
7060 if test -n "$ac_ct_STRIP"; then
7061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_STRIP="strip
"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7081 if test -n "$ac_ct_STRIP"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7083 $as_echo "$ac_ct_STRIP" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7086 $as_echo "no
" >&6; }
7089 if test "x
$ac_ct_STRIP" = x; then
7092 case $cross_compiling:$ac_tool_warned in
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7095 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7096 ac_tool_warned=yes ;;
7101 STRIP="$ac_cv_prog_STRIP"
7104 test -z "$STRIP" && STRIP=:
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7115 $as_echo_n "checking
for $ac_word...
" >&6; }
7116 if ${ac_cv_prog_RANLIB+:} false; then :
7117 $as_echo_n "(cached
) " >&6
7119 if test -n "$RANLIB"; then
7120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7139 RANLIB=$ac_cv_prog_RANLIB
7140 if test -n "$RANLIB"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7142 $as_echo "$RANLIB" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7145 $as_echo "no
" >&6; }
7150 if test -z "$ac_cv_prog_RANLIB"; then
7151 ac_ct_RANLIB=$RANLIB
7152 # Extract the first word of "ranlib
", so it can be a program name with args.
7153 set dummy ranlib; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7155 $as_echo_n "checking
for $ac_word...
" >&6; }
7156 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7157 $as_echo_n "(cached
) " >&6
7159 if test -n "$ac_ct_RANLIB"; then
7160 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7179 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7180 if test -n "$ac_ct_RANLIB"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7182 $as_echo "$ac_ct_RANLIB" >&6; }
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7185 $as_echo "no
" >&6; }
7188 if test "x
$ac_ct_RANLIB" = x; then
7191 case $cross_compiling:$ac_tool_warned in
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7194 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7195 ac_tool_warned=yes ;;
7197 RANLIB=$ac_ct_RANLIB
7200 RANLIB="$ac_cv_prog_RANLIB"
7203 test -z "$RANLIB" && RANLIB=:
7204 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7205 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7206 RANLIB="$RANLIB $plugin_option"
7215 # Determine commands to create old-style static archives.
7216 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7217 old_postinstall_cmds='chmod 644 $oldlib'
7218 old_postuninstall_cmds=
7220 if test -n "$RANLIB"; then
7223 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7226 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7229 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7234 lock_old_archive_extraction=yes ;;
7236 lock_old_archive_extraction=no ;;
7259 for ac_prog in gawk mawk nawk awk
7261 # Extract the first word of "$ac_prog", so it can be a program name with args.
7262 set dummy $ac_prog; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7264 $as_echo_n "checking
for $ac_word...
" >&6; }
7265 if ${ac_cv_prog_AWK+:} false; then :
7266 $as_echo_n "(cached
) " >&6
7268 if test -n "$AWK"; then
7269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_AWK="$ac_prog"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7289 if test -n "$AWK"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
7291 $as_echo "$AWK" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7294 $as_echo "no
" >&6; }
7298 test -n "$AWK" && break
7319 # If no C compiler was specified, use CC.
7322 # If no C compiler flags were specified, use CFLAGS.
7323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7325 # Allow CC to be a program name with arguments.
7329 # Check for command to grab the raw symbol name followed by C symbol from nm.
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7331 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7332 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7333 $as_echo_n "(cached
) " >&6
7336 # These are sane defaults that work on at least a few old systems.
7337 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7339 # Character class describing NM global symbol codes.
7340 symcode='[BCDEGRST]'
7342 # Regexp to match symbols that can be accessed directly from C.
7343 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7345 # Define system-specific variables.
7350 cygwin* | mingw* | pw32* | cegcc*)
7351 symcode='[ABCDGISTW]'
7354 if test "$host_cpu" = ia64; then
7355 symcode='[ABCDEGRST]'
7359 symcode='[BCDEGRST]'
7362 symcode='[BCDEGQRST]'
7373 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7381 # If we're using GNU nm, then use its standard symbol codes.
7382 case `$NM -V 2>&1` in
7383 *GNU* | *'with BFD'*)
7384 symcode='[ABCDGIRSTW]' ;;
7387 # Transform an extracted symbol line into a proper C declaration.
7388 # Some systems (esp. on ia64) link data and code symbols differently,
7389 # so use this general approach.
7390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7392 # Transform an extracted symbol line into symbol name and symbol address
7393 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7394 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'"
7396 # Handle CRLF in mingw tool chain
7400 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7404 # Try without a prefix underscore, then with it.
7405 for ac_symprfx in "" "_
"; do
7407 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7408 symxfrm="\\1 $ac_symprfx\\2 \\2"
7410 # Write the raw and C identifiers.
7411 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7412 # Fake it for dumpbin and say T for any non-static function
7413 # and D for any global variable.
7414 # Also find C++ and __fastcall symbols from MSVC++,
7415 # which start with @ or ?.
7416 lt_cv_sys_global_symbol_pipe="$AWK '"\
7417 " {last_section=section; section=\$ 3};"\
7418 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7419 " \$ 0!~/External *\|/{next};"\
7420 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7421 " {if(hide[section]) next};"\
7422 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7423 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7424 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7425 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7426 " ' prfx
=^
$ac_symprfx"
7428 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7431 # Check to see that the pipe works correctly.
7435 cat > conftest.$ac_ext <<_LT_EOF
7440 void nm_test_func(void);
7441 void nm_test_func(void){}
7445 int main(){nm_test_var='a';nm_test_func();return(0);}
7448 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7449 (eval $ac_compile) 2>&5
7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7452 test $ac_status = 0; }; then
7453 # Now try to grab the symbols.
7455 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7456 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7459 test $ac_status = 0; } && test -s "$nlist"; then
7460 # Try sorting and uniquifying the output.
7461 if sort "$nlist" | uniq > "$nlist"T; then
7462 mv -f "$nlist"T "$nlist"
7467 # Make sure that we snagged all the symbols we need.
7468 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7469 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7470 cat <<_LT_EOF > conftest.$ac_ext
7476 # Now generate the symbol file.
7477 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7479 cat <<_LT_EOF >> conftest.$ac_ext
7481 /* The mapping between symbol names and symbols. */
7486 lt__PROGRAM__LTX_preloaded_symbols[] =
7488 { "@PROGRAM@
", (void *) 0 },
7490 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7491 cat <<\_LT_EOF >> conftest.$ac_ext
7495 /* This works around a problem in FreeBSD linker */
7496 #ifdef FREEBSD_WORKAROUND
7497 static const void *lt_preloaded_setup() {
7498 return lt__PROGRAM__LTX_preloaded_symbols;
7506 # Now try linking the two files.
7507 mv conftest.$ac_objext conftstm.$ac_objext
7508 lt_save_LIBS="$LIBS"
7509 lt_save_CFLAGS="$CFLAGS"
7510 LIBS="conftstm.
$ac_objext"
7511 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7512 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7513 (eval $ac_link) 2>&5
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7516 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7519 LIBS="$lt_save_LIBS"
7520 CFLAGS="$lt_save_CFLAGS"
7522 echo "cannot
find nm_test_func
in $nlist" >&5
7525 echo "cannot
find nm_test_var
in $nlist" >&5
7528 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7531 echo "$progname: failed program was
:" >&5
7532 cat conftest.$ac_ext >&5
7534 rm -rf conftest* conftst*
7536 # Do not use the global_symbol_pipe unless it works.
7537 if test "$pipe_works" = yes; then
7540 lt_cv_sys_global_symbol_pipe=
7546 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7547 lt_cv_sys_global_symbol_to_cdecl=
7549 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7551 $as_echo "failed
" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7554 $as_echo "ok
" >&6; }
7578 # Check whether --enable-libtool-lock was given.
7579 if test "${enable_libtool_lock+set}" = set; then :
7580 enableval=$enable_libtool_lock;
7583 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7585 # Some flags need to be propagated to the compiler or linker for good
7589 # Find out which ABI we are using.
7590 echo 'int i;' > conftest.$ac_ext
7591 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7592 (eval $ac_compile) 2>&5
7594 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7595 test $ac_status = 0; }; then
7596 case `/usr/bin/file conftest.$ac_objext` in
7608 # Find out which ABI we are using.
7609 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7610 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7611 (eval $ac_compile) 2>&5
7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7614 test $ac_status = 0; }; then
7615 if test "$lt_cv_prog_gnu_ld" = yes; then
7616 case `/usr/bin/file conftest.$ac_objext` in
7618 LD="${LD-ld} -melf32bsmip"
7621 LD="${LD-ld} -melf32bmipn32"
7624 LD="${LD-ld} -melf64bmip"
7628 case `/usr/bin/file conftest.$ac_objext` in
7644 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7645 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7646 # Find out which ABI we are using.
7647 echo 'int i;' > conftest.$ac_ext
7648 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7649 (eval $ac_compile) 2>&5
7651 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7652 test $ac_status = 0; }; then
7653 case `/usr/bin/file conftest.o` in
7656 x86_64-*kfreebsd*-gnu)
7657 LD="${LD-ld} -m elf_i386_fbsd
"
7660 case `/usr/bin/file conftest.o` in
7662 LD="${LD-ld} -m elf32_x86_64
"
7665 LD="${LD-ld} -m elf_i386
"
7669 powerpc64le-*linux*)
7670 LD="${LD-ld} -m elf32lppclinux
"
7673 LD="${LD-ld} -m elf32ppclinux
"
7676 LD="${LD-ld} -m elf_s390
"
7679 LD="${LD-ld} -m elf32_sparc
"
7685 x86_64-*kfreebsd*-gnu)
7686 LD="${LD-ld} -m elf_x86_64_fbsd
"
7689 LD="${LD-ld} -m elf_x86_64
"
7692 LD="${LD-ld} -m elf64lppc
"
7695 LD="${LD-ld} -m elf64ppc
"
7697 s390*-*linux*|s390*-*tpf*)
7698 LD="${LD-ld} -m elf64_s390
"
7701 LD="${LD-ld} -m elf64_sparc
"
7711 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7712 SAVE_CFLAGS="$CFLAGS"
7713 CFLAGS="$CFLAGS -belf"
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7715 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7716 if ${lt_cv_cc_needs_belf+:} false; then :
7717 $as_echo_n "(cached
) " >&6
7720 ac_cpp='$CPP $CPPFLAGS'
7721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 lt_cv_cc_needs_belf=yes
7739 lt_cv_cc_needs_belf=no
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7751 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7752 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7753 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7754 CFLAGS="$SAVE_CFLAGS"
7758 # Find out which ABI we are using.
7759 echo 'int i;' > conftest.$ac_ext
7760 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7761 (eval $ac_compile) 2>&5
7763 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7764 test $ac_status = 0; }; then
7765 case `/usr/bin/file conftest.o` in
7767 case $lt_cv_prog_gnu_ld in
7768 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7770 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7782 need_locks="$enable_libtool_lock"
7786 rhapsody* | darwin*)
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7791 $as_echo_n "checking
for $ac_word...
" >&6; }
7792 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7793 $as_echo_n "(cached
) " >&6
7795 if test -n "$DSYMUTIL"; then
7796 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7815 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7816 if test -n "$DSYMUTIL"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7818 $as_echo "$DSYMUTIL" >&6; }
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7821 $as_echo "no
" >&6; }
7826 if test -z "$ac_cv_prog_DSYMUTIL"; then
7827 ac_ct_DSYMUTIL=$DSYMUTIL
7828 # Extract the first word of "dsymutil
", so it can be a program name with args.
7829 set dummy dsymutil; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7831 $as_echo_n "checking
for $ac_word...
" >&6; }
7832 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7833 $as_echo_n "(cached
) " >&6
7835 if test -n "$ac_ct_DSYMUTIL"; then
7836 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7855 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7856 if test -n "$ac_ct_DSYMUTIL"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7858 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7861 $as_echo "no
" >&6; }
7864 if test "x
$ac_ct_DSYMUTIL" = x; then
7867 case $cross_compiling:$ac_tool_warned in
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7870 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7871 ac_tool_warned=yes ;;
7873 DSYMUTIL=$ac_ct_DSYMUTIL
7876 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7879 if test -n "$ac_tool_prefix"; then
7880 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7881 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7883 $as_echo_n "checking
for $ac_word...
" >&6; }
7884 if ${ac_cv_prog_NMEDIT+:} false; then :
7885 $as_echo_n "(cached
) " >&6
7887 if test -n "$NMEDIT"; then
7888 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7907 NMEDIT=$ac_cv_prog_NMEDIT
7908 if test -n "$NMEDIT"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7910 $as_echo "$NMEDIT" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7913 $as_echo "no
" >&6; }
7918 if test -z "$ac_cv_prog_NMEDIT"; then
7919 ac_ct_NMEDIT=$NMEDIT
7920 # Extract the first word of "nmedit
", so it can be a program name with args.
7921 set dummy nmedit; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7923 $as_echo_n "checking
for $ac_word...
" >&6; }
7924 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7925 $as_echo_n "(cached
) " >&6
7927 if test -n "$ac_ct_NMEDIT"; then
7928 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7947 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7948 if test -n "$ac_ct_NMEDIT"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7950 $as_echo "$ac_ct_NMEDIT" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7953 $as_echo "no
" >&6; }
7956 if test "x
$ac_ct_NMEDIT" = x; then
7959 case $cross_compiling:$ac_tool_warned in
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7962 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7963 ac_tool_warned=yes ;;
7965 NMEDIT=$ac_ct_NMEDIT
7968 NMEDIT="$ac_cv_prog_NMEDIT"
7971 if test -n "$ac_tool_prefix"; then
7972 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7973 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7975 $as_echo_n "checking
for $ac_word...
" >&6; }
7976 if ${ac_cv_prog_LIPO+:} false; then :
7977 $as_echo_n "(cached
) " >&6
7979 if test -n "$LIPO"; then
7980 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7999 LIPO=$ac_cv_prog_LIPO
8000 if test -n "$LIPO"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8002 $as_echo "$LIPO" >&6; }
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8005 $as_echo "no
" >&6; }
8010 if test -z "$ac_cv_prog_LIPO"; then
8012 # Extract the first word of "lipo
", so it can be a program name with args.
8013 set dummy lipo; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8015 $as_echo_n "checking
for $ac_word...
" >&6; }
8016 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8017 $as_echo_n "(cached
) " >&6
8019 if test -n "$ac_ct_LIPO"; then
8020 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_ac_ct_LIPO="lipo
"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8039 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8040 if test -n "$ac_ct_LIPO"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8042 $as_echo "$ac_ct_LIPO" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8045 $as_echo "no
" >&6; }
8048 if test "x
$ac_ct_LIPO" = x; then
8051 case $cross_compiling:$ac_tool_warned in
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8054 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8055 ac_tool_warned=yes ;;
8060 LIPO="$ac_cv_prog_LIPO"
8063 if test -n "$ac_tool_prefix"; then
8064 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8065 set dummy ${ac_tool_prefix}otool; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8067 $as_echo_n "checking
for $ac_word...
" >&6; }
8068 if ${ac_cv_prog_OTOOL+:} false; then :
8069 $as_echo_n "(cached
) " >&6
8071 if test -n "$OTOOL"; then
8072 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8091 OTOOL=$ac_cv_prog_OTOOL
8092 if test -n "$OTOOL"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8094 $as_echo "$OTOOL" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8097 $as_echo "no
" >&6; }
8102 if test -z "$ac_cv_prog_OTOOL"; then
8104 # Extract the first word of "otool
", so it can be a program name with args.
8105 set dummy otool; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8107 $as_echo_n "checking
for $ac_word...
" >&6; }
8108 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8109 $as_echo_n "(cached
) " >&6
8111 if test -n "$ac_ct_OTOOL"; then
8112 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_prog_ac_ct_OTOOL="otool
"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8131 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8132 if test -n "$ac_ct_OTOOL"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8134 $as_echo "$ac_ct_OTOOL" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8137 $as_echo "no
" >&6; }
8140 if test "x
$ac_ct_OTOOL" = x; then
8143 case $cross_compiling:$ac_tool_warned in
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8146 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8147 ac_tool_warned=yes ;;
8152 OTOOL="$ac_cv_prog_OTOOL"
8155 if test -n "$ac_tool_prefix"; then
8156 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8157 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8159 $as_echo_n "checking
for $ac_word...
" >&6; }
8160 if ${ac_cv_prog_OTOOL64+:} false; then :
8161 $as_echo_n "(cached
) " >&6
8163 if test -n "$OTOOL64"; then
8164 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8174 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8183 OTOOL64=$ac_cv_prog_OTOOL64
8184 if test -n "$OTOOL64"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8186 $as_echo "$OTOOL64" >&6; }
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8189 $as_echo "no
" >&6; }
8194 if test -z "$ac_cv_prog_OTOOL64"; then
8195 ac_ct_OTOOL64=$OTOOL64
8196 # Extract the first word of "otool64
", so it can be a program name with args.
8197 set dummy otool64; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8199 $as_echo_n "checking
for $ac_word...
" >&6; }
8200 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8201 $as_echo_n "(cached
) " >&6
8203 if test -n "$ac_ct_OTOOL64"; then
8204 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8223 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8224 if test -n "$ac_ct_OTOOL64"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8226 $as_echo "$ac_ct_OTOOL64" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8229 $as_echo "no
" >&6; }
8232 if test "x
$ac_ct_OTOOL64" = x; then
8235 case $cross_compiling:$ac_tool_warned in
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8238 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8239 ac_tool_warned=yes ;;
8241 OTOOL64=$ac_ct_OTOOL64
8244 OTOOL64="$ac_cv_prog_OTOOL64"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8274 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8275 if ${lt_cv_apple_cc_single_mod+:} false; then :
8276 $as_echo_n "(cached
) " >&6
8278 lt_cv_apple_cc_single_mod=no
8279 if test -z "${LT_MULTI_MODULE}"; then
8280 # By default we will add the -single_module flag. You can override
8281 # by either setting the environment variable LT_MULTI_MODULE
8282 # non-empty at configure time, or by adding -multi_module to the
8284 rm -rf libconftest.dylib*
8285 echo "int foo
(void
){return 1;}" > conftest.c
8286 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8287 -dynamiclib -Wl,-single_module conftest.c
" >&5
8288 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8289 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8291 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8292 lt_cv_apple_cc_single_mod=yes
8294 cat conftest.err >&5
8296 rm -rf libconftest.dylib*
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8301 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8303 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8304 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8305 $as_echo_n "(cached
) " >&6
8307 lt_cv_ld_exported_symbols_list=no
8308 save_LDFLAGS=$LDFLAGS
8309 echo "_main
" > conftest.sym
8310 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8322 if ac_fn_c_try_link "$LINENO"; then :
8323 lt_cv_ld_exported_symbols_list=yes
8325 lt_cv_ld_exported_symbols_list=no
8327 rm -f core conftest.err conftest.$ac_objext \
8328 conftest$ac_exeext conftest.$ac_ext
8329 LDFLAGS="$save_LDFLAGS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8333 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8335 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8336 if ${lt_cv_ld_force_load+:} false; then :
8337 $as_echo_n "(cached
) " >&6
8339 lt_cv_ld_force_load=no
8340 cat > conftest.c << _LT_EOF
8341 int forced_loaded() { return 2;}
8343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8345 echo "$AR cru libconftest.a conftest.o
" >&5
8346 $AR cru libconftest.a conftest.o 2>&5
8347 cat > conftest.c << _LT_EOF
8348 int main() { return 0;}
8350 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8351 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8353 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8354 lt_cv_ld_force_load=yes
8356 cat conftest.err >&5
8358 rm -f conftest.err libconftest.a conftest conftest.c
8359 rm -rf conftest.dSYM
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8363 $as_echo "$lt_cv_ld_force_load" >&6; }
8364 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8365 # build without first building modern cctools / linker.
8366 case $host_cpu-$host_os in
8367 *-rhapsody* | *-darwin1.[012])
8368 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8372 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8373 # deployment target is forced to an earlier version.
8374 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8375 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8378 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8385 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8386 _lt_dar_single_mod='$single_module'
8388 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8389 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8391 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8393 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8394 _lt_dsymutil='~$DSYMUTIL $lib || :'
8401 for ac_header in dlfcn.h
8403 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8405 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8406 cat >>confdefs.h <<_ACEOF
8407 #define HAVE_DLFCN_H 1
8416 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8417 as_ac_Header=`$as_echo "ac_cv_header_dirent_
$ac_hdr" | $as_tr_sh`
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_hdr that defines DIR
" >&5
8419 $as_echo_n "checking
for $ac_hdr that defines DIR...
" >&6; }
8420 if eval \${$as_ac_Header+:} false; then :
8421 $as_echo_n "(cached
) " >&6
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <sys/types.h>
8437 if ac_fn_c_try_compile "$LINENO"; then :
8438 eval "$as_ac_Header=yes"
8440 eval "$as_ac_Header=no
"
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 eval ac_res=\$$as_ac_Header
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8446 $as_echo "$ac_res" >&6; }
8447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8448 cat >>confdefs.h <<_ACEOF
8449 #define `$as_echo "HAVE_
$ac_hdr" | $as_tr_cpp` 1
8452 ac_header_dirent=$ac_hdr; break
8456 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8457 if test $ac_header_dirent = dirent.h; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8459 $as_echo_n "checking
for library containing opendir...
" >&6; }
8460 if ${ac_cv_search_opendir+:} false; then :
8461 $as_echo_n "(cached
) " >&6
8463 ac_func_search_save_LIBS=$LIBS
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8467 /* Override any GCC internal prototype to avoid an error.
8468 Use char because int might match the return type of a GCC
8469 builtin and then its argument prototype would still apply. */
8482 for ac_lib in '' dir; do
8483 if test -z "$ac_lib"; then
8484 ac_res="none required
"
8487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8489 if ac_fn_c_try_link "$LINENO"; then :
8490 ac_cv_search_opendir=$ac_res
8492 rm -f core conftest.err conftest.$ac_objext \
8494 if ${ac_cv_search_opendir+:} false; then :
8498 if ${ac_cv_search_opendir+:} false; then :
8501 ac_cv_search_opendir=no
8504 LIBS=$ac_func_search_save_LIBS
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8507 $as_echo "$ac_cv_search_opendir" >&6; }
8508 ac_res=$ac_cv_search_opendir
8509 if test "$ac_res" != no; then :
8510 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for library containing opendir
" >&5
8516 $as_echo_n "checking
for library containing opendir...
" >&6; }
8517 if ${ac_cv_search_opendir+:} false; then :
8518 $as_echo_n "(cached
) " >&6
8520 ac_func_search_save_LIBS=$LIBS
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8524 /* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8539 for ac_lib in '' x; do
8540 if test -z "$ac_lib"; then
8541 ac_res="none required
"
8544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 ac_cv_search_opendir=$ac_res
8549 rm -f core conftest.err conftest.$ac_objext \
8551 if ${ac_cv_search_opendir+:} false; then :
8555 if ${ac_cv_search_opendir+:} false; then :
8558 ac_cv_search_opendir=no
8561 LIBS=$ac_func_search_save_LIBS
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_search_opendir" >&5
8564 $as_echo "$ac_cv_search_opendir" >&6; }
8565 ac_res=$ac_cv_search_opendir
8566 if test "$ac_res" != no; then :
8567 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
8576 ac_fn_c_check_member "$LINENO" "struct stat
" "st_blksize
" "ac_cv_member_struct_stat_st_blksize
" "$ac_includes_default"
8577 if test "x
$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8579 cat >>confdefs.h <<_ACEOF
8580 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8584 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8589 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8590 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8592 cat >>confdefs.h
<<_ACEOF
8593 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8597 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8600 case " $LIBOBJS " in
8601 *" fileblocks.$ac_objext "* ) ;;
8602 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
8609 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8610 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
8612 cat >>confdefs.h
<<_ACEOF
8613 #define HAVE_STRUCT_STAT_ST_RDEV 1
8617 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8622 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8623 #include <$ac_cv_struct_tm>
8626 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
8628 cat >>confdefs.h
<<_ACEOF
8629 #define HAVE_STRUCT_TM_TM_ZONE 1
8635 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8637 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8640 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8642 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
8648 cat >>confdefs.h
<<_ACEOF
8649 #define HAVE_DECL_TZNAME $ac_have_decl
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8653 $as_echo_n "checking for tzname... " >&6; }
8654 if ${ac_cv_var_tzname+:} false
; then :
8655 $as_echo_n "(cached) " >&6
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 #if !HAVE_DECL_TZNAME
8661 extern char *tzname[];
8667 return tzname[0][0];
8672 if ac_fn_c_try_link
"$LINENO"; then :
8673 ac_cv_var_tzname
=yes
8677 rm -f core conftest.err conftest.
$ac_objext \
8678 conftest
$ac_exeext conftest.
$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8681 $as_echo "$ac_cv_var_tzname" >&6; }
8682 if test $ac_cv_var_tzname = yes; then
8684 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8690 ac_fn_c_check_member
"$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8691 #include <sys/types.h>
8693 #include <sys/stat.h>
8695 if test "x$ac_cv_member_struct_stat_st_dev" = xyes
; then :
8697 cat >>confdefs.h
<<_ACEOF
8698 #define HAVE_STRUCT_STAT_ST_DEV 1
8703 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8704 #include <sys/types.h>
8706 #include <sys/stat.h>
8708 if test "x$ac_cv_member_struct_stat_st_ino" = xyes
; then :
8710 cat >>confdefs.h
<<_ACEOF
8711 #define HAVE_STRUCT_STAT_ST_INO 1
8716 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8717 #include <sys/types.h>
8719 #include <sys/stat.h>
8721 if test "x$ac_cv_member_struct_stat_st_mode" = xyes
; then :
8723 cat >>confdefs.h
<<_ACEOF
8724 #define HAVE_STRUCT_STAT_ST_MODE 1
8729 ac_fn_c_check_member
"$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8730 #include <sys/types.h>
8732 #include <sys/stat.h>
8734 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes
; then :
8736 cat >>confdefs.h
<<_ACEOF
8737 #define HAVE_STRUCT_STAT_ST_NLINK 1
8742 ac_fn_c_check_member
"$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8743 #include <sys/types.h>
8745 #include <sys/stat.h>
8747 if test "x$ac_cv_member_struct_stat_st_uid" = xyes
; then :
8749 cat >>confdefs.h
<<_ACEOF
8750 #define HAVE_STRUCT_STAT_ST_UID 1
8755 ac_fn_c_check_member
"$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8756 #include <sys/types.h>
8758 #include <sys/stat.h>
8760 if test "x$ac_cv_member_struct_stat_st_gid" = xyes
; then :
8762 cat >>confdefs.h
<<_ACEOF
8763 #define HAVE_STRUCT_STAT_ST_GID 1
8768 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8769 #include <sys/types.h>
8771 #include <sys/stat.h>
8773 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
8775 cat >>confdefs.h
<<_ACEOF
8776 #define HAVE_STRUCT_STAT_ST_RDEV 1
8781 ac_fn_c_check_member
"$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8782 #include <sys/types.h>
8784 #include <sys/stat.h>
8786 if test "x$ac_cv_member_struct_stat_st_size" = xyes
; then :
8788 cat >>confdefs.h
<<_ACEOF
8789 #define HAVE_STRUCT_STAT_ST_SIZE 1
8794 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8795 #include <sys/types.h>
8797 #include <sys/stat.h>
8799 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
8801 cat >>confdefs.h
<<_ACEOF
8802 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8807 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8808 #include <sys/types.h>
8810 #include <sys/stat.h>
8812 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
8814 cat >>confdefs.h
<<_ACEOF
8815 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8820 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8821 #include <sys/types.h>
8823 #include <sys/stat.h>
8825 if test "x$ac_cv_member_struct_stat_st_atime" = xyes
; then :
8827 cat >>confdefs.h
<<_ACEOF
8828 #define HAVE_STRUCT_STAT_ST_ATIME 1
8833 ac_fn_c_check_member
"$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8834 #include <sys/types.h>
8836 #include <sys/stat.h>
8838 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes
; then :
8840 cat >>confdefs.h
<<_ACEOF
8841 #define HAVE_STRUCT_STAT_ST_MTIME 1
8846 ac_fn_c_check_member
"$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8847 #include <sys/types.h>
8849 #include <sys/stat.h>
8851 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes
; then :
8853 cat >>confdefs.h
<<_ACEOF
8854 #define HAVE_STRUCT_STAT_ST_CTIME 1
8861 ac_fn_c_check_type
"$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8862 if test "x$ac_cv_type___int128" = xyes
; then :
8864 cat >>confdefs.h
<<_ACEOF
8865 #define HAVE___INT128 1
8871 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8872 #include <sys/socket.h>
8875 if test "x$ac_cv_type_socklen_t" = xyes
; then :
8877 cat >>confdefs.h
<<_ACEOF
8878 #define HAVE_SOCKLEN_T 1
8885 # The cast to long int works around a bug in the HP C Compiler
8886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8888 # This bug is HP SR number 8606223364.
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8890 $as_echo_n "checking size of void *... " >&6; }
8891 if ${ac_cv_sizeof_void_p+:} false
; then :
8892 $as_echo_n "(cached) " >&6
8894 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8897 if test "$ac_cv_type_void_p" = yes; then
8898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8900 as_fn_error
77 "cannot compute sizeof (void *)
8901 See \`config.log' for more details" "$LINENO" 5; }
8903 ac_cv_sizeof_void_p
=0
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8909 $as_echo "$ac_cv_sizeof_void_p" >&6; }
8913 cat >>confdefs.h
<<_ACEOF
8914 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8920 $as_echo_n "checking for struct statfs... " >&6; }
8921 if ${sim_cv_struct_statfs+:} false
; then :
8922 $as_echo_n "(cached) " >&6
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8927 #include <sys/types.h>
8928 #ifdef HAVE_SYS_PARAM_H
8929 #include <sys/param.h>
8931 #ifdef HAVE_SYS_MOUNT_H
8932 #include <sys/mount.h>
8934 #ifdef HAVE_SYS_VFS_H
8935 #include <sys/vfs.h>
8937 #ifdef HAVE_SYS_STATFS_H
8938 #include <sys/statfs.h>
8950 if ac_fn_c_try_compile
"$LINENO"; then :
8951 sim_cv_struct_statfs
="yes"
8953 sim_cv_struct_statfs
="no"
8955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8958 $as_echo "$sim_cv_struct_statfs" >&6; }
8959 if test x
"sim_cv_struct_statfs" = x
"yes"; then :
8961 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8967 $as_echo_n "checking if union semun defined... " >&6; }
8968 if ${sim_cv_has_union_semun+:} false
; then :
8969 $as_echo_n "(cached) " >&6
8971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8974 #include <sys/types.h>
8975 #include <sys/ipc.h>
8976 #include <sys/sem.h>
8987 if ac_fn_c_try_compile
"$LINENO"; then :
8988 sim_cv_has_union_semun
="yes"
8990 sim_cv_has_union_semun
="no"
8992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8995 $as_echo "$sim_cv_has_union_semun" >&6; }
8996 if test x
"$sim_cv_has_union_semun" = x
"yes"; then :
8998 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
9004 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
9005 if ${sim_cv_sysv_sem+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9011 #include <sys/types.h>
9012 #include <sys/ipc.h>
9013 #include <sys/sem.h>
9014 #ifndef HAVE_UNION_SEMUN
9017 struct semid_ds *buf;
9026 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9029 arg.val = 0; /* avoid implicit type cast to union */
9030 if (semctl(id, 0, IPC_RMID, arg) == -1)
9037 if ac_fn_c_try_compile
"$LINENO"; then :
9038 sim_cv_sysv_sem
="yes"
9040 sim_cv_sysv_sem
="no"
9042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
9045 $as_echo "$sim_cv_sysv_sem" >&6; }
9046 if test x
"$sim_cv_sysv_sem" = x
"yes"; then :
9048 $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
9054 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
9055 if ${sim_cv_sysv_shm+:} false
; then :
9056 $as_echo_n "(cached) " >&6
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 #include <sys/types.h>
9062 #include <sys/ipc.h>
9063 #include <sys/shm.h>
9068 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
9071 if (shmctl(id, IPC_RMID, 0) == -1)
9078 if ac_fn_c_try_compile
"$LINENO"; then :
9079 sim_cv_sysv_shm
="yes"
9081 sim_cv_sysv_shm
="no"
9083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
9086 $as_echo "$sim_cv_sysv_shm" >&6; }
9087 if test x
"$sim_cv_sysv_shm" = x
"yes"; then :
9089 $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
9095 $as_echo_n "checking for struct termios... " >&6; }
9096 if ${sim_cv_termios_struct+:} false
; then :
9097 $as_echo_n "(cached) " >&6
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9102 #include <sys/types.h>
9103 #include <sys/termios.h>
9108 static struct termios x;
9119 if ac_fn_c_try_compile
"$LINENO"; then :
9120 sim_cv_termios_struct
="yes"
9122 sim_cv_termios_struct
="no"
9124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
9127 $as_echo "$sim_cv_termios_struct" >&6; }
9128 if test $sim_cv_termios_struct = yes; then
9130 $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
9134 if test "$sim_cv_termios_struct" = "yes"; then
9135 if ${sim_cv_termios_cline+:} false
; then :
9136 $as_echo_n "(cached) " >&6
9139 ac_fn_c_check_member
"$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
9140 #include <sys/types.h>
9141 #include <sys/termios.h>
9144 if test "x$ac_cv_member_struct_termios_c_line" = xyes
; then :
9145 sim_cv_termios_cline
="yes"
9147 sim_cv_termios_cline
="no"
9150 if test $sim_cv_termios_cline = yes; then
9152 $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
9156 sim_cv_termios_cline
=no
9159 if test "$sim_cv_termios_struct" != "yes"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
9161 $as_echo_n "checking for struct termio... " >&6; }
9162 if ${sim_cv_termio_struct+:} false
; then :
9163 $as_echo_n "(cached) " >&6
9165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/termio.h>
9174 static struct termio x;
9185 if ac_fn_c_try_compile
"$LINENO"; then :
9186 sim_cv_termio_struct
="yes"
9188 sim_cv_termio_struct
="no"
9190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
9193 $as_echo "$sim_cv_termio_struct" >&6; }
9194 if test $sim_cv_termio_struct = yes; then
9196 $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
9200 sim_cv_termio_struct
=no
9203 if test "$sim_cv_termio_struct" = "yes"; then
9204 if ${sim_cv_termio_cline+:} false
; then :
9205 $as_echo_n "(cached) " >&6
9208 ac_fn_c_check_member
"$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
9209 #include <sys/types.h>
9210 #include <sys/termio.h>
9213 if test "x$ac_cv_member_struct_termio_c_line" = xyes
; then :
9214 sim_cv_termio_cline
="yes"
9216 sim_cv_termio_cline
="no"
9219 if test $sim_cv_termio_cline = yes; then
9221 $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
9225 sim_cv_termio_cline
=no
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
9229 $as_echo_n "checking type of array argument to getgroups... " >&6; }
9230 if ${ac_cv_type_getgroups+:} false
; then :
9231 $as_echo_n "(cached) " >&6
9233 if test "$cross_compiling" = yes; then :
9234 ac_cv_type_getgroups
=cross
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 /* Thanks to Mike Rendell for this test. */
9239 $ac_includes_default
9242 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9249 union { gid_t gval; long int lval; } val;
9252 for (i = 0; i < NGID; i++)
9253 gidset[i] = val.gval;
9254 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9256 /* Exit non-zero if getgroups seems to require an array of ints. This
9257 happens when gid_t is short int but getgroups modifies an array
9259 return n > 0 && gidset[n] != val.gval;
9262 if ac_fn_c_try_run
"$LINENO"; then :
9263 ac_cv_type_getgroups
=gid_t
9265 ac_cv_type_getgroups
=int
9267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9271 if test $ac_cv_type_getgroups = cross
; then
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9278 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
9279 ac_cv_type_getgroups
=gid_t
9281 ac_cv_type_getgroups
=int
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9288 $as_echo "$ac_cv_type_getgroups" >&6; }
9290 cat >>confdefs.h
<<_ACEOF
9291 #define GETGROUPS_T $ac_cv_type_getgroups
9295 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9296 if test "x$ac_cv_type_mode_t" = xyes
; then :
9300 cat >>confdefs.h
<<_ACEOF
9306 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9307 if test "x$ac_cv_type_off_t" = xyes
; then :
9311 cat >>confdefs.h
<<_ACEOF
9312 #define off_t long int
9317 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9318 if test "x$ac_cv_type_pid_t" = xyes
; then :
9322 cat >>confdefs.h
<<_ACEOF
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9329 $as_echo_n "checking return type of signal handlers... " >&6; }
9330 if ${ac_cv_type_signal+:} false
; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9335 #include <sys/types.h>
9341 return *(signal (0, 0)) (0) == 1;
9346 if ac_fn_c_try_compile
"$LINENO"; then :
9347 ac_cv_type_signal
=int
9349 ac_cv_type_signal
=void
9351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9354 $as_echo "$ac_cv_type_signal" >&6; }
9356 cat >>confdefs.h
<<_ACEOF
9357 #define RETSIGTYPE $ac_cv_type_signal
9361 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9362 if test "x$ac_cv_type_size_t" = xyes
; then :
9366 cat >>confdefs.h
<<_ACEOF
9367 #define size_t unsigned int
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9373 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9374 if ${ac_cv_type_uid_t+:} false
; then :
9375 $as_echo_n "(cached) " >&6
9377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include <sys/types.h>
9382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9383 $EGREP "uid_t" >/dev
/null
2>&1; then :
9384 ac_cv_type_uid_t
=yes
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9392 $as_echo "$ac_cv_type_uid_t" >&6; }
9393 if test $ac_cv_type_uid_t = no
; then
9395 $as_echo "#define uid_t int" >>confdefs.h
9398 $as_echo "#define gid_t int" >>confdefs.h
9417 # Check whether --enable-shared was given.
9418 if test "${enable_shared+set}" = set; then :
9419 enableval
=$enable_shared; p
=${PACKAGE-default}
9421 yes) enable_shared
=yes ;;
9422 no
) enable_shared
=no
;;
9425 # Look at the argument we got. We use all the common list separators.
9426 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9427 for pkg
in $enableval; do
9429 if test "X$pkg" = "X$p"; then
9448 # Check whether --enable-static was given.
9449 if test "${enable_static+set}" = set; then :
9450 enableval
=$enable_static; p
=${PACKAGE-default}
9452 yes) enable_static
=yes ;;
9453 no
) enable_static
=no
;;
9456 # Look at the argument we got. We use all the common list separators.
9457 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9458 for pkg
in $enableval; do
9460 if test "X$pkg" = "X$p"; then
9480 # Check whether --with-pic was given.
9481 if test "${with_pic+set}" = set; then :
9482 withval
=$with_pic; pic_mode
="$withval"
9488 test -z "$pic_mode" && pic_mode
=default
9496 # Check whether --enable-fast-install was given.
9497 if test "${enable_fast_install+set}" = set; then :
9498 enableval
=$enable_fast_install; p
=${PACKAGE-default}
9500 yes) enable_fast_install
=yes ;;
9501 no
) enable_fast_install
=no
;;
9503 enable_fast_install
=no
9504 # Look at the argument we got. We use all the common list separators.
9505 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9506 for pkg
in $enableval; do
9508 if test "X$pkg" = "X$p"; then
9509 enable_fast_install
=yes
9516 enable_fast_install
=yes
9529 # This can be used to rebuild libtool when needed
9530 LIBTOOL_DEPS
="$ltmain"
9532 # Always use our own libtool.
9533 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
9560 test -z "$LN_S" && LN_S
="ln -s"
9575 if test -n "${ZSH_VERSION+set}" ; then
9576 setopt NO_GLOB_SUBST
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9580 $as_echo_n "checking for objdir... " >&6; }
9581 if ${lt_cv_objdir+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 rm -f .libs
2>/dev
/null
9585 mkdir .libs
2>/dev
/null
9586 if test -d .libs
; then
9589 # MS-DOS does not allow filenames that begin with a dot.
9592 rmdir .libs
2>/dev
/null
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9595 $as_echo "$lt_cv_objdir" >&6; }
9596 objdir
=$lt_cv_objdir
9602 cat >>confdefs.h
<<_ACEOF
9603 #define LT_OBJDIR "$lt_cv_objdir/"
9611 # AIX sometimes has problems with the GCC collect2 program. For some
9612 # reason, if we set the COLLECT_NAMES environment variable, the problems
9613 # vanish in a puff of smoke.
9614 if test "X${COLLECT_NAMES+set}" != Xset
; then
9616 export COLLECT_NAMES
9623 can_build_shared
=yes
9625 # All known linkers require a `.a' archive for static linking (except MSVC,
9626 # which needs '.lib').
9629 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9632 old_CFLAGS
="$CFLAGS"
9634 # Set sane defaults for various variables
9635 test -z "$CC" && CC
=cc
9636 test -z "$LTCC" && LTCC
=$CC
9637 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9638 test -z "$LD" && LD
=ld
9639 test -z "$ac_objext" && ac_objext
=o
9641 for cc_temp
in $compiler""; do
9643 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
9644 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
9649 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9652 # Only perform the check for file, if the check method requires it
9653 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9654 case $deplibs_check_method in
9656 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9658 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9659 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9660 $as_echo_n "(cached) " >&6
9664 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9667 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9668 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9669 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9670 for ac_dir
in $ac_dummy; do
9672 test -z "$ac_dir" && ac_dir
=.
9673 if test -f $ac_dir/${ac_tool_prefix}file; then
9674 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9675 if test -n "$file_magic_test_file"; then
9676 case $deplibs_check_method in
9678 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9679 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9680 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9681 $EGREP "$file_magic_regex" > /dev
/null
; then
9686 *** Warning: the command libtool uses to detect shared libraries,
9687 *** $file_magic_cmd, produces output that libtool cannot recognize.
9688 *** The result is that libtool may fail to recognize shared libraries
9689 *** as such. This will affect the creation of libtool libraries that
9690 *** depend on shared libraries, but programs linked with such libtool
9691 *** libraries will work regardless of this problem. Nevertheless, you
9692 *** may want to report the problem to your system manager and/or to
9693 *** bug-libtool@gnu.org
9703 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9708 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9709 if test -n "$MAGIC_CMD"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9711 $as_echo "$MAGIC_CMD" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9721 if test -z "$lt_cv_path_MAGIC_CMD"; then
9722 if test -n "$ac_tool_prefix"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9724 $as_echo_n "checking for file... " >&6; }
9725 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9726 $as_echo_n "(cached) " >&6
9730 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9733 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9734 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9735 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9736 for ac_dir
in $ac_dummy; do
9738 test -z "$ac_dir" && ac_dir
=.
9739 if test -f $ac_dir/file; then
9740 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
9741 if test -n "$file_magic_test_file"; then
9742 case $deplibs_check_method in
9744 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9745 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9746 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
9747 $EGREP "$file_magic_regex" > /dev
/null
; then
9752 *** Warning: the command libtool uses to detect shared libraries,
9753 *** $file_magic_cmd, produces output that libtool cannot recognize.
9754 *** The result is that libtool may fail to recognize shared libraries
9755 *** as such. This will affect the creation of libtool libraries that
9756 *** depend on shared libraries, but programs linked with such libtool
9757 *** libraries will work regardless of this problem. Nevertheless, you
9758 *** may want to report the problem to your system manager and/or to
9759 *** bug-libtool@gnu.org
9769 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9774 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9775 if test -n "$MAGIC_CMD"; then
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9777 $as_echo "$MAGIC_CMD" >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9793 # Use C for the default configuration in the libtool script
9797 ac_cpp
='$CPP $CPPFLAGS'
9798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9803 # Source file extension for C test sources.
9806 # Object file extension for compiled C test sources.
9810 # Code to be used in simple compile tests
9811 lt_simple_compile_test_code
="int some_variable = 0;"
9813 # Code to be used in simple link tests
9814 lt_simple_link_test_code
='int main(){return(0);}'
9822 # If no C compiler was specified, use CC.
9825 # If no C compiler flags were specified, use CFLAGS.
9826 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9828 # Allow CC to be a program name with arguments.
9831 # Save the default compiler, since it gets overwritten when the other
9832 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9833 compiler_DEFAULT
=$CC
9835 # save warnings/boilerplate of simple test code
9836 ac_outfile
=conftest.
$ac_objext
9837 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9838 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9839 _lt_compiler_boilerplate
=`cat conftest.err`
9842 ac_outfile
=conftest.
$ac_objext
9843 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9844 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9845 _lt_linker_boilerplate
=`cat conftest.err`
9850 ## There is no encapsulation within the following macros, do not change
9851 ## the running order or otherwise move them around unless you know exactly
9852 ## what you are doing...
9853 if test -n "$compiler"; then
9855 lt_prog_compiler_no_builtin_flag
=
9857 if test "$GCC" = yes; then
9858 case $cc_basename in
9860 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9862 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9866 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9867 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9868 $as_echo_n "(cached) " >&6
9870 lt_cv_prog_compiler_rtti_exceptions
=no
9871 ac_outfile
=conftest.
$ac_objext
9872 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9873 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9874 # Insert the option either (1) after the last *FLAGS variable, or
9875 # (2) before a word containing "conftest.", or (3) at the end.
9876 # Note that $ac_compile itself does not contain backslashes and begins
9877 # with a dollar sign (not a hyphen), so the echo should work correctly.
9878 # The option is referenced via a variable to avoid confusing sed.
9879 lt_compile
=`echo "$ac_compile" | $SED \
9880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882 -e 's:$: $lt_compiler_flag:'`
9883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9884 (eval "$lt_compile" 2>conftest.err
)
9886 cat conftest.err
>&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 if (exit $ac_status) && test -s "$ac_outfile"; then
9889 # The compiler can only warn and ignore the option if not recognized
9890 # So say no if there are warnings other than the usual output.
9891 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9892 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9893 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9894 lt_cv_prog_compiler_rtti_exceptions
=yes
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9901 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9903 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9904 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9916 lt_prog_compiler_wl
=
9917 lt_prog_compiler_pic
=
9918 lt_prog_compiler_static
=
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9921 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9923 if test "$GCC" = yes; then
9924 lt_prog_compiler_wl
='-Wl,'
9925 lt_prog_compiler_static
='-static'
9929 # All AIX code is PIC.
9930 if test "$host_cpu" = ia64
; then
9931 # AIX 5 now supports IA64 processor
9932 lt_prog_compiler_static
='-Bstatic'
9934 lt_prog_compiler_pic
='-fPIC'
9940 # see comment about AmigaOS4 .so support
9941 lt_prog_compiler_pic
='-fPIC'
9944 # FIXME: we need at least 68020 code to build shared libraries, but
9945 # adding the `-m68020' flag to GCC prevents building anything better,
9947 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9952 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9953 # PIC is the default for these OSes.
9956 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9957 # This hack is so that the source file can tell whether it is being
9958 # built for inclusion in a dll (and should export symbols for example).
9959 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9960 # (--disable-auto-import) libraries
9961 lt_prog_compiler_pic
='-DDLL_EXPORT'
9964 darwin
* | rhapsody
*)
9965 # PIC is the default on this platform
9966 # Common symbols not allowed in MH_DYLIB files
9967 lt_prog_compiler_pic
='-fno-common'
9971 # PIC is the default for Haiku.
9972 # The "-static" flag exists, but is broken.
9973 lt_prog_compiler_static
=
9977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9979 # sets the default TLS model and affects inlining.
9985 lt_prog_compiler_pic
='-fPIC'
9991 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9992 # Instead, we relocate shared libraries at runtime.
9996 # Just because we use GCC doesn't mean we suddenly get shared libraries
9997 # on systems that don't support them.
9998 lt_prog_compiler_can_build_shared
=no
10003 # QNX uses GNU C++, but need to define -shared option too, otherwise
10004 # it will coredump.
10005 lt_prog_compiler_pic
='-fPIC -shared'
10009 if test -d /usr
/nec
; then
10010 lt_prog_compiler_pic
=-Kconform_pic
10015 lt_prog_compiler_pic
='-fPIC'
10019 case $cc_basename in
10020 nvcc
*) # Cuda Compiler Driver 2.2
10021 lt_prog_compiler_wl
='-Xlinker '
10022 lt_prog_compiler_pic
='-Xcompiler -fPIC'
10026 # PORTME Check for flag to pass linker flags through the system compiler.
10029 lt_prog_compiler_wl
='-Wl,'
10030 if test "$host_cpu" = ia64
; then
10031 # AIX 5 now supports IA64 processor
10032 lt_prog_compiler_static
='-Bstatic'
10034 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
10038 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
10039 # This hack is so that the source file can tell whether it is being
10040 # built for inclusion in a dll (and should export symbols for example).
10041 lt_prog_compiler_pic
='-DDLL_EXPORT'
10044 hpux9
* | hpux10
* | hpux11
*)
10045 lt_prog_compiler_wl
='-Wl,'
10046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10047 # not for PA HP-UX.
10053 lt_prog_compiler_pic
='+Z'
10056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10057 lt_prog_compiler_static
='${wl}-a ${wl}archive'
10060 irix5
* | irix6
* | nonstopux
*)
10061 lt_prog_compiler_wl
='-Wl,'
10062 # PIC (with -KPIC) is the default.
10063 lt_prog_compiler_static
='-non_shared'
10066 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10067 case $cc_basename in
10068 # old Intel for x86_64 which still supported -KPIC.
10070 lt_prog_compiler_wl
='-Wl,'
10071 lt_prog_compiler_pic
='-KPIC'
10072 lt_prog_compiler_static
='-static'
10074 # icc used to be incompatible with GCC.
10075 # ICC 10 doesn't accept -KPIC any more.
10077 lt_prog_compiler_wl
='-Wl,'
10078 lt_prog_compiler_pic
='-fPIC'
10079 lt_prog_compiler_static
='-static'
10081 # Lahey Fortran 8.1.
10083 lt_prog_compiler_wl
='-Wl,'
10084 lt_prog_compiler_pic
='--shared'
10085 lt_prog_compiler_static
='--static'
10087 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10088 # Portland Group compilers (*not* the Pentium gcc compiler,
10089 # which looks to be a dead project)
10090 lt_prog_compiler_wl
='-Wl,'
10091 lt_prog_compiler_pic
='-fpic'
10092 lt_prog_compiler_static
='-Bstatic'
10095 lt_prog_compiler_wl
='-Wl,'
10096 # All Alpha code is PIC.
10097 lt_prog_compiler_static
='-non_shared'
10099 xl
* | bgxl
* | bgf
* | mpixl
*)
10100 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10101 lt_prog_compiler_wl
='-Wl,'
10102 lt_prog_compiler_pic
='-qpic'
10103 lt_prog_compiler_static
='-qstaticlink'
10106 case `$CC -V 2>&1 | sed 5q` in
10107 *Sun\ F
* |
*Sun
*Fortran
*)
10108 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10109 lt_prog_compiler_pic
='-KPIC'
10110 lt_prog_compiler_static
='-Bstatic'
10111 lt_prog_compiler_wl
=''
10115 lt_prog_compiler_pic
='-KPIC'
10116 lt_prog_compiler_static
='-Bstatic'
10117 lt_prog_compiler_wl
='-Wl,'
10125 lt_prog_compiler_pic
='-KPIC'
10126 lt_prog_compiler_static
='-Bstatic'
10130 # QNX uses GNU C++, but need to define -shared option too, otherwise
10131 # it will coredump.
10132 lt_prog_compiler_pic
='-fPIC -shared'
10135 osf3
* | osf4
* | osf5
*)
10136 lt_prog_compiler_wl
='-Wl,'
10137 # All OSF/1 code is PIC.
10138 lt_prog_compiler_static
='-non_shared'
10142 lt_prog_compiler_static
='-non_shared'
10146 lt_prog_compiler_pic
='-KPIC'
10147 lt_prog_compiler_static
='-Bstatic'
10148 case $cc_basename in
10149 f77
* | f90
* | f95
*)
10150 lt_prog_compiler_wl
='-Qoption ld ';;
10152 lt_prog_compiler_wl
='-Wl,';;
10157 lt_prog_compiler_wl
='-Qoption ld '
10158 lt_prog_compiler_pic
='-PIC'
10159 lt_prog_compiler_static
='-Bstatic'
10162 sysv4 | sysv4.2uw2
* | sysv4.3
*)
10163 lt_prog_compiler_wl
='-Wl,'
10164 lt_prog_compiler_pic
='-KPIC'
10165 lt_prog_compiler_static
='-Bstatic'
10169 if test -d /usr
/nec
;then
10170 lt_prog_compiler_pic
='-Kconform_pic'
10171 lt_prog_compiler_static
='-Bstatic'
10175 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
10176 lt_prog_compiler_wl
='-Wl,'
10177 lt_prog_compiler_pic
='-KPIC'
10178 lt_prog_compiler_static
='-Bstatic'
10182 lt_prog_compiler_wl
='-Wl,'
10183 lt_prog_compiler_can_build_shared
=no
10187 lt_prog_compiler_pic
='-pic'
10188 lt_prog_compiler_static
='-Bstatic'
10192 lt_prog_compiler_can_build_shared
=no
10198 # For platforms which do not support PIC, -DPIC is meaningless:
10200 lt_prog_compiler_pic
=
10203 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10207 $as_echo "$lt_prog_compiler_pic" >&6; }
10215 # Check to make sure the PIC flag actually works.
10217 if test -n "$lt_prog_compiler_pic"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10219 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10220 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
10221 $as_echo_n "(cached) " >&6
10223 lt_cv_prog_compiler_pic_works
=no
10224 ac_outfile
=conftest.
$ac_objext
10225 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10226 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
10227 # Insert the option either (1) after the last *FLAGS variable, or
10228 # (2) before a word containing "conftest.", or (3) at the end.
10229 # Note that $ac_compile itself does not contain backslashes and begins
10230 # with a dollar sign (not a hyphen), so the echo should work correctly.
10231 # The option is referenced via a variable to avoid confusing sed.
10232 lt_compile
=`echo "$ac_compile" | $SED \
10233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235 -e 's:$: $lt_compiler_flag:'`
10236 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237 (eval "$lt_compile" 2>conftest.err
)
10239 cat conftest.err
>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 if (exit $ac_status) && test -s "$ac_outfile"; then
10242 # The compiler can only warn and ignore the option if not recognized
10243 # So say no if there are warnings other than the usual output.
10244 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
10245 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10246 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
10247 lt_cv_prog_compiler_pic_works
=yes
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10254 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10256 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
10257 case $lt_prog_compiler_pic in
10259 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
10262 lt_prog_compiler_pic
=
10263 lt_prog_compiler_can_build_shared
=no
10274 # Check to make sure the static flag actually works.
10276 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10279 if ${lt_cv_prog_compiler_static_works+:} false
; then :
10280 $as_echo_n "(cached) " >&6
10282 lt_cv_prog_compiler_static_works
=no
10283 save_LDFLAGS
="$LDFLAGS"
10284 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
10285 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10286 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10287 # The linker can only warn and ignore the option if not recognized
10288 # So say no if there are warnings
10289 if test -s conftest.err
; then
10290 # Append any errors to the config.log.
10291 cat conftest.err
1>&5
10292 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10293 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10294 if diff conftest.exp conftest.er2
>/dev
/null
; then
10295 lt_cv_prog_compiler_static_works
=yes
10298 lt_cv_prog_compiler_static_works
=yes
10302 LDFLAGS
="$save_LDFLAGS"
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10308 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
10311 lt_prog_compiler_static
=
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10322 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10323 $as_echo_n "(cached) " >&6
10325 lt_cv_prog_compiler_c_o
=no
10326 $RM -r conftest
2>/dev
/null
10330 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10332 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10333 # Insert the option either (1) after the last *FLAGS variable, or
10334 # (2) before a word containing "conftest.", or (3) at the end.
10335 # Note that $ac_compile itself does not contain backslashes and begins
10336 # with a dollar sign (not a hyphen), so the echo should work correctly.
10337 lt_compile
=`echo "$ac_compile" | $SED \
10338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10340 -e 's:$: $lt_compiler_flag:'`
10341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10342 (eval "$lt_compile" 2>out
/conftest.err
)
10344 cat out
/conftest.err
>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10348 # The compiler can only warn and ignore the option if not recognized
10349 # So say no if there are warnings
10350 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10351 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10352 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10353 lt_cv_prog_compiler_c_o
=yes
10358 # SGI C++ compiler will create directory out/ii_files/ for
10359 # template instantiation
10360 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10361 $RM out
/* && rmdir out
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10377 if ${lt_cv_prog_compiler_c_o+:} false
; then :
10378 $as_echo_n "(cached) " >&6
10380 lt_cv_prog_compiler_c_o
=no
10381 $RM -r conftest
2>/dev
/null
10385 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10387 lt_compiler_flag
="-o out/conftest2.$ac_objext"
10388 # Insert the option either (1) after the last *FLAGS variable, or
10389 # (2) before a word containing "conftest.", or (3) at the end.
10390 # Note that $ac_compile itself does not contain backslashes and begins
10391 # with a dollar sign (not a hyphen), so the echo should work correctly.
10392 lt_compile
=`echo "$ac_compile" | $SED \
10393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10395 -e 's:$: $lt_compiler_flag:'`
10396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10397 (eval "$lt_compile" 2>out
/conftest.err
)
10399 cat out
/conftest.err
>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
10403 # The compiler can only warn and ignore the option if not recognized
10404 # So say no if there are warnings
10405 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
10406 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
10407 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
10408 lt_cv_prog_compiler_c_o
=yes
10413 # SGI C++ compiler will create directory out/ii_files/ for
10414 # template instantiation
10415 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
10416 $RM out
/* && rmdir out
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10428 hard_links
="nottested"
10429 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
10430 # do not overwrite the value of need_locks provided by the user
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10432 $as_echo_n "checking if we can lock with hard links... " >&6; }
10435 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10437 ln conftest.a conftest.b
2>&5 || hard_links
=no
10438 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10440 $as_echo "$hard_links" >&6; }
10441 if test "$hard_links" = no
; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10459 allow_undefined_flag
=
10460 always_export_symbols
=no
10462 archive_expsym_cmds
=
10463 compiler_needs_object
=no
10464 enable_shared_with_static_runtimes
=no
10465 export_dynamic_flag_spec
=
10466 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10467 hardcode_automatic
=no
10469 hardcode_direct_absolute
=no
10470 hardcode_libdir_flag_spec
=
10471 hardcode_libdir_flag_spec_ld
=
10472 hardcode_libdir_separator
=
10473 hardcode_minus_L
=no
10474 hardcode_shlibpath_var
=unsupported
10476 link_all_deplibs
=unknown
10478 module_expsym_cmds
=
10479 old_archive_from_new_cmds
=
10480 old_archive_from_expsyms_cmds
=
10481 thread_safe_flag_spec
=
10482 whole_archive_flag_spec
=
10483 # include_expsyms should be a list of space-separated symbols to be *always*
10484 # included in the symbol list
10486 # exclude_expsyms can be an extended regexp of symbols to exclude
10487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10489 # as well as any symbol that contains `d'.
10490 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10492 # platforms (ab)use it in PIC code, but their linkers get confused if
10493 # the symbol is explicitly referenced. Since portable code cannot
10494 # rely on this symbol name, it's probably fine to never include it in
10495 # preloaded symbol tables.
10496 # Exclude shared library initialization/finalization symbols.
10497 extract_expsyms_cmds
=
10500 cygwin
* | mingw
* | pw32
* | cegcc
*)
10501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10502 # When not using gcc, we currently assume that we are using
10503 # Microsoft Visual C++.
10504 if test "$GCC" != yes; then
10509 # we just hope/assume this is gcc and not c89 (= MSVC++)
10519 # On some targets, GNU ld is compatible enough with the native linker
10520 # that we're better off using the native interface for both.
10521 lt_use_gnu_ld_interface
=no
10522 if test "$with_gnu_ld" = yes; then
10525 # The AIX port of GNU ld has always aspired to compatibility
10526 # with the native linker. However, as the warning in the GNU ld
10527 # block says, versions before 2.19.5* couldn't really create working
10528 # shared libraries, regardless of the interface used.
10529 case `$LD -v 2>&1` in
10530 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
10531 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
10532 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
10534 lt_use_gnu_ld_interface
=yes
10539 lt_use_gnu_ld_interface
=yes
10544 if test "$lt_use_gnu_ld_interface" = yes; then
10545 # If archive_cmds runs LD, not CC, wlarc should be empty
10548 # Set some defaults for GNU ld with shared library support. These
10549 # are reset later if shared libraries are not supported. Putting them
10550 # here allows them to be overridden if necessary.
10551 runpath_var
=LD_RUN_PATH
10552 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10553 export_dynamic_flag_spec
='${wl}--export-dynamic'
10554 # ancient GNU ld didn't support --whole-archive et. al.
10555 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
10556 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10558 whole_archive_flag_spec
=
10560 supports_anon_versioning
=no
10561 case `$LD -v 2>&1` in
10562 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10563 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
10564 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10565 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10566 *\
2.11.
*) ;; # other 2.11 versions
10567 *) supports_anon_versioning
=yes ;;
10570 # See if GNU ld supports shared libraries.
10573 # On AIX/PPC, the GNU linker is very broken
10574 if test "$host_cpu" != ia64
; then
10578 *** Warning: the GNU linker, at least up to release 2.19, is reported
10579 *** to be unable to reliably create shared libraries on AIX.
10580 *** Therefore, libtool is disabling shared libraries support. If you
10581 *** really care for shared libraries, you may want to install binutils
10582 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10583 *** You will then need to restart the configuration process.
10592 # see comment about AmigaOS4 .so support
10593 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 archive_expsym_cmds
=''
10597 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)'
10598 hardcode_libdir_flag_spec
='-L$libdir'
10599 hardcode_minus_L
=yes
10605 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10606 allow_undefined_flag
=unsupported
10607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10608 # support --undefined. This deserves some investigation. FIXME
10609 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615 cygwin
* | mingw
* | pw32
* | cegcc
*)
10616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10617 # as there is no search path for DLLs.
10618 hardcode_libdir_flag_spec
='-L$libdir'
10619 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10620 allow_undefined_flag
=unsupported
10621 always_export_symbols
=no
10622 enable_shared_with_static_runtimes
=yes
10623 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10625 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10626 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10627 # If the export-symbols file already is a .def file (1st line
10628 # is EXPORTS), use it as is; otherwise, prepend...
10629 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10630 cp $export_symbols $output_objdir/$soname.def;
10632 echo EXPORTS > $output_objdir/$soname.def;
10633 cat $export_symbols >> $output_objdir/$soname.def;
10635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10642 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10643 link_all_deplibs
=yes
10648 hardcode_shlibpath_var
=no
10649 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10650 export_dynamic_flag_spec
='${wl}-E'
10651 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10652 # Instead, shared libraries are loaded at an image base (0x10000000 by
10653 # default) and relocated if they conflict, which is a slow very memory
10654 # consuming and fragmenting process. To avoid this, we pick a random,
10655 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10656 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10657 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10658 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'
10661 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10663 if test "$host_os" = linux-dietlibc
; then
10664 case $cc_basename in
10665 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10668 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10669 && test "$tmp_diet" = no
10671 tmp_addflag
=' $pic_flag'
10672 tmp_sharedflag
='-shared'
10673 case $cc_basename,$host_cpu in
10674 pgcc
*) # Portland Group C compiler
10675 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'
10676 tmp_addflag
=' $pic_flag'
10678 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10679 # Portland Group f77 and f90 compilers
10680 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'
10681 tmp_addflag
=' $pic_flag -Mnomain' ;;
10682 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10683 tmp_addflag
=' -i_dynamic' ;;
10684 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10685 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10686 ifc
* | ifort
*) # Intel Fortran compiler
10687 tmp_addflag
=' -nofor_main' ;;
10688 lf95
*) # Lahey Fortran 8.1
10689 whole_archive_flag_spec
=
10690 tmp_sharedflag
='--shared' ;;
10691 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10692 tmp_sharedflag
='-qmkshrobj'
10694 nvcc
*) # Cuda Compiler Driver 2.2
10695 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'
10696 compiler_needs_object
=yes
10699 case `$CC -V 2>&1 | sed 5q` in
10700 *Sun\ C
*) # Sun C 5.9
10701 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'
10702 compiler_needs_object
=yes
10703 tmp_sharedflag
='-G' ;;
10704 *Sun\ F
*) # Sun Fortran 8.3
10705 tmp_sharedflag
='-G' ;;
10707 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709 if test "x$supports_anon_versioning" = xyes
; then
10710 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10712 echo "local: *; };" >> $output_objdir/$libname.ver~
10713 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10716 case $cc_basename in
10717 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10718 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10719 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10720 hardcode_libdir_flag_spec
=
10721 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10722 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10723 if test "x$supports_anon_versioning" = xyes
; then
10724 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10725 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10726 echo "local: *; };" >> $output_objdir/$libname.ver~
10727 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10737 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10738 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10741 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10742 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10747 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10751 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10752 *** create shared libraries on Solaris systems. Therefore, libtool
10753 *** is disabling shared libraries support. We urge you to upgrade GNU
10754 *** binutils to release 2.9.1 or newer. Another option is to modify
10755 *** your PATH or compiler configuration so that the native linker is
10756 *** used, and then restart.
10759 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10760 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10767 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10768 case `$LD -v 2>&1` in
10769 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10773 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10774 *** reliably create shared libraries on SCO systems. Therefore, libtool
10775 *** is disabling shared libraries support. We urge you to upgrade GNU
10776 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10777 *** your PATH or compiler configuration so that the native linker is
10778 *** used, and then restart.
10783 # For security reasons, it is highly recommended that you always
10784 # use absolute paths for naming shared libraries, and exclude the
10785 # DT_RUNPATH tag from executables and libraries. But doing so
10786 # requires that you compile everything twice, which is a pain.
10787 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10788 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10789 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10799 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801 hardcode_direct
=yes
10802 hardcode_shlibpath_var
=no
10806 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10807 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10808 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10815 if test "$ld_shlibs" = no
; then
10817 hardcode_libdir_flag_spec
=
10818 export_dynamic_flag_spec
=
10819 whole_archive_flag_spec
=
10822 # PORTME fill in a description of your system's linker (not GNU ld)
10825 allow_undefined_flag
=unsupported
10826 always_export_symbols
=yes
10827 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'
10828 # Note: this linker hardcodes the directories in LIBPATH if there
10829 # are no directories specified by -L.
10830 hardcode_minus_L
=yes
10831 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10832 # Neither direct hardcoding nor static linking is supported with a
10834 hardcode_direct
=unsupported
10839 if test "$host_cpu" = ia64
; then
10840 # On IA64, the linker does run time linking by default, so we don't
10841 # have to do anything special.
10842 aix_use_runtimelinking
=no
10843 exp_sym_flag
='-Bexport'
10846 # If we're using GNU nm, then we don't want the "-C" option.
10847 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10848 # Also, AIX nm treats weak defined symbols like other global
10849 # defined symbols, whereas GNU nm marks them as "W".
10850 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10851 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'
10853 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10855 aix_use_runtimelinking
=no
10857 # Test if we are trying to use run time linking or normal
10858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10859 # need to do runtime linking.
10860 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10861 for ld_flag
in $LDFLAGS; do
10862 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10863 aix_use_runtimelinking
=yes
10870 exp_sym_flag
='-bexport'
10871 no_entry_flag
='-bnoentry'
10874 # When large executables or shared objects are built, AIX ld can
10875 # have problems creating the table of contents. If linking a library
10876 # or program results in "error TOC overflow" add -mminimal-toc to
10877 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10878 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10881 hardcode_direct
=yes
10882 hardcode_direct_absolute
=yes
10883 hardcode_libdir_separator
=':'
10884 link_all_deplibs
=yes
10885 file_list_spec
='${wl}-f,'
10887 if test "$GCC" = yes; then
10888 case $host_os in aix4.
[012]|aix4.
[012].
*)
10889 # We only want to do this on AIX 4.2 and lower, the check
10890 # below for broken collect2 doesn't work under 4.3+
10891 collect2name
=`${CC} -print-prog-name=collect2`
10892 if test -f "$collect2name" &&
10893 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10895 # We have reworked collect2
10898 # We have old collect2
10899 hardcode_direct
=unsupported
10900 # It fails to find uninstalled libraries when the uninstalled
10901 # path is not listed in the libpath. Setting hardcode_minus_L
10902 # to unsupported forces relinking
10903 hardcode_minus_L
=yes
10904 hardcode_libdir_flag_spec
='-L$libdir'
10905 hardcode_libdir_separator
=
10909 shared_flag
='-shared'
10910 if test "$aix_use_runtimelinking" = yes; then
10911 shared_flag
="$shared_flag "'${wl}-G'
10915 if test "$host_cpu" = ia64
; then
10916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10917 # chokes on -Wl,-G. The following line is correct:
10920 if test "$aix_use_runtimelinking" = yes; then
10921 shared_flag
='${wl}-G'
10923 shared_flag
='${wl}-bM:SRE'
10928 export_dynamic_flag_spec
='${wl}-bexpall'
10929 # It seems that -bexpall does not export symbols beginning with
10930 # underscore (_), so it is better to generate a list of symbols to export.
10931 always_export_symbols
=yes
10932 if test "$aix_use_runtimelinking" = yes; then
10933 # Warning - without using the other runtime loading flags (-brtl),
10934 # -berok will link without error, but may produce a broken library.
10935 allow_undefined_flag
='-berok'
10936 # Determine the default libpath from the value encoded in an
10937 # empty executable.
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10949 if ac_fn_c_try_link
"$LINENO"; then :
10951 lt_aix_libpath_sed
='
10952 /Import File Strings/,/^$/ {
10958 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10959 # Check for a 64-bit object if we didn't find anything.
10960 if test -z "$aix_libpath"; then
10961 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10964 rm -f core conftest.err conftest.
$ac_objext \
10965 conftest
$ac_exeext conftest.
$ac_ext
10966 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10968 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10969 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"
10971 if test "$host_cpu" = ia64
; then
10972 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10973 allow_undefined_flag
="-z nodefs"
10974 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"
10976 # Determine the default libpath from the value encoded in an
10977 # empty executable.
10978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10989 if ac_fn_c_try_link
"$LINENO"; then :
10991 lt_aix_libpath_sed
='
10992 /Import File Strings/,/^$/ {
10998 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10999 # Check for a 64-bit object if we didn't find anything.
11000 if test -z "$aix_libpath"; then
11001 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11004 rm -f core conftest.err conftest.
$ac_objext \
11005 conftest
$ac_exeext conftest.
$ac_ext
11006 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11008 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11009 # Warning - without using the other run time loading flags,
11010 # -berok will link without error, but may produce a broken library.
11011 no_undefined_flag
=' ${wl}-bernotok'
11012 allow_undefined_flag
=' ${wl}-berok'
11013 if test "$with_gnu_ld" = yes; then
11014 # We only use this code for GNU lds that support --whole-archive.
11015 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11017 # Exported symbols can be pulled into shared objects from archives
11018 whole_archive_flag_spec
='$convenience'
11020 archive_cmds_need_lc
=yes
11021 # This is similar to how AIX traditionally builds its shared libraries.
11022 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'
11030 # see comment about AmigaOS4 .so support
11031 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 archive_expsym_cmds
=''
11035 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)'
11036 hardcode_libdir_flag_spec
='-L$libdir'
11037 hardcode_minus_L
=yes
11043 export_dynamic_flag_spec
=-rdynamic
11046 cygwin
* | mingw
* | pw32
* | cegcc
*)
11047 # When not using gcc, we currently assume that we are using
11048 # Microsoft Visual C++.
11049 # hardcode_libdir_flag_spec is actually meaningless, as there is
11050 # no search path for DLLs.
11051 hardcode_libdir_flag_spec
=' '
11052 allow_undefined_flag
=unsupported
11053 # Tell ltmain to make .lib files, not .a files.
11055 # Tell ltmain to make .dll files, not .so files.
11057 # FIXME: Setting linknames here is a bad hack.
11058 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11059 # The linker will automatically build a .lib file if we build a DLL.
11060 old_archive_from_new_cmds
='true'
11061 # FIXME: Should let the user specify the lib program.
11062 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11063 fix_srcfile_path
='`cygpath -w "$srcfile"`'
11064 enable_shared_with_static_runtimes
=yes
11067 darwin
* | rhapsody
*)
11070 archive_cmds_need_lc
=no
11072 hardcode_automatic
=yes
11073 hardcode_shlibpath_var
=unsupported
11074 if test "$lt_cv_ld_force_load" = "yes"; then
11075 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\"`'
11077 whole_archive_flag_spec
=''
11079 link_all_deplibs
=yes
11080 allow_undefined_flag
="$_lt_dar_allow_undefined"
11081 case $cc_basename in
11082 ifort
*) _lt_dar_can_shared
=yes ;;
11083 *) _lt_dar_can_shared
=$GCC ;;
11085 if test "$_lt_dar_can_shared" = "yes"; then
11086 output_verbose_link_cmd
=func_echo_all
11087 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11088 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11089 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}"
11090 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}"
11099 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_libdir_flag_spec
='-L$libdir'
11101 hardcode_shlibpath_var
=no
11104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11105 # support. Future versions do this automatically, but an explicit c++rt0.o
11106 # does not break anything, and helps significantly (at the cost of a little
11109 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11110 hardcode_libdir_flag_spec
='-R$libdir'
11111 hardcode_direct
=yes
11112 hardcode_shlibpath_var
=no
11115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11117 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11118 hardcode_direct
=yes
11119 hardcode_minus_L
=yes
11120 hardcode_shlibpath_var
=no
11123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11124 freebsd
* | dragonfly
*)
11125 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11126 hardcode_libdir_flag_spec
='-R$libdir'
11127 hardcode_direct
=yes
11128 hardcode_shlibpath_var
=no
11132 if test "$GCC" = yes; then
11133 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'
11135 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'
11137 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11138 hardcode_libdir_separator
=:
11139 hardcode_direct
=yes
11141 # hardcode_minus_L: Not really in the search PATH,
11142 # but as the default location of the library.
11143 hardcode_minus_L
=yes
11144 export_dynamic_flag_spec
='${wl}-E'
11148 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11149 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11153 if test "$with_gnu_ld" = no
; then
11154 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11155 hardcode_libdir_flag_spec_ld
='+b $libdir'
11156 hardcode_libdir_separator
=:
11157 hardcode_direct
=yes
11158 hardcode_direct_absolute
=yes
11159 export_dynamic_flag_spec
='${wl}-E'
11160 # hardcode_minus_L: Not really in the search PATH,
11161 # but as the default location of the library.
11162 hardcode_minus_L
=yes
11167 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11170 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11173 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11176 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11182 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11189 # Older versions of the 11.00 compiler do not understand -b yet
11190 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11192 $as_echo_n "checking if $CC understands -b... " >&6; }
11193 if ${lt_cv_prog_compiler__b+:} false
; then :
11194 $as_echo_n "(cached) " >&6
11196 lt_cv_prog_compiler__b
=no
11197 save_LDFLAGS
="$LDFLAGS"
11198 LDFLAGS
="$LDFLAGS -b"
11199 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11200 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11201 # The linker can only warn and ignore the option if not recognized
11202 # So say no if there are warnings
11203 if test -s conftest.err
; then
11204 # Append any errors to the config.log.
11205 cat conftest.err
1>&5
11206 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11207 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11208 if diff conftest.exp conftest.er2
>/dev
/null
; then
11209 lt_cv_prog_compiler__b
=yes
11212 lt_cv_prog_compiler__b
=yes
11216 LDFLAGS
="$save_LDFLAGS"
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11220 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11222 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11223 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11225 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11231 if test "$with_gnu_ld" = no
; then
11232 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11233 hardcode_libdir_separator
=:
11238 hardcode_shlibpath_var
=no
11241 hardcode_direct
=yes
11242 hardcode_direct_absolute
=yes
11243 export_dynamic_flag_spec
='${wl}-E'
11245 # hardcode_minus_L: Not really in the search PATH,
11246 # but as the default location of the library.
11247 hardcode_minus_L
=yes
11253 irix5
* | irix6
* | nonstopux
*)
11254 if test "$GCC" = yes; then
11255 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'
11256 # Try to use the -exported_symbol ld option, if it does not
11257 # work, assume that -exports_file does not work either and
11258 # implicitly export all symbols.
11259 save_LDFLAGS
="$LDFLAGS"
11260 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11265 if ac_fn_c_try_link
"$LINENO"; then :
11266 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'
11269 rm -f core conftest.err conftest.
$ac_objext \
11270 conftest
$ac_exeext conftest.
$ac_ext
11271 LDFLAGS
="$save_LDFLAGS"
11273 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'
11274 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'
11276 archive_cmds_need_lc
='no'
11277 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11278 hardcode_libdir_separator
=:
11280 link_all_deplibs
=yes
11284 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11285 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11287 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11289 hardcode_libdir_flag_spec
='-R$libdir'
11290 hardcode_direct
=yes
11291 hardcode_shlibpath_var
=no
11295 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296 hardcode_direct
=yes
11297 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11298 hardcode_libdir_separator
=:
11299 hardcode_shlibpath_var
=no
11306 if test -f /usr
/libexec
/ld.so
; then
11307 hardcode_direct
=yes
11308 hardcode_shlibpath_var
=no
11309 hardcode_direct_absolute
=yes
11310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11311 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11312 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11313 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11314 export_dynamic_flag_spec
='${wl}-E'
11317 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11318 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11319 hardcode_libdir_flag_spec
='-R$libdir'
11322 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11333 hardcode_libdir_flag_spec
='-L$libdir'
11334 hardcode_minus_L
=yes
11335 allow_undefined_flag
=unsupported
11336 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'
11337 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11341 if test "$GCC" = yes; then
11342 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11343 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'
11345 allow_undefined_flag
=' -expect_unresolved \*'
11346 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'
11348 archive_cmds_need_lc
='no'
11349 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11350 hardcode_libdir_separator
=:
11353 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11354 if test "$GCC" = yes; then
11355 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11356 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'
11357 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11359 allow_undefined_flag
=' -expect_unresolved \*'
11360 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'
11361 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~
11362 $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'
11364 # Both c and cxx compiler support -rpath directly
11365 hardcode_libdir_flag_spec
='-rpath $libdir'
11367 archive_cmds_need_lc
='no'
11368 hardcode_libdir_separator
=:
11372 no_undefined_flag
=' -z defs'
11373 if test "$GCC" = yes; then
11375 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11377 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11379 case `$CC -V 2>&1` in
11382 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11384 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11388 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11389 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11390 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11394 hardcode_libdir_flag_spec
='-R$libdir'
11395 hardcode_shlibpath_var
=no
11397 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11399 # The compiler driver will combine and reorder linker options,
11400 # but understands `-z linker_flag'. GCC discards it without `$wl',
11401 # but is careful enough not to reorder.
11402 # Supported since Solaris 2.6 (maybe 2.5.1?)
11403 if test "$GCC" = yes; then
11404 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11406 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11410 link_all_deplibs
=yes
11414 if test "x$host_vendor" = xsequent
; then
11415 # Use $CC to link under sequent, because it throws in some extra .o
11416 # files that make .init and .fini sections work.
11417 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11419 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11421 hardcode_libdir_flag_spec
='-L$libdir'
11422 hardcode_direct
=yes
11423 hardcode_minus_L
=yes
11424 hardcode_shlibpath_var
=no
11428 case $host_vendor in
11430 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431 hardcode_direct
=yes # is this really true???
11434 ## LD is ld it makes a PLAMLIB
11435 ## CC just makes a GrossModule.
11436 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11437 reload_cmds
='$CC -r -o $output$reload_objs'
11441 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11442 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11445 runpath_var
='LD_RUN_PATH'
11446 hardcode_shlibpath_var
=no
11450 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451 hardcode_shlibpath_var
=no
11452 export_dynamic_flag_spec
='-Bexport'
11456 if test -d /usr
/nec
; then
11457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_shlibpath_var
=no
11459 runpath_var
=LD_RUN_PATH
11460 hardcode_runpath_var
=yes
11465 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11466 no_undefined_flag
='${wl}-z,text'
11467 archive_cmds_need_lc
=no
11468 hardcode_shlibpath_var
=no
11469 runpath_var
='LD_RUN_PATH'
11471 if test "$GCC" = yes; then
11472 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 sysv5
* | sco3.2v5
* | sco5v6
*)
11481 # Note: We can NOT use -z defs as we might desire, because we do not
11482 # link with -lc, and that would cause any symbols used from libc to
11483 # always be unresolved, which means just about no library would
11484 # ever link correctly. If we're not using GNU ld we use -z text
11485 # though, which does catch some bad symbols but isn't as heavy-handed
11487 no_undefined_flag
='${wl}-z,text'
11488 allow_undefined_flag
='${wl}-z,nodefs'
11489 archive_cmds_need_lc
=no
11490 hardcode_shlibpath_var
=no
11491 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11492 hardcode_libdir_separator
=':'
11493 link_all_deplibs
=yes
11494 export_dynamic_flag_spec
='${wl}-Bexport'
11495 runpath_var
='LD_RUN_PATH'
11497 if test "$GCC" = yes; then
11498 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11508 hardcode_libdir_flag_spec
='-L$libdir'
11509 hardcode_shlibpath_var
=no
11517 if test x
$host_vendor = xsni
; then
11519 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11520 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11527 $as_echo "$ld_shlibs" >&6; }
11528 test "$ld_shlibs" = no
&& can_build_shared
=no
11530 with_gnu_ld
=$with_gnu_ld
11547 # Do we need to explicitly link libc?
11549 case "x$archive_cmds_need_lc" in
11551 # Assume -lc should be added
11552 archive_cmds_need_lc
=yes
11554 if test "$enable_shared" = yes && test "$GCC" = yes; then
11555 case $archive_cmds in
11557 # FIXME: we may have to deal with multi-command sequences.
11560 # Test whether the compiler implicitly links with -lc since on some
11561 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11562 # to ld, don't add -lc before -lgcc.
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11564 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11565 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11566 $as_echo_n "(cached) " >&6
11569 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572 (eval $ac_compile) 2>&5
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } 2>conftest.err
; then
11578 libobjs
=conftest.
$ac_objext
11580 wl
=$lt_prog_compiler_wl
11581 pic_flag
=$lt_prog_compiler_pic
11587 lt_save_allow_undefined_flag
=$allow_undefined_flag
11588 allow_undefined_flag
=
11589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11590 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593 test $ac_status = 0; }
11595 lt_cv_archive_cmds_need_lc
=no
11597 lt_cv_archive_cmds_need_lc
=yes
11599 allow_undefined_flag
=$lt_save_allow_undefined_flag
11601 cat conftest.err
1>&5
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11607 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11608 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11772 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11774 if test "$GCC" = yes; then
11776 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11777 *) lt_awk_arg
="/^libraries:/" ;;
11780 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11781 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11783 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11784 case $lt_search_path_spec in
11786 # if the path contains ";" then we assume it to be the separator
11787 # otherwise default to the standard path separator (i.e. ":") - it is
11788 # assumed that no part of a normal pathname contains ";" but that should
11789 # okay in the real world where ";" in dirpaths is itself problematic.
11790 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11793 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11796 # Ok, now we have the path, separated by spaces, we can step through it
11797 # and add multilib dir if necessary.
11798 lt_tmp_lt_search_path_spec
=
11799 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11800 for lt_sys_path
in $lt_search_path_spec; do
11801 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11802 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11804 test -d "$lt_sys_path" && \
11805 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11808 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11809 BEGIN {RS=" "; FS="/|\n";} {
11812 for (lt_i = NF; lt_i > 0; lt_i--) {
11813 if ($lt_i != "" && $lt_i != ".") {
11814 if ($lt_i == "..") {
11817 if (lt_count == 0) {
11818 lt_foo="/" $lt_i lt_foo;
11825 if (lt_foo != "") { lt_freq[lt_foo]++; }
11826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11828 # AWK program above erroneously prepends '/' to C:/dos/paths
11831 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11832 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11834 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11836 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11838 library_names_spec
=
11839 libname_spec
='lib$name'
11843 postuninstall_cmds
=
11847 shlibpath_overrides_runpath
=unknown
11849 dynamic_linker
="$host_os ld.so"
11850 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11851 need_lib_prefix
=unknown
11852 hardcode_into_libs
=no
11854 # when you set need_version to no, make sure it does not cause -set_version
11855 # flags to be left without arguments
11856 need_version
=unknown
11861 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11862 shlibpath_var
=LIBPATH
11864 # AIX 3 has no versioning support, so we append a major version to the name.
11865 soname_spec
='${libname}${release}${shared_ext}$major'
11872 hardcode_into_libs
=yes
11873 if test "$host_cpu" = ia64
; then
11874 # AIX 5 supports IA64
11875 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11876 shlibpath_var
=LD_LIBRARY_PATH
11878 # With GCC up to 2.95.x, collect2 would create an import file
11879 # for dependence libraries. The import file would start with
11880 # the line `#! .'. This would cause the generated library to
11881 # depend on `.', always an invalid library. This was fixed in
11882 # development snapshots of GCC prior to 3.0.
11884 aix4 | aix4.
[01] | aix4.
[01].
*)
11885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11887 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11890 can_build_shared
=no
11894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11895 # soname into executable. Probably we can add versioning support to
11896 # collect2, so additional links can be useful in future.
11897 if test "$aix_use_runtimelinking" = yes; then
11898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11899 # instead of lib<name>.a to let people know that these are not
11900 # typical AIX shared libraries.
11901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903 # We preserve .a as extension for shared libraries through AIX4.2
11904 # and later when we are not doing run time linking.
11905 library_names_spec
='${libname}${release}.a $libname.a'
11906 soname_spec
='${libname}${release}${shared_ext}$major'
11908 shlibpath_var
=LIBPATH
11915 # Since July 2007 AmigaOS4 officially supports .so libraries.
11916 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11920 library_names_spec
='$libname.ixlibrary $libname.a'
11921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11922 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'
11928 library_names_spec
='${libname}${shared_ext}'
11929 dynamic_linker
="$host_os ld.so"
11930 shlibpath_var
=LIBRARY_PATH
11936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937 soname_spec
='${libname}${release}${shared_ext}$major'
11938 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11939 shlibpath_var
=LD_LIBRARY_PATH
11940 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11941 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11942 # the default ld.so.conf also contains /usr/contrib/lib and
11943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11944 # libtool to hard-code these into programs
11947 cygwin
* | mingw
* | pw32
* | cegcc
*)
11948 version_type
=windows
11953 case $GCC,$host_os in
11954 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11955 library_names_spec
='$libname.dll.a'
11956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11957 postinstall_cmds
='base_file=`basename \${file}`~
11958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11959 dldir=$destdir/`dirname \$dlpath`~
11960 test -d \$dldir || mkdir -p \$dldir~
11961 $install_prog $dir/$dlname \$dldir/$dlname~
11962 chmod a+x \$dldir/$dlname~
11963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11966 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11967 dlpath=$dir/\$dldll~
11969 shlibpath_overrides_runpath
=yes
11973 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11974 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11976 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11979 # MinGW DLLs use traditional 'lib' prefix
11980 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11983 # pw32 DLLs use 'pw' prefix rather than 'lib'
11984 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11990 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11993 dynamic_linker
='Win32 ld.exe'
11994 # FIXME: first we should search . and the directory the executable is in
11998 darwin
* | rhapsody
*)
11999 dynamic_linker
="$host_os dyld"
12000 version_type
=darwin
12003 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12004 soname_spec
='${libname}${release}${major}$shared_ext'
12005 shlibpath_overrides_runpath
=yes
12006 shlibpath_var
=DYLD_LIBRARY_PATH
12007 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12009 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12010 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12018 soname_spec
='${libname}${release}${shared_ext}$major'
12019 shlibpath_var
=LD_LIBRARY_PATH
12022 freebsd
* | dragonfly
*)
12023 # DragonFly does not have aout. When/if they implement a new
12024 # versioning mechanism, adjust this.
12025 if test -x /usr
/bin
/objformat
; then
12026 objformat
=`/usr/bin/objformat`
12029 freebsd
[23].
*) objformat
=aout
;;
12030 *) objformat
=elf
;;
12033 version_type
=freebsd-
$objformat
12034 case $version_type in
12036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12041 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12045 shlibpath_var
=LD_LIBRARY_PATH
12048 shlibpath_overrides_runpath
=yes
12050 freebsd3.
[01]* | freebsdelf3.
[01]*)
12051 shlibpath_overrides_runpath
=yes
12052 hardcode_into_libs
=yes
12054 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12055 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12056 shlibpath_overrides_runpath
=no
12057 hardcode_into_libs
=yes
12059 *) # from 4.6 on, and DragonFly
12060 shlibpath_overrides_runpath
=yes
12061 hardcode_into_libs
=yes
12070 dynamic_linker
="$host_os runtime_loader"
12071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12072 soname_spec
='${libname}${release}${shared_ext}$major'
12073 shlibpath_var
=LIBRARY_PATH
12074 shlibpath_overrides_runpath
=yes
12075 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12076 hardcode_into_libs
=yes
12079 hpux9
* | hpux10
* | hpux11
*)
12080 # Give a soname corresponding to the major version so that dld.sl refuses to
12081 # link against other versions.
12088 hardcode_into_libs
=yes
12089 dynamic_linker
="$host_os dld.so"
12090 shlibpath_var
=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 soname_spec
='${libname}${release}${shared_ext}$major'
12094 if test "X$HPUX_IA64_MODE" = X32
; then
12095 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12097 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12099 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12103 hardcode_into_libs
=yes
12104 dynamic_linker
="$host_os dld.sl"
12105 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12106 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec
='${libname}${release}${shared_ext}$major'
12109 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12110 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12114 dynamic_linker
="$host_os dld.sl"
12115 shlibpath_var
=SHLIB_PATH
12116 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec
='${libname}${release}${shared_ext}$major'
12121 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12122 postinstall_cmds
='chmod 555 $lib'
12123 # or fails outright, so override atomically:
12124 install_override_mode
=555
12131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12132 soname_spec
='${libname}${release}${shared_ext}$major'
12133 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12134 shlibpath_var
=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath
=no
12136 hardcode_into_libs
=yes
12139 irix5
* | irix6
* | nonstopux
*)
12141 nonstopux
*) version_type
=nonstopux
;;
12143 if test "$lt_cv_prog_gnu_ld" = yes; then
12151 soname_spec
='${libname}${release}${shared_ext}$major'
12152 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12154 irix5
* | nonstopux
*)
12155 libsuff
= shlibsuff
=
12158 case $LD in # libtool.m4 will add one of these switches to LD
12159 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12160 libsuff
= shlibsuff
= libmagic
=32-bit;;
12161 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12162 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12163 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12164 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12165 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12169 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12170 shlibpath_overrides_runpath
=no
12171 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12172 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12173 hardcode_into_libs
=yes
12176 # No shared lib support for Linux oldld, aout, or coff.
12177 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12181 # This must be Linux ELF.
12183 # uclinux* changes (here and below) have been submitted to the libtool
12184 # project, but have not yet been accepted: they are GCC-local changes
12185 # for the time being. (See
12186 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12187 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
12191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12192 soname_spec
='${libname}${release}${shared_ext}$major'
12193 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12194 shlibpath_var
=LD_LIBRARY_PATH
12195 shlibpath_overrides_runpath
=no
12197 # Some binutils ld are patched to set DT_RUNPATH
12198 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12199 $as_echo_n "(cached) " >&6
12201 lt_cv_shlibpath_overrides_runpath
=no
12202 save_LDFLAGS
=$LDFLAGS
12203 save_libdir
=$libdir
12204 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12205 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12217 if ac_fn_c_try_link
"$LINENO"; then :
12218 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12219 lt_cv_shlibpath_overrides_runpath
=yes
12222 rm -f core conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12224 LDFLAGS
=$save_LDFLAGS
12225 libdir
=$save_libdir
12229 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12231 # This implies no fast_install, which is unacceptable.
12232 # Some rework will be needed to allow for fast_install
12233 # before this can be enabled.
12234 hardcode_into_libs
=yes
12236 # Append ld.so.conf contents to the search path
12237 if test -f /etc
/ld.so.conf
; then
12238 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' ' '`
12239 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12242 # We used to test for /lib/ld.so.1 and disable shared libraries on
12243 # powerpc, because MkLinux only supported shared libraries with the
12244 # GNU dynamic linker. Since this was broken with cross compilers,
12245 # most powerpc-linux boxes support dynamic linking these days and
12246 # people can always --disable-shared, the test was removed, and we
12247 # assume the GNU/Linux dynamic linker is in use.
12248 dynamic_linker
='GNU/Linux ld.so'
12255 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12256 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12257 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12258 dynamic_linker
='NetBSD (a.out) ld.so'
12260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12261 soname_spec
='${libname}${release}${shared_ext}$major'
12262 dynamic_linker
='NetBSD ld.elf_so'
12264 shlibpath_var
=LD_LIBRARY_PATH
12265 shlibpath_overrides_runpath
=yes
12266 hardcode_into_libs
=yes
12271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12272 shlibpath_var
=LD_LIBRARY_PATH
12273 shlibpath_overrides_runpath
=yes
12280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12281 soname_spec
='${libname}${release}${shared_ext}$major'
12282 shlibpath_var
=LD_LIBRARY_PATH
12283 shlibpath_overrides_runpath
=no
12284 hardcode_into_libs
=yes
12285 dynamic_linker
='ldqnx.so'
12290 sys_lib_dlsearch_path_spec
="/usr/lib"
12292 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12294 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12295 *) need_version
=no
;;
12297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12298 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12299 shlibpath_var
=LD_LIBRARY_PATH
12300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12302 openbsd2.
[89] | openbsd2.
[89].
*)
12303 shlibpath_overrides_runpath
=no
12306 shlibpath_overrides_runpath
=yes
12310 shlibpath_overrides_runpath
=yes
12315 libname_spec
='$name'
12318 library_names_spec
='$libname${shared_ext} $libname.a'
12319 dynamic_linker
='OS/2 ld.exe'
12320 shlibpath_var
=LIBPATH
12323 osf3
* | osf4
* | osf5
*)
12327 soname_spec
='${libname}${release}${shared_ext}$major'
12328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329 shlibpath_var
=LD_LIBRARY_PATH
12330 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12331 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 soname_spec
='${libname}${release}${shared_ext}$major'
12344 shlibpath_var
=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath
=yes
12346 hardcode_into_libs
=yes
12347 # ldd complains unless libraries are executable
12348 postinstall_cmds
='chmod +x $lib'
12353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355 shlibpath_var
=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath
=yes
12357 if test "$with_gnu_ld" = yes; then
12365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec
='${libname}${release}${shared_ext}$major'
12367 shlibpath_var
=LD_LIBRARY_PATH
12368 case $host_vendor in
12370 shlibpath_overrides_runpath
=no
12372 runpath_var
=LD_RUN_PATH
12380 shlibpath_overrides_runpath
=no
12381 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12387 if test -d /usr
/nec
;then
12389 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12390 soname_spec
='$libname${shared_ext}.$major'
12391 shlibpath_var
=LD_LIBRARY_PATH
12395 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12396 version_type
=freebsd-elf
12399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12400 soname_spec
='${libname}${release}${shared_ext}$major'
12401 shlibpath_var
=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath
=yes
12403 hardcode_into_libs
=yes
12404 if test "$with_gnu_ld" = yes; then
12405 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12407 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12410 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12414 sys_lib_dlsearch_path_spec
='/usr/lib'
12418 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12423 shlibpath_var
=LD_LIBRARY_PATH
12424 shlibpath_overrides_runpath
=no
12425 hardcode_into_libs
=yes
12430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12431 soname_spec
='${libname}${release}${shared_ext}$major'
12432 shlibpath_var
=LD_LIBRARY_PATH
12435 # Shared libraries for VwWorks, >= 7 only at this stage
12436 # and (fpic) still incompatible with "large" code models
12437 # in a few configurations. Only for RTP mode in any case,
12438 # and upon explicit request at configure time.
12441 case ${with_multisubdir}-${enable_shared} in
12448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12449 soname_spec
='${libname}${release}${shared_ext}$major'
12450 dynamic_linker
="$host_os module_loader"
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12459 $as_echo "$dynamic_linker" >&6; }
12460 test "$dynamic_linker" = no
&& can_build_shared
=no
12462 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12463 if test "$GCC" = yes; then
12464 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12467 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12468 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12471 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12568 if test -n "$hardcode_libdir_flag_spec" ||
12569 test -n "$runpath_var" ||
12570 test "X$hardcode_automatic" = "Xyes" ; then
12572 # We can hardcode non-existent directories.
12573 if test "$hardcode_direct" != no
&&
12574 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12575 # have to relink, otherwise we might link with an installed library
12576 # when we should be linking with a yet-to-be-installed one
12577 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12578 test "$hardcode_minus_L" != no
; then
12579 # Linking always hardcodes the temporary library directory.
12580 hardcode_action
=relink
12582 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12583 hardcode_action
=immediate
12586 # We cannot hardcode anything, or else we can only hardcode existing
12588 hardcode_action
=unsupported
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12591 $as_echo "$hardcode_action" >&6; }
12593 if test "$hardcode_action" = relink ||
12594 test "$inherit_rpath" = yes; then
12595 # Fast installation is not supported
12596 enable_fast_install
=no
12597 elif test "$shlibpath_overrides_runpath" = yes ||
12598 test "$enable_shared" = no
; then
12599 # Fast installation is not necessary
12600 enable_fast_install
=needless
12608 if test "x$enable_dlopen" != xyes
; then
12609 enable_dlopen
=unknown
12610 enable_dlopen_self
=unknown
12611 enable_dlopen_self_static
=unknown
12618 lt_cv_dlopen
="load_add_on"
12620 lt_cv_dlopen_self
=yes
12623 mingw
* | pw32
* | cegcc
*)
12624 lt_cv_dlopen
="LoadLibrary"
12629 lt_cv_dlopen
="dlopen"
12634 # if libdl is installed we need to link against it
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12637 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12638 $as_echo_n "(cached) " >&6
12640 ac_check_lib_save_LIBS
=$LIBS
12642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12660 if ac_fn_c_try_link
"$LINENO"; then :
12661 ac_cv_lib_dl_dlopen
=yes
12663 ac_cv_lib_dl_dlopen
=no
12665 rm -f core conftest.err conftest.
$ac_objext \
12666 conftest
$ac_exeext conftest.
$ac_ext
12667 LIBS
=$ac_check_lib_save_LIBS
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12671 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12672 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12675 lt_cv_dlopen
="dyld"
12677 lt_cv_dlopen_self
=yes
12684 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12685 if test "x$ac_cv_func_shl_load" = xyes
; then :
12686 lt_cv_dlopen
="shl_load"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12689 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12690 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12691 $as_echo_n "(cached) " >&6
12693 ac_check_lib_save_LIBS
=$LIBS
12695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12708 return shl_load ();
12713 if ac_fn_c_try_link
"$LINENO"; then :
12714 ac_cv_lib_dld_shl_load
=yes
12716 ac_cv_lib_dld_shl_load
=no
12718 rm -f core conftest.err conftest.
$ac_objext \
12719 conftest
$ac_exeext conftest.
$ac_ext
12720 LIBS
=$ac_check_lib_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12723 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12724 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12725 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12727 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12728 if test "x$ac_cv_func_dlopen" = xyes
; then :
12729 lt_cv_dlopen
="dlopen"
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12733 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12734 $as_echo_n "(cached) " >&6
12736 ac_check_lib_save_LIBS
=$LIBS
12738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12741 /* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
12756 if ac_fn_c_try_link
"$LINENO"; then :
12757 ac_cv_lib_dl_dlopen
=yes
12759 ac_cv_lib_dl_dlopen
=no
12761 rm -f core conftest.err conftest.
$ac_objext \
12762 conftest
$ac_exeext conftest.
$ac_ext
12763 LIBS
=$ac_check_lib_save_LIBS
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12767 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12768 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12771 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12772 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12773 $as_echo_n "(cached) " >&6
12775 ac_check_lib_save_LIBS
=$LIBS
12776 LIBS
="-lsvld $LIBS"
12777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12795 if ac_fn_c_try_link
"$LINENO"; then :
12796 ac_cv_lib_svld_dlopen
=yes
12798 ac_cv_lib_svld_dlopen
=no
12800 rm -f core conftest.err conftest.
$ac_objext \
12801 conftest
$ac_exeext conftest.
$ac_ext
12802 LIBS
=$ac_check_lib_save_LIBS
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12805 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12806 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12807 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12810 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12811 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12812 $as_echo_n "(cached) " >&6
12814 ac_check_lib_save_LIBS
=$LIBS
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12829 return dld_link ();
12834 if ac_fn_c_try_link
"$LINENO"; then :
12835 ac_cv_lib_dld_dld_link
=yes
12837 ac_cv_lib_dld_dld_link
=no
12839 rm -f core conftest.err conftest.
$ac_objext \
12840 conftest
$ac_exeext conftest.
$ac_ext
12841 LIBS
=$ac_check_lib_save_LIBS
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12844 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12845 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12846 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12867 if test "x$lt_cv_dlopen" != xno
; then
12873 case $lt_cv_dlopen in
12875 save_CPPFLAGS
="$CPPFLAGS"
12876 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12878 save_LDFLAGS
="$LDFLAGS"
12879 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12882 LIBS
="$lt_cv_dlopen_libs $LIBS"
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12885 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12886 if ${lt_cv_dlopen_self+:} false
; then :
12887 $as_echo_n "(cached) " >&6
12889 if test "$cross_compiling" = yes; then :
12890 lt_cv_dlopen_self
=cross
12892 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12893 lt_status
=$lt_dlunknown
12894 cat > conftest.
$ac_ext <<_LT_EOF
12895 #line 12895 "configure"
12896 #include "confdefs.h"
12905 # define LT_DLGLOBAL RTLD_GLOBAL
12908 # define LT_DLGLOBAL DL_GLOBAL
12910 # define LT_DLGLOBAL 0
12914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12915 find out it does not work in some platform. */
12916 #ifndef LT_DLLAZY_OR_NOW
12918 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12921 # define LT_DLLAZY_OR_NOW DL_LAZY
12924 # define LT_DLLAZY_OR_NOW RTLD_NOW
12927 # define LT_DLLAZY_OR_NOW DL_NOW
12929 # define LT_DLLAZY_OR_NOW 0
12936 /* When -fvisbility=hidden is used, assume the code has been annotated
12937 correspondingly for the symbols needed. */
12938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12939 void fnord () __attribute__((visibility("default")));
12942 void fnord () { int i=42; }
12945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12946 int status = $lt_dlunknown;
12950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12953 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12954 else puts (dlerror ());
12956 /* dlclose (self); */
12964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12965 (eval $ac_link) 2>&5
12967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12968 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12969 (.
/conftest
; exit; ) >&5 2>/dev
/null
12971 case x
$lt_status in
12972 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12973 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12974 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12977 # compilation failed
12978 lt_cv_dlopen_self
=no
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12986 $as_echo "$lt_cv_dlopen_self" >&6; }
12988 if test "x$lt_cv_dlopen_self" = xyes
; then
12989 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12991 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12992 if ${lt_cv_dlopen_self_static+:} false
; then :
12993 $as_echo_n "(cached) " >&6
12995 if test "$cross_compiling" = yes; then :
12996 lt_cv_dlopen_self_static
=cross
12998 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12999 lt_status
=$lt_dlunknown
13000 cat > conftest.
$ac_ext <<_LT_EOF
13001 #line 13001 "configure"
13002 #include "confdefs.h"
13011 # define LT_DLGLOBAL RTLD_GLOBAL
13014 # define LT_DLGLOBAL DL_GLOBAL
13016 # define LT_DLGLOBAL 0
13020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13021 find out it does not work in some platform. */
13022 #ifndef LT_DLLAZY_OR_NOW
13024 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13027 # define LT_DLLAZY_OR_NOW DL_LAZY
13030 # define LT_DLLAZY_OR_NOW RTLD_NOW
13033 # define LT_DLLAZY_OR_NOW DL_NOW
13035 # define LT_DLLAZY_OR_NOW 0
13042 /* When -fvisbility=hidden is used, assume the code has been annotated
13043 correspondingly for the symbols needed. */
13044 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13045 void fnord () __attribute__((visibility("default")));
13048 void fnord () { int i=42; }
13051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052 int status = $lt_dlunknown;
13056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13060 else puts (dlerror ());
13062 /* dlclose (self); */
13070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13071 (eval $ac_link) 2>&5
13073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13075 (.
/conftest
; exit; ) >&5 2>/dev
/null
13077 case x
$lt_status in
13078 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13079 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13080 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13083 # compilation failed
13084 lt_cv_dlopen_self_static
=no
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13092 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13095 CPPFLAGS
="$save_CPPFLAGS"
13096 LDFLAGS
="$save_LDFLAGS"
13101 case $lt_cv_dlopen_self in
13102 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13103 *) enable_dlopen_self
=unknown
;;
13106 case $lt_cv_dlopen_self_static in
13107 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13108 *) enable_dlopen_self_static
=unknown
;;
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13131 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13132 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13133 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13134 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136 $as_echo "yes" >&6; }
13138 # FIXME - insert some real tests, host_os isn't really good enough
13141 if test -n "$STRIP" ; then
13142 striplib
="$STRIP -x"
13143 old_striplib
="$STRIP -S"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13145 $as_echo "yes" >&6; }
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13169 # Report which library types will actually be built
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13171 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13173 $as_echo "$can_build_shared" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13176 $as_echo_n "checking whether to build shared libraries... " >&6; }
13177 test "$can_build_shared" = "no" && enable_shared
=no
13179 # On AIX, shared libraries and static libraries use the same namespace, and
13180 # are all built from PIC.
13183 test "$enable_shared" = yes && enable_static
=no
13184 if test -n "$RANLIB"; then
13185 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13186 postinstall_cmds
='$RANLIB $lib'
13191 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13192 test "$enable_shared" = yes && enable_static
=no
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13197 $as_echo "$enable_shared" >&6; }
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13200 $as_echo_n "checking whether to build static libraries... " >&6; }
13201 # Make sure either enable_shared or enable_static is yes.
13202 test "$enable_shared" = yes || enable_static
=yes
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13204 $as_echo "$enable_static" >&6; }
13211 ac_cpp
='$CPP $CPPFLAGS'
13212 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13213 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13214 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13230 ac_config_commands
="$ac_config_commands libtool"
13235 # Only expand once:
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
13240 $as_echo_n "checking for library containing bind... " >&6; }
13241 if ${ac_cv_search_bind+:} false
; then :
13242 $as_echo_n "(cached) " >&6
13244 ac_func_search_save_LIBS
=$LIBS
13245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13248 /* Override any GCC internal prototype to avoid an error.
13249 Use char because int might match the return type of a GCC
13250 builtin and then its argument prototype would still apply. */
13263 for ac_lib
in '' socket
; do
13264 if test -z "$ac_lib"; then
13265 ac_res
="none required"
13268 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13270 if ac_fn_c_try_link
"$LINENO"; then :
13271 ac_cv_search_bind
=$ac_res
13273 rm -f core conftest.err conftest.
$ac_objext \
13275 if ${ac_cv_search_bind+:} false
; then :
13279 if ${ac_cv_search_bind+:} false
; then :
13282 ac_cv_search_bind
=no
13284 rm conftest.
$ac_ext
13285 LIBS
=$ac_func_search_save_LIBS
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13288 $as_echo "$ac_cv_search_bind" >&6; }
13289 ac_res
=$ac_cv_search_bind
13290 if test "$ac_res" != no
; then :
13291 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13296 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13297 if ${ac_cv_search_gethostbyname+:} false
; then :
13298 $as_echo_n "(cached) " >&6
13300 ac_func_search_save_LIBS
=$LIBS
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13310 char gethostbyname ();
13314 return gethostbyname ();
13319 for ac_lib
in '' nsl
; do
13320 if test -z "$ac_lib"; then
13321 ac_res
="none required"
13324 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13326 if ac_fn_c_try_link
"$LINENO"; then :
13327 ac_cv_search_gethostbyname
=$ac_res
13329 rm -f core conftest.err conftest.
$ac_objext \
13331 if ${ac_cv_search_gethostbyname+:} false
; then :
13335 if ${ac_cv_search_gethostbyname+:} false
; then :
13338 ac_cv_search_gethostbyname
=no
13340 rm conftest.
$ac_ext
13341 LIBS
=$ac_func_search_save_LIBS
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13344 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13345 ac_res
=$ac_cv_search_gethostbyname
13346 if test "$ac_res" != no
; then :
13347 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13352 $as_echo_n "checking for library containing fabs... " >&6; }
13353 if ${ac_cv_search_fabs+:} false
; then :
13354 $as_echo_n "(cached) " >&6
13356 ac_func_search_save_LIBS
=$LIBS
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13375 for ac_lib
in '' m
; do
13376 if test -z "$ac_lib"; then
13377 ac_res
="none required"
13380 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13382 if ac_fn_c_try_link
"$LINENO"; then :
13383 ac_cv_search_fabs
=$ac_res
13385 rm -f core conftest.err conftest.
$ac_objext \
13387 if ${ac_cv_search_fabs+:} false
; then :
13391 if ${ac_cv_search_fabs+:} false
; then :
13394 ac_cv_search_fabs
=no
13396 rm conftest.
$ac_ext
13397 LIBS
=$ac_func_search_save_LIBS
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13400 $as_echo "$ac_cv_search_fabs" >&6; }
13401 ac_res
=$ac_cv_search_fabs
13402 if test "$ac_res" != no
; then :
13403 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13408 $as_echo_n "checking for library containing log2... " >&6; }
13409 if ${ac_cv_search_log2+:} false
; then :
13410 $as_echo_n "(cached) " >&6
13412 ac_func_search_save_LIBS
=$LIBS
13413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13416 /* Override any GCC internal prototype to avoid an error.
13417 Use char because int might match the return type of a GCC
13418 builtin and then its argument prototype would still apply. */
13431 for ac_lib
in '' m
; do
13432 if test -z "$ac_lib"; then
13433 ac_res
="none required"
13436 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13438 if ac_fn_c_try_link
"$LINENO"; then :
13439 ac_cv_search_log2
=$ac_res
13441 rm -f core conftest.err conftest.
$ac_objext \
13443 if ${ac_cv_search_log2+:} false
; then :
13447 if ${ac_cv_search_log2+:} false
; then :
13450 ac_cv_search_log2
=no
13452 rm conftest.
$ac_ext
13453 LIBS
=$ac_func_search_save_LIBS
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13456 $as_echo "$ac_cv_search_log2" >&6; }
13457 ac_res
=$ac_cv_search_log2
13458 if test "$ac_res" != no
; then :
13459 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13465 $as_echo_n "checking for library containing dlopen... " >&6; }
13466 if ${ac_cv_search_dlopen+:} false
; then :
13467 $as_echo_n "(cached) " >&6
13469 ac_func_search_save_LIBS
=$LIBS
13470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13488 for ac_lib
in '' dl
; do
13489 if test -z "$ac_lib"; then
13490 ac_res
="none required"
13493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13495 if ac_fn_c_try_link
"$LINENO"; then :
13496 ac_cv_search_dlopen
=$ac_res
13498 rm -f core conftest.err conftest.
$ac_objext \
13500 if ${ac_cv_search_dlopen+:} false
; then :
13504 if ${ac_cv_search_dlopen+:} false
; then :
13507 ac_cv_search_dlopen
=no
13509 rm conftest.
$ac_ext
13510 LIBS
=$ac_func_search_save_LIBS
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13513 $as_echo "$ac_cv_search_dlopen" >&6; }
13514 ac_res
=$ac_cv_search_dlopen
13515 if test "$ac_res" != no
; then :
13516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13520 if test "${ac_cv_search_dlopen}" = "none required" ||
test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13524 $as_echo_n "checking for sdl2... " >&6; }
13526 if test -n "$SDL_CFLAGS"; then
13527 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13528 elif test -n "$PKG_CONFIG"; then
13529 if test -n "$PKG_CONFIG" && \
13530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13531 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13534 test $ac_status = 0; }; then
13535 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13536 test "x$?" != "x0" && pkg_failed
=yes
13543 if test -n "$SDL_LIBS"; then
13544 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13545 elif test -n "$PKG_CONFIG"; then
13546 if test -n "$PKG_CONFIG" && \
13547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13548 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; }; then
13552 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13553 test "x$?" != "x0" && pkg_failed
=yes
13561 if test $pkg_failed = no
; then
13562 pkg_save_LDFLAGS
="$LDFLAGS"
13563 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13575 if ac_fn_c_try_link
"$LINENO"; then :
13580 rm -f core conftest.err conftest.
$ac_objext \
13581 conftest
$ac_exeext conftest.
$ac_ext
13582 LDFLAGS
=$pkg_save_LDFLAGS
13587 if test $pkg_failed = yes; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13592 _pkg_short_errors_supported
=yes
13594 _pkg_short_errors_supported
=no
13596 if test $_pkg_short_errors_supported = yes; then
13597 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13599 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13601 # Put the nasty error message in config.log where it belongs
13602 echo "$SDL_PKG_ERRORS" >&5
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13608 $as_echo_n "checking for sdl... " >&6; }
13610 if test -n "$SDL_CFLAGS"; then
13611 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13612 elif test -n "$PKG_CONFIG"; then
13613 if test -n "$PKG_CONFIG" && \
13614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13615 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13618 test $ac_status = 0; }; then
13619 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13620 test "x$?" != "x0" && pkg_failed
=yes
13627 if test -n "$SDL_LIBS"; then
13628 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13629 elif test -n "$PKG_CONFIG"; then
13630 if test -n "$PKG_CONFIG" && \
13631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13632 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13637 test "x$?" != "x0" && pkg_failed
=yes
13645 if test $pkg_failed = no
; then
13646 pkg_save_LDFLAGS
="$LDFLAGS"
13647 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13659 if ac_fn_c_try_link
"$LINENO"; then :
13664 rm -f core conftest.err conftest.
$ac_objext \
13665 conftest
$ac_exeext conftest.
$ac_ext
13666 LDFLAGS
=$pkg_save_LDFLAGS
13671 if test $pkg_failed = yes; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13676 _pkg_short_errors_supported
=yes
13678 _pkg_short_errors_supported
=no
13680 if test $_pkg_short_errors_supported = yes; then
13681 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13683 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13685 # Put the nasty error message in config.log where it belongs
13686 echo "$SDL_PKG_ERRORS" >&5
13689 elif test $pkg_failed = untried
; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13694 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13695 SDL_LIBS
=$pkg_cv_SDL_LIBS
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13697 $as_echo "yes" >&6; }
13698 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13702 elif test $pkg_failed = untried
; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13709 $as_echo_n "checking for sdl... " >&6; }
13711 if test -n "$SDL_CFLAGS"; then
13712 pkg_cv_SDL_CFLAGS
="$SDL_CFLAGS"
13713 elif test -n "$PKG_CONFIG"; then
13714 if test -n "$PKG_CONFIG" && \
13715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13716 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13719 test $ac_status = 0; }; then
13720 pkg_cv_SDL_CFLAGS
=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13721 test "x$?" != "x0" && pkg_failed
=yes
13728 if test -n "$SDL_LIBS"; then
13729 pkg_cv_SDL_LIBS
="$SDL_LIBS"
13730 elif test -n "$PKG_CONFIG"; then
13731 if test -n "$PKG_CONFIG" && \
13732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13733 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; }; then
13737 pkg_cv_SDL_LIBS
=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13738 test "x$?" != "x0" && pkg_failed
=yes
13746 if test $pkg_failed = no
; then
13747 pkg_save_LDFLAGS
="$LDFLAGS"
13748 LDFLAGS
="$LDFLAGS $pkg_cv_SDL_LIBS"
13749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13760 if ac_fn_c_try_link
"$LINENO"; then :
13765 rm -f core conftest.err conftest.
$ac_objext \
13766 conftest
$ac_exeext conftest.
$ac_ext
13767 LDFLAGS
=$pkg_save_LDFLAGS
13772 if test $pkg_failed = yes; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13777 _pkg_short_errors_supported
=yes
13779 _pkg_short_errors_supported
=no
13781 if test $_pkg_short_errors_supported = yes; then
13782 SDL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13784 SDL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13786 # Put the nasty error message in config.log where it belongs
13787 echo "$SDL_PKG_ERRORS" >&5
13790 elif test $pkg_failed = untried
; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13795 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13796 SDL_LIBS
=$pkg_cv_SDL_LIBS
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 $as_echo "yes" >&6; }
13799 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=1"
13804 SDL_CFLAGS
=$pkg_cv_SDL_CFLAGS
13805 SDL_LIBS
=$pkg_cv_SDL_LIBS
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807 $as_echo "yes" >&6; }
13808 SDL_CFLAGS
="${SDL_CFLAGS} -DHAVE_SDL=2"
13811 if test -n "$SDL_CFLAGS"; then :
13812 if test "$ac_cv_search_dlopen" = no
; then :
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13814 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13826 $as_echo_n "checking for cygwin... " >&6; }
13827 if ${sim_cv_os_cygwin+:} false
; then :
13828 $as_echo_n "(cached) " >&6
13830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13838 $EGREP "lose" >/dev
/null
2>&1; then :
13839 sim_cv_os_cygwin
=yes
13841 sim_cv_os_cygwin
=no
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13847 $as_echo "$sim_cv_os_cygwin" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13850 $as_echo_n "checking for library containing tgetent... " >&6; }
13851 if ${ac_cv_search_tgetent+:} false
; then :
13852 $as_echo_n "(cached) " >&6
13854 ac_func_search_save_LIBS
=$LIBS
13855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13873 for ac_lib
in '' termcap tinfo curses ncurses
; do
13874 if test -z "$ac_lib"; then
13875 ac_res
="none required"
13878 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13880 if ac_fn_c_try_link
"$LINENO"; then :
13881 ac_cv_search_tgetent
=$ac_res
13883 rm -f core conftest.err conftest.
$ac_objext \
13885 if ${ac_cv_search_tgetent+:} false
; then :
13889 if ${ac_cv_search_tgetent+:} false
; then :
13892 ac_cv_search_tgetent
=no
13894 rm conftest.
$ac_ext
13895 LIBS
=$ac_func_search_save_LIBS
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13898 $as_echo "$ac_cv_search_tgetent" >&6; }
13899 ac_res
=$ac_cv_search_tgetent
13900 if test "$ac_res" != no
; then :
13901 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13902 TERMCAP_LIB
=$ac_cv_search_tgetent
13907 if test x
$sim_cv_os_cygwin = xyes
; then
13908 TERMCAP_LIB
="${TERMCAP_LIB} -luser32"
13912 if test -r ..
/readline
/Makefile
; then
13913 READLINE_LIB
=..
/readline
/readline
/libreadline.a
13914 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13917 $as_echo_n "checking for readline in -lreadline... " >&6; }
13918 if ${ac_cv_lib_readline_readline+:} false
; then :
13919 $as_echo_n "(cached) " >&6
13921 ac_check_lib_save_LIBS
=$LIBS
13922 LIBS
="-lreadline $TERMCAP_LIB $LIBS"
13923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13936 return readline ();
13941 if ac_fn_c_try_link
"$LINENO"; then :
13942 ac_cv_lib_readline_readline
=yes
13944 ac_cv_lib_readline_readline
=no
13946 rm -f core conftest.err conftest.
$ac_objext \
13947 conftest
$ac_exeext conftest.
$ac_ext
13948 LIBS
=$ac_check_lib_save_LIBS
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13951 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13952 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
13953 READLINE_LIB
=-lreadline
13955 as_fn_error $?
"the required \"readline\" library is missing" "$LINENO" 5
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13964 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13965 if ${sim_cv_decl_getopt_unistd_h+:} false
; then :
13966 $as_echo_n "(cached) " >&6
13968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #include <unistd.h>
13974 extern int getopt (int, char *const*, const char *);
13979 if ac_fn_c_try_compile
"$LINENO"; then :
13980 sim_cv_decl_getopt_unistd_h
=yes
13982 sim_cv_decl_getopt_unistd_h
=no
13984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13988 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13989 if test $sim_cv_decl_getopt_unistd_h = yes; then
13991 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13998 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13999 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
14005 cat >>confdefs.h
<<_ACEOF
14006 #define HAVE_DECL_FFS $ac_have_decl
14009 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14010 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
14016 cat >>confdefs.h
<<_ACEOF
14017 #define HAVE_DECL_ASPRINTF $ac_have_decl
14020 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14021 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
14027 cat >>confdefs.h
<<_ACEOF
14028 #define HAVE_DECL_VASPRINTF $ac_have_decl
14031 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14032 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
14038 cat >>confdefs.h
<<_ACEOF
14039 #define HAVE_DECL_SNPRINTF $ac_have_decl
14042 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14043 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
14049 cat >>confdefs.h
<<_ACEOF
14050 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14053 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
14054 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
14060 cat >>confdefs.h
<<_ACEOF
14061 #define HAVE_DECL_STRTOL $ac_have_decl
14064 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
14065 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
14071 cat >>confdefs.h
<<_ACEOF
14072 #define HAVE_DECL_STRTOUL $ac_have_decl
14075 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
14076 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
14082 cat >>confdefs.h
<<_ACEOF
14083 #define HAVE_DECL_STRTOLL $ac_have_decl
14086 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
14087 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
14093 cat >>confdefs.h
<<_ACEOF
14094 #define HAVE_DECL_STRTOULL $ac_have_decl
14097 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
14098 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
14104 cat >>confdefs.h
<<_ACEOF
14105 #define HAVE_DECL_STRVERSCMP $ac_have_decl
14108 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14109 if test "x$ac_cv_type_long_long" = xyes
; then :
14111 cat >>confdefs.h
<<_ACEOF
14112 #define HAVE_LONG_LONG 1
14115 # The cast to long int works around a bug in the HP C Compiler
14116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14118 # This bug is HP SR number 8606223364.
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14120 $as_echo_n "checking size of long long... " >&6; }
14121 if ${ac_cv_sizeof_long_long+:} false
; then :
14122 $as_echo_n "(cached) " >&6
14124 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14127 if test "$ac_cv_type_long_long" = yes; then
14128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14130 as_fn_error
77 "cannot compute sizeof (long long)
14131 See \`config.log' for more details" "$LINENO" 5; }
14133 ac_cv_sizeof_long_long
=0
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14139 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14143 cat >>confdefs.h
<<_ACEOF
14144 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14151 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
14152 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
14153 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
14159 cat >>confdefs.h
<<_ACEOF
14160 #define HAVE_DECL_BASENAME $ac_have_decl
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14170 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14171 # Check whether --enable-maintainer-mode was given.
14172 if test "${enable_maintainer_mode+set}" = set; then :
14173 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14175 USE_MAINTAINER_MODE
=no
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14179 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14180 if test $USE_MAINTAINER_MODE = yes; then
14181 MAINTAINER_MODE_TRUE
=
14182 MAINTAINER_MODE_FALSE
='#'
14184 MAINTAINER_MODE_TRUE
='#'
14185 MAINTAINER_MODE_FALSE
=
14188 MAINT
=$MAINTAINER_MODE_TRUE
14191 am__api_version
='1.15'
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14194 $as_echo_n "checking whether build environment is sane... " >&6; }
14195 # Reject unsafe characters in $srcdir or the absolute working directory
14196 # name. Accept space and tab only in the latter.
14200 *[\\\"\
#\$\&\'\`$am_lf]*)
14201 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
14204 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
14205 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
14208 # Do 'set' in a subshell so we don't clobber the current shell's
14209 # arguments. Must try -L first in case configure is actually a
14210 # symlink; some systems play weird games with the mod time of symlinks
14211 # (eg FreeBSD returns the mod time of the symlink's containing
14215 for am_try
in 1 2; do
14216 echo "timestamp, slept: $am_has_slept" > conftest.
file
14217 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14218 if test "$*" = "X"; then
14220 set X
`ls -t "$srcdir/configure" conftest.file`
14222 if test "$*" != "X $srcdir/configure conftest.file" \
14223 && test "$*" != "X conftest.file $srcdir/configure"; then
14225 # If neither matched, then we have a broken ls. This can happen
14226 # if, for instance, CONFIG_SHELL is bash and it inherits a
14227 # broken ls alias from the environment. This has actually
14228 # happened. Such a system could not be considered "sane".
14229 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
14230 alias in your environment" "$LINENO" 5
14232 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
14239 test "$2" = conftest.
file
14245 as_fn_error $?
"newly created file is older than distributed files!
14246 Check your system clock" "$LINENO" 5
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250 # If we didn't sleep, we still need to ensure time stamps of config.status and
14251 # generated files are strictly newer.
14253 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
14258 rm -f conftest.
file
14260 if test x
"${MISSING+set}" != xset
; then
14261 case $am_aux_dir in
14263 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
14265 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
14268 # Use eval to expand $SHELL
14269 if eval "$MISSING --is-lightweight"; then
14270 am_missing_run
="$MISSING "
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
14274 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
14277 if test x
"${install_sh+set}" != xset
; then
14278 case $am_aux_dir in
14280 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
14282 install_sh
="\${SHELL} $am_aux_dir/install-sh"
14286 # Installed binaries are usually stripped using 'strip' when the user
14287 # run "make install-strip". However 'strip' might not be the right
14288 # tool to use in cross-compilation environments, therefore Automake
14289 # will honor the 'STRIP' environment variable to overrule this program.
14290 if test "$cross_compiling" != no
; then
14291 if test -n "$ac_tool_prefix"; then
14292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14293 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295 $as_echo_n "checking for $ac_word... " >&6; }
14296 if ${ac_cv_prog_STRIP+:} false
; then :
14297 $as_echo_n "(cached) " >&6
14299 if test -n "$STRIP"; then
14300 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
14302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14303 for as_dir
in $PATH
14306 test -z "$as_dir" && as_dir
=.
14307 for ac_exec_ext
in '' $ac_executable_extensions; do
14308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14309 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14319 STRIP
=$ac_cv_prog_STRIP
14320 if test -n "$STRIP"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14322 $as_echo "$STRIP" >&6; }
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14330 if test -z "$ac_cv_prog_STRIP"; then
14332 # Extract the first word of "strip", so it can be a program name with args.
14333 set dummy strip
; ac_word
=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
14337 $as_echo_n "(cached) " >&6
14339 if test -n "$ac_ct_STRIP"; then
14340 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
14342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14343 for as_dir
in $PATH
14346 test -z "$as_dir" && as_dir
=.
14347 for ac_exec_ext
in '' $ac_executable_extensions; do
14348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14349 ac_cv_prog_ac_ct_STRIP
="strip"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
14360 if test -n "$ac_ct_STRIP"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14362 $as_echo "$ac_ct_STRIP" >&6; }
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14368 if test "x$ac_ct_STRIP" = x
; then
14371 case $cross_compiling:$ac_tool_warned in
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375 ac_tool_warned
=yes ;;
14380 STRIP
="$ac_cv_prog_STRIP"
14384 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14387 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14388 if test -z "$MKDIR_P"; then
14389 if ${ac_cv_path_mkdir+:} false
; then :
14390 $as_echo_n "(cached) " >&6
14392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14393 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
14396 test -z "$as_dir" && as_dir
=.
14397 for ac_prog
in mkdir gmkdir
; do
14398 for ac_exec_ext
in '' $ac_executable_extensions; do
14399 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
14400 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14401 'mkdir (GNU coreutils) '* | \
14402 'mkdir (coreutils) '* | \
14403 'mkdir (fileutils) '4.1*)
14404 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
14414 test -d .
/--version && rmdir .
/--version
14415 if test "${ac_cv_path_mkdir+set}" = set; then
14416 MKDIR_P
="$ac_cv_path_mkdir -p"
14418 # As a last resort, use the slow shell script. Don't cache a
14419 # value for MKDIR_P within a source directory, because that will
14420 # break other packages using the cache if that directory is
14421 # removed, or if the value is a relative name.
14422 MKDIR_P
="$ac_install_sh -d"
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14426 $as_echo "$MKDIR_P" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14429 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14431 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14432 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
14433 $as_echo_n "(cached) " >&6
14435 cat >conftest.
make <<\_ACEOF
14438 @
echo '@@@%%%=$(MAKE)=@@@%%%'
14440 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14441 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14442 *@@@
%%%=?
*=@@@
%%%*)
14443 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
14445 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
14447 rm -f conftest.
make
14449 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14451 $as_echo "yes" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456 SET_MAKE
="MAKE=${MAKE-make}"
14459 rm -rf .tst
2>/dev
/null
14460 mkdir .tst
2>/dev
/null
14461 if test -d .tst
; then
14466 rmdir .tst
2>/dev
/null
14468 DEPDIR
="${am__leading_dot}deps"
14470 ac_config_commands
="$ac_config_commands depfiles"
14473 am_make
=${MAKE-make}
14474 cat > confinc
<< 'END'
14476 @
echo this is the am__doit target
14479 # If we don't find an include directive, just comment out the code.
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14481 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14485 # First try GNU make style include.
14486 echo "include confinc" > confmf
14487 # Ignore all kinds of additional output from 'make'.
14488 case `$am_make -s -f confmf 2> /dev/null` in #(
14489 *the\ am__doit\ target
*)
14490 am__include
=include
14495 # Now try BSD make style include.
14496 if test "$am__include" = "#"; then
14497 echo '.include "confinc"' > confmf
14498 case `$am_make -s -f confmf 2> /dev/null` in #(
14499 *the\ am__doit\ target
*)
14500 am__include
=.include
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14509 $as_echo "$_am_result" >&6; }
14510 rm -f confinc confmf
14512 # Check whether --enable-dependency-tracking was given.
14513 if test "${enable_dependency_tracking+set}" = set; then :
14514 enableval
=$enable_dependency_tracking;
14517 if test "x$enable_dependency_tracking" != xno
; then
14518 am_depcomp
="$ac_aux_dir/depcomp"
14522 if test "x$enable_dependency_tracking" != xno; then
14531 # Check whether --enable-silent-rules was given.
14532 if test "${enable_silent_rules+set}" = set; then :
14533 enableval
=$enable_silent_rules;
14536 case $enable_silent_rules in # (((
14537 yes) AM_DEFAULT_VERBOSITY
=0;;
14538 no
) AM_DEFAULT_VERBOSITY
=1;;
14539 *) AM_DEFAULT_VERBOSITY
=1;;
14541 am_make
=${MAKE-make}
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14543 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14544 if ${am_cv_make_support_nested_variables+:} false
; then :
14545 $as_echo_n "(cached) " >&6
14547 if $as_echo 'TRUE=$(BAR$(V))
14553 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14554 am_cv_make_support_nested_variables
=yes
14556 am_cv_make_support_nested_variables
=no
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14560 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14561 if test $am_cv_make_support_nested_variables = yes; then
14563 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14565 AM_V
=$AM_DEFAULT_VERBOSITY
14566 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14570 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14571 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14572 # is not polluted with repeated "-I."
14573 am__isrc
=' -I$(srcdir)'
14574 # test to see if srcdir already configured
14575 if test -f $srcdir/config.status
; then
14576 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14580 # test whether we have cygpath
14581 if test -z "$CYGPATH_W"; then
14582 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
14583 CYGPATH_W
='cygpath -w'
14590 # Define the identity of the package.
14595 cat >>confdefs.h
<<_ACEOF
14596 #define PACKAGE "$PACKAGE"
14600 cat >>confdefs.h
<<_ACEOF
14601 #define VERSION "$VERSION"
14604 # Some tools Automake needs.
14606 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14609 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
14612 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14615 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
14618 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
14620 # For better backward compatibility. To be removed once Automake 1.9.x
14621 # dies out for good. For more background, see:
14622 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14623 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14624 mkdir_p
='$(MKDIR_P)'
14626 # We need awk for the "check" target (and possibly the TAP driver). The
14627 # system "awk" is bad on some platforms.
14628 # Always define AMTAR for backward compatibility. Yes, it's still used
14629 # in the wild :-( We should find a proper way to deprecate it ...
14630 AMTAR
='$${TAR-tar}'
14633 # We'll loop over all known methods to create a tar archive until one works.
14634 _am_tools
='gnutar pax cpio none'
14636 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
14642 depcc
="$CC" am_compiler_list
=
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14645 $as_echo_n "checking dependency style of $depcc... " >&6; }
14646 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
14647 $as_echo_n "(cached) " >&6
14649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14650 # We make a subdir and do the tests there. Otherwise we can end up
14651 # making bogus files that we don't know about and never remove. For
14652 # instance it was reported that on HP-UX the gcc test will end up
14653 # making a dummy file named 'D' -- because '-MD' means "put the output
14655 rm -rf conftest.dir
14657 # Copy depcomp to subdir because otherwise we won't find it if we're
14658 # using a relative directory.
14659 cp "$am_depcomp" conftest.dir
14661 # We will build objects and dependencies in a subdirectory because
14662 # it helps to detect inapplicable dependency modes. For instance
14663 # both Tru64's cc and ICC support -MD to output dependencies as a
14664 # side effect of compilation, but ICC will put the dependencies in
14665 # the current directory while Tru64 will put them in the object
14669 am_cv_CC_dependencies_compiler_type
=none
14670 if test "$am_compiler_list" = ""; then
14671 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14673 am__universal
=false
14674 case " $depcc " in #(
14675 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
14678 for depmode
in $am_compiler_list; do
14679 # Setup a source with many dependencies, because some compilers
14680 # like to wrap large dependency lists on column 80 (with \), and
14681 # we should not choose a depcomp mode which is confused by this.
14683 # We need to recreate these files for each test, as the compiler may
14684 # overwrite some of them when testing with obscure command lines.
14685 # This happens at least with the AIX C compiler.
14687 for i
in 1 2 3 4 5 6; do
14688 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
14689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14690 # Solaris 10 /bin/sh.
14691 echo '/* dummy */' > sub
/conftst
$i.h
14693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14696 # mode. It turns out that the SunPro C++ compiler does not properly
14697 # handle '-M -o', and we need to detect this. Also, some Intel
14698 # versions had trouble with output in subdirs.
14699 am__obj
=sub
/conftest.
${OBJEXT-o}
14700 am__minus_obj
="-o $am__obj"
14703 # This depmode causes a compiler race in universal mode.
14704 test "$am__universal" = false ||
continue
14707 # After this tag, mechanisms are not by side-effect, so they'll
14708 # only be used when explicitly requested.
14709 if test "x$enable_dependency_tracking" = xyes
; then
14715 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
14716 # This compiler won't grok '-c -o', but also, the minuso test has
14717 # not run yet. These depmodes are late enough in the game, and
14718 # so weak that their functioning should not be impacted.
14719 am__obj
=conftest.
${OBJEXT-o}
14724 if depmode
=$depmode \
14725 source=sub
/conftest.c object
=$am__obj \
14726 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
14727 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
14728 >/dev
/null
2>conftest.err
&&
14729 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14730 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14731 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
14732 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
14733 # icc doesn't choke on unknown options, it will just issue warnings
14734 # or remarks (even with -Werror). So we grep stderr for any message
14735 # that says an option was ignored or not supported.
14736 # When given -MP, icc 7.0 and 7.1 complain thusly:
14737 # icc: Command line warning: ignoring option '-M'; no argument required
14738 # The diagnosis changed in icc 8.0:
14739 # icc: Command line remark: option '-MP' not supported
14740 if (grep 'ignoring option' conftest.err ||
14741 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
14742 am_cv_CC_dependencies_compiler_type
=$depmode
14749 rm -rf conftest.dir
14751 am_cv_CC_dependencies_compiler_type
=none
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14756 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14757 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
14760 test "x$enable_dependency_tracking" != xno \
14761 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
14762 am__fastdepCC_TRUE
=
14763 am__fastdepCC_FALSE
='#'
14765 am__fastdepCC_TRUE
='#'
14766 am__fastdepCC_FALSE
=
14771 # POSIX will say in a future version that running "rm -f" with no argument
14772 # is OK; and we want to be able to make that assumption in our Makefile
14773 # recipes. So use an aggressive probe to check that the usage we want is
14774 # actually supported "in the wild" to an acceptable degree.
14775 # See automake bug#10828.
14776 # To make any issue more visible, cause the running configure to be aborted
14777 # by default if the 'rm' program in use doesn't match our expectations; the
14778 # user can still override this though.
14779 if rm -f && rm -fr && rm -rf; then : OK
; else
14783 Your 'rm' program seems unable to run without file operands specified
14784 on the command line, even when the '-f' option is present. This is contrary
14785 to the behaviour of most rm programs out there, and not conforming with
14786 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14788 Please tell bug-automake@gnu.org about your system, including the value
14789 of your $PATH and any error possibly output before this message. This
14790 can help us improve future automake versions.
14793 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
14794 echo 'Configuration will proceed anyway, since you have set the' >&2
14795 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14799 Aborting the configuration process, to ensure you take notice of the issue.
14801 You can download and install GNU coreutils to get an 'rm' implementation
14802 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14804 If you want to complete the configuration process using your problematic
14805 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14806 to "yes", and re-run configure.
14809 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
14813 # Check whether --enable-silent-rules was given.
14814 if test "${enable_silent_rules+set}" = set; then :
14815 enableval
=$enable_silent_rules;
14818 case $enable_silent_rules in # (((
14819 yes) AM_DEFAULT_VERBOSITY
=0;;
14820 no
) AM_DEFAULT_VERBOSITY
=1;;
14821 *) AM_DEFAULT_VERBOSITY
=0;;
14823 am_make
=${MAKE-make}
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14825 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14826 if ${am_cv_make_support_nested_variables+:} false
; then :
14827 $as_echo_n "(cached) " >&6
14829 if $as_echo 'TRUE=$(BAR$(V))
14835 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
14836 am_cv_make_support_nested_variables
=yes
14838 am_cv_make_support_nested_variables
=no
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14842 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14843 if test $am_cv_make_support_nested_variables = yes; then
14845 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
14847 AM_V
=$AM_DEFAULT_VERBOSITY
14848 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
14853 # If a cpu ever has more than one simulator to choose from, use
14854 # --enable-sim=... to choose.
14855 # Check whether --enable-sim was given.
14856 if test "${enable_sim+set}" = set; then :
14857 enableval=$enable_sim; case "${enableval}" in
14859 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14864 # Check whether --enable-example-sims was given.
14865 if test "${enable_example_sims+set}" = set; then :
14866 enableval=$enable_example_sims;
14870 # Check whether --enable-targets was given.
14871 if test "${enable_targets+set}" = set; then :
14872 enableval=$enable_targets; case "${enableval}" in
14873 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all
'" "$LINENO" 5
14875 no) enable_targets= ;;
14876 *) enable_targets=$enableval ;;
14881 SIM_PRIMARY_TARGET=
14884 SIM_ENABLED_ARCHES=
14891 if test "${enable_sim}" != no; then
14892 for targ in `echo $target $enable_targets | sed 's
/,/ /g
'`
14894 sim_enable_arch_aarch64=false
14897 if test "${targ}" = "${target}"; then
14898 SIM_PRIMARY_TARGET=aarch64
14901 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14902 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14905 sim_enable_arch_aarch64=true
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14909 $as_echo_n "checking where to find the target cc... " >&6; }
14910 if test "x${build}" != "x${host}" ; then
14911 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14912 # We already found the complete path
14913 ac_dir=`dirname $CC_FOR_TARGET`
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14915 $as_echo "pre-installed in $ac_dir" >&6; }
14917 # Canadian cross, just use what we found
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14919 $as_echo "pre-installed" >&6; }
14923 case " ${configdirs} " in
14924 *" ${target_alias}-gcc "*) ;;
14928 if test $ok = yes; then
14929 # An in-tree tool is available and we can use it
14930 CC_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/${target_alias}-gcc'
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14932 $as_echo "just compiled" >&6; }
14933 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14934 # We already found the complete path
14935 ac_dir=`dirname $CC_FOR_TARGET`
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14937 $as_echo "pre-installed in $ac_dir" >&6; }
14938 elif test "x$target" = "x$host"; then
14939 # We can use an host tool
14940 CC_FOR_TARGET='$
(CC
)'
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14942 $as_echo "host tool" >&6; }
14944 # We need a cross tool
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14946 $as_echo "pre-installed" >&6; }
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14951 $as_echo_n "checking where to find the target as... " >&6; }
14952 if test "x${build}" != "x${host}" ; then
14953 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14954 # We already found the complete path
14955 ac_dir=`dirname $AS_FOR_TARGET`
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14957 $as_echo "pre-installed in $ac_dir" >&6; }
14959 # Canadian cross, just use what we found
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14961 $as_echo "pre-installed" >&6; }
14965 case " ${configdirs} " in
14966 *" \$(abs_builddir) "*) ;;
14970 if test $ok = yes; then
14971 # An in-tree tool is available and we can use it
14972 AS_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/gas
/as-new
'
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14974 $as_echo "just compiled" >&6; }
14975 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14976 # We already found the complete path
14977 ac_dir=`dirname $AS_FOR_TARGET`
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14979 $as_echo "pre-installed in $ac_dir" >&6; }
14980 elif test "x$target" = "x$host"; then
14981 # We can use an host tool
14982 AS_FOR_TARGET='$
(AS
)'
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14984 $as_echo "host tool" >&6; }
14986 # We need a cross tool
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14988 $as_echo "pre-installed" >&6; }
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14993 $as_echo_n "checking where to find the target ld... " >&6; }
14994 if test "x${build}" != "x${host}" ; then
14995 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14996 # We already found the complete path
14997 ac_dir=`dirname $LD_FOR_TARGET`
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14999 $as_echo "pre-installed in $ac_dir" >&6; }
15001 # Canadian cross, just use what we found
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15003 $as_echo "pre-installed" >&6; }
15007 case " ${configdirs} " in
15008 *" \$(abs_builddir) "*) ;;
15012 if test $ok = yes; then
15013 # An in-tree tool is available and we can use it
15014 LD_FOR_TARGET='$
$r/$
(HOST_SUBDIR
)/\$
(abs_builddir
)/..
/ld
/ld-new
'
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15016 $as_echo "just compiled" >&6; }
15017 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15018 # We already found the complete path
15019 ac_dir=`dirname $LD_FOR_TARGET`
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15021 $as_echo "pre-installed in $ac_dir" >&6; }
15022 elif test "x$target" = "x$host"; then
15023 # We can use an host tool
15024 LD_FOR_TARGET='$
(LD
)'
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15026 $as_echo "host tool" >&6; }
15028 # We need a cross tool
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15030 $as_echo "pre-installed" >&6; }
15039 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
15040 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
15041 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
15042 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
15046 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
15048 if ${sim_enable_arch_aarch64}; then
15049 SIM_ENABLE_ARCH_aarch64_TRUE=
15050 SIM_ENABLE_ARCH_aarch64_FALSE='#'
15052 SIM_ENABLE_ARCH_aarch64_TRUE
='#'
15053 SIM_ENABLE_ARCH_aarch64_FALSE
=
15056 sim_enable_arch_arm
=false
15059 if test "${targ}" = "${target}"; then
15060 SIM_PRIMARY_TARGET
=arm
15063 as_fn_append SIM_ENABLED_ARCHES
" arm"
15064 ac_config_files
="$ac_config_files arm/.gdbinit:common/gdbinit.in"
15067 sim_enable_arch_arm
=true
15074 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
15075 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
15076 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
15077 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
15081 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
15083 if ${sim_enable_arch_arm}; then
15084 SIM_ENABLE_ARCH_arm_TRUE
=
15085 SIM_ENABLE_ARCH_arm_FALSE
='#'
15087 SIM_ENABLE_ARCH_arm_TRUE
='#'
15088 SIM_ENABLE_ARCH_arm_FALSE
=
15091 sim_enable_arch_avr
=false
15094 if test "${targ}" = "${target}"; then
15095 SIM_PRIMARY_TARGET
=avr
15098 as_fn_append SIM_ENABLED_ARCHES
" avr"
15099 ac_config_files
="$ac_config_files avr/.gdbinit:common/gdbinit.in"
15102 sim_enable_arch_avr
=true
15109 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
15110 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
15111 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
15112 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
15116 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
15118 if ${sim_enable_arch_avr}; then
15119 SIM_ENABLE_ARCH_avr_TRUE
=
15120 SIM_ENABLE_ARCH_avr_FALSE
='#'
15122 SIM_ENABLE_ARCH_avr_TRUE
='#'
15123 SIM_ENABLE_ARCH_avr_FALSE
=
15126 sim_enable_arch_bfin
=false
15129 if test "${targ}" = "${target}"; then
15130 SIM_PRIMARY_TARGET
=bfin
15133 as_fn_append SIM_ENABLED_ARCHES
" bfin"
15134 ac_config_files
="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
15137 sim_enable_arch_bfin
=true
15144 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
15145 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
15146 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
15147 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
15151 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
15153 if ${sim_enable_arch_bfin}; then
15154 SIM_ENABLE_ARCH_bfin_TRUE
=
15155 SIM_ENABLE_ARCH_bfin_FALSE
='#'
15157 SIM_ENABLE_ARCH_bfin_TRUE
='#'
15158 SIM_ENABLE_ARCH_bfin_FALSE
=
15161 sim_enable_arch_bpf
=false
15164 if test "${targ}" = "${target}"; then
15165 SIM_PRIMARY_TARGET
=bpf
15168 as_fn_append SIM_ENABLED_ARCHES
" bpf"
15169 ac_config_files
="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
15172 sim_enable_arch_bpf
=true
15179 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
15180 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
15181 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
15182 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
15186 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
15188 if ${sim_enable_arch_bpf}; then
15189 SIM_ENABLE_ARCH_bpf_TRUE
=
15190 SIM_ENABLE_ARCH_bpf_FALSE
='#'
15192 SIM_ENABLE_ARCH_bpf_TRUE
='#'
15193 SIM_ENABLE_ARCH_bpf_FALSE
=
15196 sim_enable_arch_cr16
=false
15199 if test "${targ}" = "${target}"; then
15200 SIM_PRIMARY_TARGET
=cr16
15203 as_fn_append SIM_ENABLED_ARCHES
" cr16"
15204 ac_config_files
="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
15207 sim_enable_arch_cr16
=true
15214 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
15215 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
15216 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
15217 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
15221 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
15223 if ${sim_enable_arch_cr16}; then
15224 SIM_ENABLE_ARCH_cr16_TRUE
=
15225 SIM_ENABLE_ARCH_cr16_FALSE
='#'
15227 SIM_ENABLE_ARCH_cr16_TRUE
='#'
15228 SIM_ENABLE_ARCH_cr16_FALSE
=
15231 sim_enable_arch_cris
=false
15233 all|cris-
*-* | crisv32-
*-*)
15234 if test "${targ}" = "${target}"; then
15235 SIM_PRIMARY_TARGET
=cris
15238 as_fn_append SIM_ENABLED_ARCHES
" cris"
15239 ac_config_files
="$ac_config_files cris/.gdbinit:common/gdbinit.in"
15242 sim_enable_arch_cris
=true
15249 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
15250 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
15251 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
15252 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
15256 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
15258 if ${sim_enable_arch_cris}; then
15259 SIM_ENABLE_ARCH_cris_TRUE
=
15260 SIM_ENABLE_ARCH_cris_FALSE
='#'
15262 SIM_ENABLE_ARCH_cris_TRUE
='#'
15263 SIM_ENABLE_ARCH_cris_FALSE
=
15266 sim_enable_arch_d10v
=false
15269 if test "${targ}" = "${target}"; then
15270 SIM_PRIMARY_TARGET
=d10v
15273 as_fn_append SIM_ENABLED_ARCHES
" d10v"
15274 ac_config_files
="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
15277 sim_enable_arch_d10v
=true
15284 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
15285 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
15286 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
15287 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
15291 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
15293 if ${sim_enable_arch_d10v}; then
15294 SIM_ENABLE_ARCH_d10v_TRUE
=
15295 SIM_ENABLE_ARCH_d10v_FALSE
='#'
15297 SIM_ENABLE_ARCH_d10v_TRUE
='#'
15298 SIM_ENABLE_ARCH_d10v_FALSE
=
15301 sim_enable_arch_frv
=false
15304 if test "${targ}" = "${target}"; then
15305 SIM_PRIMARY_TARGET
=frv
15308 as_fn_append SIM_ENABLED_ARCHES
" frv"
15309 ac_config_files
="$ac_config_files frv/.gdbinit:common/gdbinit.in"
15312 sim_enable_arch_frv
=true
15319 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
15320 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
15321 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
15322 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
15326 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
15328 if ${sim_enable_arch_frv}; then
15329 SIM_ENABLE_ARCH_frv_TRUE
=
15330 SIM_ENABLE_ARCH_frv_FALSE
='#'
15332 SIM_ENABLE_ARCH_frv_TRUE
='#'
15333 SIM_ENABLE_ARCH_frv_FALSE
=
15336 sim_enable_arch_ft32
=false
15339 if test "${targ}" = "${target}"; then
15340 SIM_PRIMARY_TARGET
=ft32
15343 as_fn_append SIM_ENABLED_ARCHES
" ft32"
15344 ac_config_files
="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
15347 sim_enable_arch_ft32
=true
15354 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
15355 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
15356 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
15357 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
15361 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
15363 if ${sim_enable_arch_ft32}; then
15364 SIM_ENABLE_ARCH_ft32_TRUE
=
15365 SIM_ENABLE_ARCH_ft32_FALSE
='#'
15367 SIM_ENABLE_ARCH_ft32_TRUE
='#'
15368 SIM_ENABLE_ARCH_ft32_FALSE
=
15371 sim_enable_arch_h8300
=false
15374 if test "${targ}" = "${target}"; then
15375 SIM_PRIMARY_TARGET
=h8300
15378 as_fn_append SIM_ENABLED_ARCHES
" h8300"
15379 ac_config_files
="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15382 sim_enable_arch_h8300
=true
15389 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
15390 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15391 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15392 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
15396 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15398 if ${sim_enable_arch_h8300}; then
15399 SIM_ENABLE_ARCH_h8300_TRUE
=
15400 SIM_ENABLE_ARCH_h8300_FALSE
='#'
15402 SIM_ENABLE_ARCH_h8300_TRUE
='#'
15403 SIM_ENABLE_ARCH_h8300_FALSE
=
15406 sim_enable_arch_iq2000
=false
15409 if test "${targ}" = "${target}"; then
15410 SIM_PRIMARY_TARGET
=iq2000
15413 as_fn_append SIM_ENABLED_ARCHES
" iq2000"
15414 ac_config_files
="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15417 sim_enable_arch_iq2000
=true
15424 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
15425 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15426 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15427 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15431 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15433 if ${sim_enable_arch_iq2000}; then
15434 SIM_ENABLE_ARCH_iq2000_TRUE
=
15435 SIM_ENABLE_ARCH_iq2000_FALSE
='#'
15437 SIM_ENABLE_ARCH_iq2000_TRUE
='#'
15438 SIM_ENABLE_ARCH_iq2000_FALSE
=
15441 sim_enable_arch_lm32
=false
15444 if test "${targ}" = "${target}"; then
15445 SIM_PRIMARY_TARGET
=lm32
15448 as_fn_append SIM_ENABLED_ARCHES
" lm32"
15449 ac_config_files
="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15452 sim_enable_arch_lm32
=true
15459 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15460 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15461 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15462 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15466 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15468 if ${sim_enable_arch_lm32}; then
15469 SIM_ENABLE_ARCH_lm32_TRUE
=
15470 SIM_ENABLE_ARCH_lm32_FALSE
='#'
15472 SIM_ENABLE_ARCH_lm32_TRUE
='#'
15473 SIM_ENABLE_ARCH_lm32_FALSE
=
15476 sim_enable_arch_m32c
=false
15479 if test "${targ}" = "${target}"; then
15480 SIM_PRIMARY_TARGET
=m32c
15483 as_fn_append SIM_ENABLED_ARCHES
" m32c"
15484 ac_config_files
="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15487 sim_enable_arch_m32c
=true
15494 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15495 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15496 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15497 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15501 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15503 if ${sim_enable_arch_m32c}; then
15504 SIM_ENABLE_ARCH_m32c_TRUE
=
15505 SIM_ENABLE_ARCH_m32c_FALSE
='#'
15507 SIM_ENABLE_ARCH_m32c_TRUE
='#'
15508 SIM_ENABLE_ARCH_m32c_FALSE
=
15511 sim_enable_arch_m32r
=false
15514 if test "${targ}" = "${target}"; then
15515 SIM_PRIMARY_TARGET
=m32r
15518 as_fn_append SIM_ENABLED_ARCHES
" m32r"
15519 ac_config_files
="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15522 sim_enable_arch_m32r
=true
15529 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15530 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15531 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15532 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15536 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15538 if ${sim_enable_arch_m32r}; then
15539 SIM_ENABLE_ARCH_m32r_TRUE
=
15540 SIM_ENABLE_ARCH_m32r_FALSE
='#'
15542 SIM_ENABLE_ARCH_m32r_TRUE
='#'
15543 SIM_ENABLE_ARCH_m32r_FALSE
=
15546 sim_enable_arch_m68hc11
=false
15548 all|m68hc11-
*-*|m6811-
*-*)
15549 if test "${targ}" = "${target}"; then
15550 SIM_PRIMARY_TARGET
=m68hc11
15553 as_fn_append SIM_ENABLED_ARCHES
" m68hc11"
15554 ac_config_files
="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15557 sim_enable_arch_m68hc11
=true
15564 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15565 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15566 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15567 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15571 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15573 if ${sim_enable_arch_m68hc11}; then
15574 SIM_ENABLE_ARCH_m68hc11_TRUE
=
15575 SIM_ENABLE_ARCH_m68hc11_FALSE
='#'
15577 SIM_ENABLE_ARCH_m68hc11_TRUE
='#'
15578 SIM_ENABLE_ARCH_m68hc11_FALSE
=
15581 sim_enable_arch_mcore
=false
15584 if test "${targ}" = "${target}"; then
15585 SIM_PRIMARY_TARGET
=mcore
15588 as_fn_append SIM_ENABLED_ARCHES
" mcore"
15589 ac_config_files
="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15592 sim_enable_arch_mcore
=true
15599 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15600 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15601 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15602 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15606 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15608 if ${sim_enable_arch_mcore}; then
15609 SIM_ENABLE_ARCH_mcore_TRUE
=
15610 SIM_ENABLE_ARCH_mcore_FALSE
='#'
15612 SIM_ENABLE_ARCH_mcore_TRUE
='#'
15613 SIM_ENABLE_ARCH_mcore_FALSE
=
15616 sim_enable_arch_microblaze
=false
15618 all|microblaze
*-*-*)
15619 if test "${targ}" = "${target}"; then
15620 SIM_PRIMARY_TARGET
=microblaze
15623 as_fn_append SIM_ENABLED_ARCHES
" microblaze"
15624 ac_config_files
="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15627 sim_enable_arch_microblaze
=true
15634 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15635 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15636 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15637 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15641 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15643 if ${sim_enable_arch_microblaze}; then
15644 SIM_ENABLE_ARCH_microblaze_TRUE
=
15645 SIM_ENABLE_ARCH_microblaze_FALSE
='#'
15647 SIM_ENABLE_ARCH_microblaze_TRUE
='#'
15648 SIM_ENABLE_ARCH_microblaze_FALSE
=
15651 sim_enable_arch_mips
=false
15654 if test "${targ}" = "${target}"; then
15655 SIM_PRIMARY_TARGET
=mips
15658 as_fn_append SIM_ENABLED_ARCHES
" mips"
15659 ac_config_files
="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15662 sim_enable_arch_mips
=true
15669 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15670 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15671 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15672 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15676 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15678 if ${sim_enable_arch_mips}; then
15679 SIM_ENABLE_ARCH_mips_TRUE
=
15680 SIM_ENABLE_ARCH_mips_FALSE
='#'
15682 SIM_ENABLE_ARCH_mips_TRUE
='#'
15683 SIM_ENABLE_ARCH_mips_FALSE
=
15686 sim_enable_arch_mn10300
=false
15689 if test "${targ}" = "${target}"; then
15690 SIM_PRIMARY_TARGET
=mn10300
15693 as_fn_append SIM_ENABLED_ARCHES
" mn10300"
15694 ac_config_files
="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15697 sim_enable_arch_mn10300
=true
15704 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15705 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15706 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15707 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15711 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15713 if ${sim_enable_arch_mn10300}; then
15714 SIM_ENABLE_ARCH_mn10300_TRUE
=
15715 SIM_ENABLE_ARCH_mn10300_FALSE
='#'
15717 SIM_ENABLE_ARCH_mn10300_TRUE
='#'
15718 SIM_ENABLE_ARCH_mn10300_FALSE
=
15721 sim_enable_arch_moxie
=false
15724 if test "${targ}" = "${target}"; then
15725 SIM_PRIMARY_TARGET
=moxie
15728 as_fn_append SIM_ENABLED_ARCHES
" moxie"
15729 ac_config_files
="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15732 sim_enable_arch_moxie
=true
15739 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15740 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15741 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15742 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15746 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15748 if ${sim_enable_arch_moxie}; then
15749 SIM_ENABLE_ARCH_moxie_TRUE
=
15750 SIM_ENABLE_ARCH_moxie_FALSE
='#'
15752 SIM_ENABLE_ARCH_moxie_TRUE
='#'
15753 SIM_ENABLE_ARCH_moxie_FALSE
=
15756 sim_enable_arch_msp430
=false
15759 if test "${targ}" = "${target}"; then
15760 SIM_PRIMARY_TARGET
=msp430
15763 as_fn_append SIM_ENABLED_ARCHES
" msp430"
15764 ac_config_files
="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15767 sim_enable_arch_msp430
=true
15774 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15775 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15776 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15777 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15781 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15783 if ${sim_enable_arch_msp430}; then
15784 SIM_ENABLE_ARCH_msp430_TRUE
=
15785 SIM_ENABLE_ARCH_msp430_FALSE
='#'
15787 SIM_ENABLE_ARCH_msp430_TRUE
='#'
15788 SIM_ENABLE_ARCH_msp430_FALSE
=
15791 sim_enable_arch_or1k
=false
15794 if test "${targ}" = "${target}"; then
15795 SIM_PRIMARY_TARGET
=or1k
15798 as_fn_append SIM_ENABLED_ARCHES
" or1k"
15799 ac_config_files
="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15802 sim_enable_arch_or1k
=true
15809 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15810 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15811 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15812 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15816 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15818 if ${sim_enable_arch_or1k}; then
15819 SIM_ENABLE_ARCH_or1k_TRUE
=
15820 SIM_ENABLE_ARCH_or1k_FALSE
='#'
15822 SIM_ENABLE_ARCH_or1k_TRUE
='#'
15823 SIM_ENABLE_ARCH_or1k_FALSE
=
15826 sim_enable_arch_ppc
=false
15829 if test "${targ}" = "${target}"; then
15830 SIM_PRIMARY_TARGET
=ppc
15833 as_fn_append SIM_ENABLED_ARCHES
" ppc"
15834 ac_config_files
="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15837 sim_enable_arch_ppc
=true
15844 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15845 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15846 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15847 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15851 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15853 if ${sim_enable_arch_ppc}; then
15854 SIM_ENABLE_ARCH_ppc_TRUE
=
15855 SIM_ENABLE_ARCH_ppc_FALSE
='#'
15857 SIM_ENABLE_ARCH_ppc_TRUE
='#'
15858 SIM_ENABLE_ARCH_ppc_FALSE
=
15861 sim_enable_arch_pru
=false
15864 if test "${targ}" = "${target}"; then
15865 SIM_PRIMARY_TARGET
=pru
15868 as_fn_append SIM_ENABLED_ARCHES
" pru"
15869 ac_config_files
="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15872 sim_enable_arch_pru
=true
15879 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15880 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15881 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15882 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15886 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15888 if ${sim_enable_arch_pru}; then
15889 SIM_ENABLE_ARCH_pru_TRUE
=
15890 SIM_ENABLE_ARCH_pru_FALSE
='#'
15892 SIM_ENABLE_ARCH_pru_TRUE
='#'
15893 SIM_ENABLE_ARCH_pru_FALSE
=
15896 sim_enable_arch_riscv
=false
15899 if test "${targ}" = "${target}"; then
15900 SIM_PRIMARY_TARGET
=riscv
15903 as_fn_append SIM_ENABLED_ARCHES
" riscv"
15904 ac_config_files
="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15907 sim_enable_arch_riscv
=true
15914 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15915 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15916 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15917 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15921 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15923 if ${sim_enable_arch_riscv}; then
15924 SIM_ENABLE_ARCH_riscv_TRUE
=
15925 SIM_ENABLE_ARCH_riscv_FALSE
='#'
15927 SIM_ENABLE_ARCH_riscv_TRUE
='#'
15928 SIM_ENABLE_ARCH_riscv_FALSE
=
15931 sim_enable_arch_rl78
=false
15934 if test "${targ}" = "${target}"; then
15935 SIM_PRIMARY_TARGET
=rl78
15938 as_fn_append SIM_ENABLED_ARCHES
" rl78"
15939 ac_config_files
="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15942 sim_enable_arch_rl78
=true
15949 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15950 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15951 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15952 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15956 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15958 if ${sim_enable_arch_rl78}; then
15959 SIM_ENABLE_ARCH_rl78_TRUE
=
15960 SIM_ENABLE_ARCH_rl78_FALSE
='#'
15962 SIM_ENABLE_ARCH_rl78_TRUE
='#'
15963 SIM_ENABLE_ARCH_rl78_FALSE
=
15966 sim_enable_arch_rx
=false
15969 if test "${targ}" = "${target}"; then
15970 SIM_PRIMARY_TARGET
=rx
15973 as_fn_append SIM_ENABLED_ARCHES
" rx"
15974 ac_config_files
="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15977 sim_enable_arch_rx
=true
15984 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15985 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15986 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15987 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15991 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15993 if ${sim_enable_arch_rx}; then
15994 SIM_ENABLE_ARCH_rx_TRUE
=
15995 SIM_ENABLE_ARCH_rx_FALSE
='#'
15997 SIM_ENABLE_ARCH_rx_TRUE
='#'
15998 SIM_ENABLE_ARCH_rx_FALSE
=
16001 sim_enable_arch_sh
=false
16004 if test "${targ}" = "${target}"; then
16005 SIM_PRIMARY_TARGET
=sh
16008 as_fn_append SIM_ENABLED_ARCHES
" sh"
16009 ac_config_files
="$ac_config_files sh/.gdbinit:common/gdbinit.in"
16012 sim_enable_arch_sh
=true
16019 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
16020 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
16021 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
16022 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
16026 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
16028 if ${sim_enable_arch_sh}; then
16029 SIM_ENABLE_ARCH_sh_TRUE
=
16030 SIM_ENABLE_ARCH_sh_FALSE
='#'
16032 SIM_ENABLE_ARCH_sh_TRUE
='#'
16033 SIM_ENABLE_ARCH_sh_FALSE
=
16036 sim_enable_arch_erc32
=false
16039 if test "${targ}" = "${target}"; then
16040 SIM_PRIMARY_TARGET
=erc32
16043 as_fn_append SIM_ENABLED_ARCHES
" erc32"
16044 ac_config_files
="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
16047 sim_enable_arch_erc32
=true
16054 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
16055 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
16056 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
16057 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
16061 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
16063 if ${sim_enable_arch_erc32}; then
16064 SIM_ENABLE_ARCH_erc32_TRUE
=
16065 SIM_ENABLE_ARCH_erc32_FALSE
='#'
16067 SIM_ENABLE_ARCH_erc32_TRUE
='#'
16068 SIM_ENABLE_ARCH_erc32_FALSE
=
16071 sim_enable_arch_v850
=false
16074 if test "${targ}" = "${target}"; then
16075 SIM_PRIMARY_TARGET
=v850
16078 as_fn_append SIM_ENABLED_ARCHES
" v850"
16079 ac_config_files
="$ac_config_files v850/.gdbinit:common/gdbinit.in"
16082 sim_enable_arch_v850
=true
16089 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
16090 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
16091 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
16092 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
16096 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
16098 if ${sim_enable_arch_v850}; then
16099 SIM_ENABLE_ARCH_v850_TRUE
=
16100 SIM_ENABLE_ARCH_v850_FALSE
='#'
16102 SIM_ENABLE_ARCH_v850_TRUE
='#'
16103 SIM_ENABLE_ARCH_v850_FALSE
=
16109 if test "x${enable_example_sims}" = xyes
; then
16114 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
16115 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
16116 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
16118 as_fn_append SIM_TOOLCHAIN_VARS
" AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
16121 as_fn_append SIM_ENABLED_ARCHES
" example-synacor"
16122 ac_config_files
="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
16126 if test "${enable_example_sims}" = "yes"; then
16127 SIM_ENABLE_ARCH_examples_TRUE
=
16128 SIM_ENABLE_ARCH_examples_FALSE
='#'
16130 SIM_ENABLE_ARCH_examples_TRUE
='#'
16131 SIM_ENABLE_ARCH_examples_FALSE
=
16135 if test "$ENABLE_SIM" = "yes"; then
16137 ENABLE_SIM_FALSE
='#'
16139 ENABLE_SIM_TRUE
='#'
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
16145 $as_echo_n "checking whether to force sim alignment... " >&6; }
16147 # Check whether --enable-sim-alignment was given.
16148 if test "${enable_sim_alignment+set}" = set; then :
16149 enableval
=$enable_sim_alignment; case "${enableval}" in
16150 yes | strict | STRICT
) sim_alignment
="STRICT_ALIGNMENT";;
16151 no | nonstrict | NONSTRICT
) sim_alignment
="NONSTRICT_ALIGNMENT";;
16152 forced | FORCED
) sim_alignment
="FORCED_ALIGNMENT";;
16153 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
16157 cat >>confdefs.h
<<_ACEOF
16158 #define WITH_ALIGNMENT ${sim_alignment:-0}
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16162 $as_echo "${sim_alignment:-no}" >&6; }
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
16166 $as_echo_n "checking whether to enable sim asserts... " >&6; }
16168 # Check whether --enable-sim-assert was given.
16169 if test "${enable_sim_assert+set}" = set; then :
16170 enableval
=$enable_sim_assert; case "${enableval}" in
16171 yes) sim_assert
="1";;
16172 no
) sim_assert
="0";;
16173 *) as_fn_error $?
"--enable-sim-assert does not take a value" "$LINENO" 5;;
16177 cat >>confdefs.h
<<_ACEOF
16178 #define WITH_ASSERT $sim_assert
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
16182 $as_echo "$sim_assert" >&6; }
16187 cgendir
='$(srcdir)/../../cgen'
16188 if test -r ${srcdir}/..
/cgen
/iformat.scm
; then
16189 cgendir
='$(srcdir)/../cgen'
16191 # Check whether --enable-cgen-maint was given.
16192 if test "${enable_cgen_maint+set}" = set; then :
16193 enableval
=$enable_cgen_maint; case "${enableval}" in
16194 yes) cgen_maint
=yes ;;
16195 no
) cgen_maint
=no
;;
16197 # Argument is a directory where cgen can be found. In some
16198 # future world cgen could be installable, but right now this
16199 # is not the case. Instead we assume the directory is a path
16200 # to the cgen source tree.
16202 if test -r ${enableval}/iformat.scm
; then
16203 # This looks like a cgen source tree.
16204 cgendir
=${enableval}
16206 as_fn_error $?
"${enableval} doesn't look like a cgen source tree" "$LINENO" 5
16211 if test x
${cgen_maint} != xno
; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
16221 $as_echo_n "checking for sim debug setting... " >&6; }
16223 # Check whether --enable-sim-debug was given.
16224 if test "${enable_sim_debug+set}" = set; then :
16225 enableval
=$enable_sim_debug; case "${enableval}" in
16226 yes) sim_debug
="7";;
16227 no
) sim_debug
="0";;
16228 *) sim_debug
="($enableval)";;
16231 if test "$sim_debug" != "0"; then
16233 cat >>confdefs.h
<<_ACEOF
16234 #define DEBUG $sim_debug
16239 cat >>confdefs.h
<<_ACEOF
16240 #define WITH_DEBUG $sim_debug
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
16244 $as_echo "$sim_debug" >&6; }
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
16247 $as_echo_n "checking whether to force sim endianness... " >&6; }
16249 # Check whether --enable-sim-endian was given.
16250 if test "${enable_sim_endian+set}" = set; then :
16251 enableval
=$enable_sim_endian; case "${enableval}" in
16252 b
*|B
*) sim_endian
="BFD_ENDIAN_BIG";;
16253 l
*|L
*) sim_endian
="BFD_ENDIAN_LITTLE";;
16255 *) as_fn_error $?
"\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
16259 cat >>confdefs.h
<<_ACEOF
16260 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16264 $as_echo "${sim_alignment:-no}" >&6; }
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
16268 $as_echo_n "checking default sim environment setting... " >&6; }
16269 sim_environment
="ALL_ENVIRONMENT"
16270 # Check whether --enable-sim-environment was given.
16271 if test "${enable_sim_environment+set}" = set; then :
16272 enableval
=$enable_sim_environment; case "${enableval}" in
16273 all | ALL
) sim_environment
="ALL_ENVIRONMENT";;
16274 user | USER
) sim_environment
="USER_ENVIRONMENT";;
16275 virtual | VIRTUAL
) sim_environment
="VIRTUAL_ENVIRONMENT";;
16276 operating | OPERATING
) sim_environment
="OPERATING_ENVIRONMENT";;
16277 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16281 cat >>confdefs.h
<<_ACEOF
16282 #define WITH_ENVIRONMENT $sim_environment
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
16286 $as_echo "$sim_environment" >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
16289 $as_echo_n "checking for sim hardware settings... " >&6; }
16290 # Check whether --enable-sim-hardware was given.
16291 if test "${enable_sim_hardware+set}" = set; then :
16292 enableval
=$enable_sim_hardware;
16294 enable_sim_hardware
="yes"
16298 if test "$enable_sim_hardware" = no
; then
16299 sim_hw_cflags
="-DWITH_HW=0"
16300 elif test "$enable_sim_hardware" = yes; then
16301 sim_hw_cflags
="-DWITH_HW=1"
16302 sim_hw_sockser
="dv-sockser.o"
16303 sim_hw_cflags
="$sim_hw_cflags -DHAVE_DV_SOCKSER"
16305 as_fn_error $?
"unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
16307 if test "$enable_sim_hardware" = "yes"; then
16308 SIM_ENABLE_HW_TRUE
=
16309 SIM_ENABLE_HW_FALSE
='#'
16311 SIM_ENABLE_HW_TRUE
='#'
16312 SIM_ENABLE_HW_FALSE
=
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
16316 $as_echo "${enable_sim_hardware}" >&6; }
16317 SIM_HW_CFLAGS
=$sim_hw_cflags
16319 SIM_HW_SOCKSER
=$sim_hw_sockser
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
16323 $as_echo_n "checking sim inline settings... " >&6; }
16324 sim_inline
="-DDEFAULT_INLINE=0"
16325 # Check whether --enable-sim-inline was given.
16326 if test "${enable_sim_inline+set}" = set; then :
16327 enableval
=$enable_sim_inline; sim_inline
=""
16328 case "$enableval" in
16329 no
) sim_inline
="-DDEFAULT_INLINE=0";;
16330 0) sim_inline
="-DDEFAULT_INLINE=0";;
16331 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
16332 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
16333 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16336 *_INLINE
=*) new_flag
="-D$x";;
16337 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
16338 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
16339 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
16341 if test x
"$sim_inline" = x
""; then
16342 sim_inline
="$new_flag"
16344 sim_inline
="$sim_inline $new_flag"
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16351 $as_echo "$sim_inline" >&6; }
16352 SIM_INLINE
=$sim_inline
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16356 $as_echo_n "checking for sim profile settings... " >&6; }
16359 # Check whether --enable-sim-profile was given.
16360 if test "${enable_sim_profile+set}" = set; then :
16361 enableval
=$enable_sim_profile; case "${enableval}" in
16362 yes) profile
="1" sim_profile
="-1";;
16363 no
) profile
="0" sim_profile
="0";;
16365 profile
="(${enableval})" sim_profile
="(${enableval})";;
16369 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16370 if test x
"$sim_profile" = x
; then
16371 sim_profile
="(PROFILE_$x"
16373 sim_profile
="${sim_profile}|PROFILE_$x"
16376 sim_profile
="$sim_profile)" ;;
16380 cat >>confdefs.h
<<_ACEOF
16381 #define PROFILE $profile
16385 cat >>confdefs.h
<<_ACEOF
16386 #define WITH_PROFILE $sim_profile
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16390 $as_echo "$sim_profile" >&6; }
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16393 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16394 # Check whether --enable-sim-reserved-bits was given.
16395 if test "${enable_sim_reserved_bits+set}" = set; then :
16396 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
16398 *) as_fn_error $?
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16402 if test "x${enable_sim_reserved_bits}" != xno
; then
16403 sim_reserved_bits
=1
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405 $as_echo "yes" >&6; }
16407 sim_reserved_bits
=0
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16409 $as_echo "no" >&6; }
16412 cat >>confdefs.h
<<_ACEOF
16413 #define WITH_RESERVED_BITS $sim_reserved_bits
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16418 $as_echo_n "checking for sim cache size... " >&6; }
16420 # Check whether --enable-sim-scache was given.
16421 if test "${enable_sim_scache+set}" = set; then :
16422 enableval
=$enable_sim_scache; case "${enableval}" in
16424 no
) sim_scache
="0";;
16425 [0-9]*) sim_scache
="${enableval}";;
16426 *) as_fn_error $?
"\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16431 cat >>confdefs.h
<<_ACEOF
16432 #define WITH_SCACHE $sim_scache
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16436 $as_echo "$sim_scache" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16439 $as_echo_n "checking number of sim cpus to support... " >&6; }
16440 default_sim_smp
="0"
16441 sim_smp
="$default_sim_smp"
16442 # Check whether --enable-sim-smp was given.
16443 if test "${enable_sim_smp+set}" = set; then :
16444 enableval
=$enable_sim_smp; case "${enableval}" in
16447 *) sim_smp
="$enableval";;
16450 IGEN_FLAGS_SMP
="-N ${sim_smp}"
16452 if test "x$sim_smp" = x0
; then :
16456 cat >>confdefs.h
<<_ACEOF
16457 #define WITH_SMP $sim_smp
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16462 $as_echo "$sim_smp" >&6; }
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16465 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16467 # Check whether --enable-sim-stdio was given.
16468 if test "${enable_sim_stdio+set}" = set; then :
16469 enableval
=$enable_sim_stdio; case "${enableval}" in
16470 yes) sim_stdio
="DO_USE_STDIO";;
16471 no
) sim_stdio
="DONT_USE_STDIO";;
16472 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16476 cat >>confdefs.h
<<_ACEOF
16477 #define WITH_STDIO $sim_stdio
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16481 $as_echo "$sim_stdio" >&6; }
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16484 $as_echo_n "checking for sim trace settings... " >&6; }
16485 sim_trace
="~TRACE_debug"
16486 # Check whether --enable-sim-trace was given.
16487 if test "${enable_sim_trace+set}" = set; then :
16488 enableval
=$enable_sim_trace; case "${enableval}" in
16489 yes) sim_trace
="-1";;
16490 no
) sim_trace
="0";;
16492 sim_trace
="'(${enableval})'";;
16495 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
16496 if test x
"$sim_trace" = x
; then
16497 sim_trace
="(TRACE_$x"
16499 sim_trace
="${sim_trace}|TRACE_$x"
16502 sim_trace
="$sim_trace)" ;;
16506 cat >>confdefs.h
<<_ACEOF
16507 #define WITH_TRACE $sim_trace
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16511 $as_echo "$sim_trace" >&6; }
16513 # Check whether --enable-werror was given.
16514 if test "${enable_werror+set}" = set; then :
16515 enableval
=$enable_werror; case "${enableval}" in
16516 yes | y
) ERROR_ON_WARNING
="yes" ;;
16517 no | n
) ERROR_ON_WARNING
="no" ;;
16518 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16523 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16524 ERROR_ON_WARNING
=yes
16528 if test "${ERROR_ON_WARNING}" = yes ; then
16529 WERROR_CFLAGS
="-Werror"
16532 build_warnings
="-Wall -Wpointer-arith
16533 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16534 -Wno-switch -Wno-char-subscripts
16535 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16536 -Wno-sign-compare -Wno-error=maybe-uninitialized
16537 -Wno-error=deprecated-register
16538 -Wimplicit-fallthrough=5
16541 -Wmissing-declarations
16543 build_warnings
="$build_warnings
16544 -Wdeclaration-after-statement
16545 -Wdeprecated-non-prototype
16546 -Wimplicit-function-declaration
16548 -Wincompatible-function-pointer-types
16549 -Wincompatible-pointer-types
16551 -Wmisleading-indentation
16552 -Wmissing-parameter-type
16553 -Wmissing-prototypes
16554 -Wold-style-declaration
16555 -Wold-style-definition
16559 -Wshift-negative-value
16560 -Wstrict-prototypes
16561 -Wno-enum-conversion
16563 build_build_warnings
="
16564 -Wno-stringop-truncation
16565 -Wno-implicit-fallthrough
16571 # Enable -Wno-format by default when using gcc on mingw since many
16572 # GCC versions complain about %I64.
16573 build_warnings
="$build_warnings -Wno-format" ;;
16575 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16576 # doesn't understand.
16577 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16578 # Solaris 11 <unistd.h> marks vfork deprecated.
16579 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16581 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16582 # but there's a special case for this below.
16583 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16586 # Check whether --enable-build-warnings was given.
16587 if test "${enable_build_warnings+set}" = set; then :
16588 enableval
=$enable_build_warnings; case "${enableval}" in
16590 no
) build_warnings
="-w";;
16591 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16592 build_warnings
="${build_warnings} ${t}";;
16593 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16594 build_warnings
="${t} ${build_warnings}";;
16595 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16597 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16598 echo "Setting compiler warning flags = $build_warnings" 6>&1
16601 # Check whether --enable-sim-build-warnings was given.
16602 if test "${enable_sim_build_warnings+set}" = set; then :
16603 enableval
=$enable_sim_build_warnings; case "${enableval}" in
16605 no
) build_warnings
="-w";;
16606 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16607 build_warnings
="${build_warnings} ${t}";;
16608 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16609 build_warnings
="${t} ${build_warnings}";;
16610 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16612 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16613 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16617 BUILD_WARN_CFLAGS
=""
16618 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16623 $as_echo_n "checking compiler warning flags... " >&6; }
16624 # Separate out the -Werror flag as some files just cannot be
16625 # compiled with it enabled.
16626 for w
in ${build_warnings}; do
16628 -Werr*) WERROR_CFLAGS
=-Werror ;;
16632 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16633 -Wformat-nonliteral)
16641 saved_CFLAGS
="$CFLAGS"
16642 CFLAGS
="$CFLAGS -Werror $wtest"
16643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16644 /* end confdefs.h. */
16654 if ac_fn_c_try_compile
"$LINENO"; then :
16655 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16658 CFLAGS
="$saved_CFLAGS"
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16663 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16666 if test "x
$cross_compiling" = "xno
"; then :
16667 SAVE_WARN_CFLAGS=$WARN_CFLAGS
16668 build_warnings=$build_build_warnings
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags
" >&5
16670 $as_echo_n "checking compiler warning flags...
" >&6; }
16671 # Separate out the -Werror flag as some files just cannot be
16672 # compiled with it enabled.
16673 for w in ${build_warnings}; do
16675 -Werr*) WERROR_CFLAGS=-Werror ;;
16679 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16680 -Wformat-nonliteral)
16688 saved_CFLAGS="$CFLAGS"
16689 CFLAGS="$CFLAGS -Werror $wtest"
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16701 if ac_fn_c_try_compile "$LINENO"; then :
16702 WARN_CFLAGS="${WARN_CFLAGS} $w"
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 CFLAGS="$saved_CFLAGS"
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16710 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16712 BUILD_WARN_CFLAGS
=$WARN_CFLAGS
16713 WARN_CFLAGS
=$SAVE_WARN_CFLAGS
16714 BUILD_WERROR_CFLAGS
=$WERROR_CFLAGS
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16719 $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16720 w
="-Wno-shadow=local"
16723 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16724 -Wformat-nonliteral)
16732 saved_CFLAGS
="$CFLAGS"
16733 CFLAGS
="$CFLAGS -Werror $wtest"
16734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16745 if ac_fn_c_try_compile
"$LINENO"; then :
16746 SIM_CFLAG_WNO_SHADOW_LOCAL
=-Wno-shadow=local
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750 $as_echo "yes" >&6; }
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754 $as_echo "no" >&6; }
16756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16757 CFLAGS
="$saved_CFLAGS"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16760 $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16761 w
="-Wno-unused-but-set-variable"
16764 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16765 -Wformat-nonliteral)
16773 saved_CFLAGS
="$CFLAGS"
16774 CFLAGS
="$CFLAGS -Werror $wtest"
16775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16786 if ac_fn_c_try_compile
"$LINENO"; then :
16787 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791 $as_echo "yes" >&6; }
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795 $as_echo "no" >&6; }
16797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16798 CFLAGS
="$saved_CFLAGS"
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16804 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16805 # Check whether --enable-sim-frv-trapdump was given.
16806 if test "${enable_sim_frv_trapdump+set}" = set; then :
16807 enableval
=$enable_sim_frv_trapdump; case "${enableval}" in
16809 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16813 if test "x${enable_sim_frv_trapdump}" = xyes
; then
16814 SIM_FRV_TRAPDUMP_FLAGS
="-DTRAPDUMP=1"
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16816 $as_echo "yes" >&6; }
16818 SIM_FRV_TRAPDUMP_FLAGS
="-DTRAPDUMP=0"
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16820 $as_echo "no" >&6; }
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16826 $as_echo_n "checking mips subtarget... " >&6; }
16827 SIM_MIPS_SUBTARGET
=
16828 case ${target} in #(
16830 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16832 SIM_MIPS_SUBTARGET
="-DSUBTARGET_R3900=1" ;; #(
16834 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16836 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16838 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16840 SIM_MIPS_SUBTARGET
="-DTARGET_ENABLE_FR=1" ;; #(
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16845 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16849 $as_echo_n "checking mips bitsize... " >&6; }
16850 SIM_MIPS_BITSIZE
=64
16851 case ${target} in #(
16853 SIM_MIPS_BITSIZE
=64 ;; #(
16855 SIM_MIPS_BITSIZE
=64 ;; #(
16857 SIM_MIPS_BITSIZE
=64 ;; #(
16859 SIM_MIPS_BITSIZE
=64 ;; #(
16861 SIM_MIPS_BITSIZE
=32 ;; #(
16863 SIM_MIPS_BITSIZE
=64 ;; #(
16865 SIM_MIPS_BITSIZE
=32 ;; #(
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16870 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16874 $as_echo_n "checking mips fpu bitsize... " >&6; }
16875 SIM_MIPS_FPU_BITSIZE
=64
16876 case ${target} in #(
16878 SIM_MIPS_FPU_BITSIZE
=32 ;; #(
16880 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16882 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16884 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16886 SIM_MIPS_FPU_BITSIZE
=64 ;; #(
16888 SIM_MIPS_FPU_BITSIZE
=32 ;; #(
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16893 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16896 SIM_MIPS_GEN
=SINGLE
16897 sim_mips_single_machine
="-M mipsIV"
16898 sim_mips_m16_machine
="-M mips16,mipsIII"
16899 sim_mips_single_filter
="32,64,f"
16900 sim_mips_m16_filter
="16"
16901 case ${target} in #(
16903 SIM_MIPS_GEN
=SINGLE
16904 sim_mips_single_filter
="32,f"
16905 sim_mips_single_machine
="-M r3900" ;; #(
16908 sim_mips_single_machine
="-M vr4100"
16909 sim_mips_m16_machine
="-M vr4100" ;; #(
16912 sim_mips_multi_configs
="\
16913 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16914 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16915 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16916 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16917 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16918 sim_mips_multi_default
=mips5000
;; #(
16919 mips
*-sde-elf* | mips
*-mti-elf*) :
16921 sim_mips_multi_configs
="\
16922 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16923 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16924 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16925 sim_mips_multi_default
=mipsisa64r2
;; #(
16927 SIM_MIPS_GEN
=M16
;; #(
16930 sim_mips_multi_configs
="\
16931 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16932 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16933 sim_mips_multi_default
=mipsisa32r2
;; #(
16935 SIM_MIPS_GEN
=SINGLE
16936 sim_mips_single_machine
="-M mips32r6"
16937 sim_mips_single_filter
="32,f" ;; #(
16940 sim_mips_single_machine
="-M mips32,mips16,mips16e,smartmips"
16941 sim_mips_m16_machine
="-M mips16,mips16e,mips32"
16942 sim_mips_single_filter
="32,f" ;; #(
16945 sim_mips_single_machine
="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16946 sim_mips_m16_machine
="-M mips16,mips16e,mips64r2" ;; #(
16948 SIM_MIPS_GEN
=SINGLE
16949 sim_mips_single_machine
="-M mips64r6" ;; #(
16951 SIM_MIPS_GEN
=SINGLE
16952 sim_mips_single_machine
="-M mips64,mips3d,sb1" ;; #(
16955 sim_mips_single_machine
="-M mips64,mips3d,mips16,mips16e,mdmx"
16956 sim_mips_m16_machine
="-M mips16,mips16e,mips64" ;; #(
16959 sim_mips_single_machine
="-M mipsIII,mips16"
16960 sim_mips_m16_machine
="-M mips16,mipsIII"
16961 sim_mips_single_filter
="32,f" ;; #(
16963 SIM_MIPS_GEN
=SINGLE
16964 sim_mips_single_filter
="32,f" ;; #(
16969 SIM_MIPS_IGEN_ITABLE_FLAGS
=
16970 SIM_MIPS_MULTI_SRC
=
16971 SIM_MIPS_MULTI_OBJ
=
16972 SIM_MIPS_MULTI_IGEN_CONFIGS
=
16973 if test "x$SIM_MIPS_GEN" = x
"MULTI"; then :
16974 if test -z "${sim_mips_multi_configs}" ||
test -z "${sim_mips_multi_default}"; then :
16975 as_fn_error $?
"Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16978 as_dir
=mips
; as_fn_mkdir_p
16979 rm -f mips
/multi-include.h mips
/multi-run.c
16980 sim_mips_seen_default
=no
16982 cat << __EOF__ > mips/multi-run.c
16983 /* Main entry point for MULTI simulators.
16984 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16986 This program is free software; you can redistribute it and/or modify
16987 it under the terms of the GNU General Public License as published by
16988 the Free Software Foundation; either version 3 of the License, or
16989 (at your option) any later version.
16991 This program is distributed in the hope that it will be useful,
16992 but WITHOUT ANY WARRANTY; without even the implied warranty of
16993 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16994 GNU General Public License for more details.
16996 You should have received a copy of the GNU General Public License
16997 along with this program. If not, see <http://www.gnu.org/licenses/>.
17001 This file was generated by sim/mips/configure. */
17003 #include "sim-main.h"
17004 #include "multi-include.h"
17005 #include "bfd/elf-bfd.h"
17006 #include "bfd/elfxx-mips.h"
17007 #include "elf/mips.h"
17013 sim_engine_run (SIM_DESC sd,
17016 int signal) /* ignore */
17020 if (STATE_ARCHITECTURE (sd) == NULL)
17021 mach = bfd_mach_${sim_mips_multi_default};
17022 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
17023 & EF_MIPS_ARCH_ASE_MICROMIPS)
17024 mach = bfd_mach_mips_micromips;
17027 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
17029 mach = STATE_ARCHITECTURE (SD)->mach;
17036 for fc in ${sim_mips_multi_configs}; do
17038 c
=`echo ${fc} | sed 's/:[^:]*$//'`
17039 bfdmachs
=`echo ${fc} | sed 's/.*://'`
17040 name
=`echo ${c} | sed 's/:.*//'`
17041 machine
=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
17042 filter
=`echo ${c} | sed 's/.*://'`
17044 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F ${filter} -M ${machine}"
17050 as_fn_append SIM_MIPS_MULTI_SRC
" mips/m16${name}_run.c"
17051 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/m16${name}_run.o"
17052 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16"
17054 *:*micromips32
*:*) :
17055 ws
="micromips_m32 micromips16 micromips32"
17057 as_fn_append SIM_MIPS_MULTI_SRC
" mips/micromips${name}_run.c"
17058 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/micromips${name}_run.o"
17059 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16,32"
17061 *:*micromips64
*:*) :
17062 ws
="micromips_m64 micromips16 micromips64"
17064 as_fn_append SIM_MIPS_MULTI_SRC
" mips/micromips${name}_run.c"
17065 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/micromips${name}_run.o"
17066 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
" -F 16,32,64"
17073 for base
in engine icache idecode model semantics support
; do
17074 as_fn_append SIM_MIPS_MULTI_SRC
" mips/${w}${name}_${base}.c"
17075 as_fn_append SIM_MIPS_MULTI_SRC
" mips/${w}${name}_${base}.h"
17076 as_fn_append SIM_MIPS_MULTI_OBJ
" mips/${w}${name}_${base}.o"
17078 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS
" ${w}${c}"
17081 echo "#include \"${w}${name}_engine.h\"" >> mips
/multi-include.h
17083 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
17084 echo " case bfd_mach_${mach}:" >> mips
/multi-run.c
17085 if test "x$mach" = x
"${sim_mips_multi_default}"; then :
17086 echo " default:" >> mips
/multi-run.c
17087 sim_mips_seen_default
=yes
17091 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
17092 >> mips
/multi-run.c
17093 echo " break;" >> mips
/multi-run.c
17096 if test "x$sim_mips_seen_default" = xno
; then :
17097 as_fn_error $?
"Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
17100 cat << __EOF__ >> mips/multi-run.c
17106 SIM_MIPS_IGEN_ITABLE_FLAGS
='$(SIM_MIPS_SINGLE_FLAGS)'
17107 if test "x$SIM_MIPS_GEN" = x
"M16"; then :
17108 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS
' $(SIM_MIPS_M16_FLAGS)'
17112 SIM_MIPS_SINGLE_FLAGS
="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
17113 SIM_MIPS_M16_FLAGS
="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
17121 if test "$SIM_MIPS_GEN" = "SINGLE"; then
17122 SIM_MIPS_GEN_MODE_SINGLE_TRUE
=
17123 SIM_MIPS_GEN_MODE_SINGLE_FALSE
='#'
17125 SIM_MIPS_GEN_MODE_SINGLE_TRUE
='#'
17126 SIM_MIPS_GEN_MODE_SINGLE_FALSE
=
17129 if test "$SIM_MIPS_GEN" = "M16"; then
17130 SIM_MIPS_GEN_MODE_M16_TRUE
=
17131 SIM_MIPS_GEN_MODE_M16_FALSE
='#'
17133 SIM_MIPS_GEN_MODE_M16_TRUE
='#'
17134 SIM_MIPS_GEN_MODE_M16_FALSE
=
17137 if test "$SIM_MIPS_GEN" = "MULTI"; then
17138 SIM_MIPS_GEN_MODE_MULTI_TRUE
=
17139 SIM_MIPS_GEN_MODE_MULTI_FALSE
='#'
17141 SIM_MIPS_GEN_MODE_MULTI_TRUE
='#'
17142 SIM_MIPS_GEN_MODE_MULTI_FALSE
=
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5
17147 $as_echo_n "checking for sim ppc bitsize settings... " >&6; }
17148 # Check whether --enable-sim-ppc-bitsize was given.
17149 if test "${enable_sim_ppc_bitsize+set}" = set; then :
17150 enableval
=$enable_sim_ppc_bitsize; case "${enableval}" in
17151 32|
64) sim_ppc_bitsize
="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
17152 *) as_fn_error $?
"\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;;
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5
17159 $as_echo "$sim_ppc_bitsize" >&6; }
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5
17162 $as_echo_n "checking for sim ppc decode mechanism... " >&6; }
17163 # Check whether --enable-sim-ppc-decode-mechanism was given.
17164 if test "${enable_sim_ppc_decode_mechanism+set}" = set; then :
17165 enableval
=$enable_sim_ppc_decode_mechanism; case "${enableval}" in
17166 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;;
17167 array|switch|padded-switch|goto-switch
) sim_ppc_decode_mechanism
="-T ${enableval}";;
17168 *) as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;;
17171 sim_ppc_decode_mechanism
=""
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5
17175 $as_echo "$sim_ppc_decode_mechanism" >&6; }
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5
17178 $as_echo_n "checking for sim ppc default model... " >&6; }
17179 # Check whether --enable-sim-ppc-default-model was given.
17180 if test "${enable_sim_ppc_default_model+set}" = set; then :
17181 enableval
=$enable_sim_ppc_default_model; case "${enableval}" in
17182 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;;
17183 *) sim_ppc_default_model
="-DWITH_DEFAULT_MODEL=${enableval}";;
17186 sim_ppc_default_model
=""
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5
17190 $as_echo "$sim_ppc_default_model" >&6; }
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5
17193 $as_echo_n "checking for sim ppc duplicate settings... " >&6; }
17194 # Check whether --enable-sim-ppc-duplicate was given.
17195 if test "${enable_sim_ppc_duplicate+set}" = set; then :
17196 enableval
=$enable_sim_ppc_duplicate; case "${enableval}" in
17197 yes) sim_ppc_dup
="-E";;
17198 no
) sim_ppc_dup
="";;
17199 *) as_fn_error $?
"\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;;
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5
17206 $as_echo "$sim_ppc_dup" >&6; }
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5
17209 $as_echo_n "checking for sim ppc filter rules... " >&6; }
17210 # Check whether --enable-sim-ppc-filter was given.
17211 if test "${enable_sim_ppc_filter+set}" = set; then :
17212 enableval
=$enable_sim_ppc_filter; case "${enableval}" in
17213 yes) as_fn_error $?
"\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;;
17214 no
) sim_ppc_filter
="";;
17215 *) sim_ppc_filter
="-F $enableval";;
17218 sim_ppc_filter
="-F 32,f,o"
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5
17222 $as_echo "$sim_ppc_filter" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5
17225 $as_echo_n "checking for sim ppc float settings... " >&6; }
17226 # Check whether --enable-sim-ppc-float was given.
17227 if test "${enable_sim_ppc_float+set}" = set; then :
17228 enableval
=$enable_sim_ppc_float; case "${enableval}" in
17229 yes | hard
) sim_ppc_float
="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
17230 no | soft
) sim_ppc_float
="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
17231 altivec
) sim_ppc_float
="-DWITH_ALTIVEC" ; sim_ppc_filter
="${sim_ppc_filter},av" ;;
17232 *spe
*|
*simd
*) sim_ppc_float
="-DWITH_E500" ; sim_ppc_filter
="${sim_ppc_filter},e500" ;;
17233 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;;
17236 case "${target}" in
17237 *altivec
*) sim_ppc_float
="-DWITH_ALTIVEC" ; sim_ppc_filter
="${sim_ppc_filter},av" ;;
17238 *spe
*|
*simd
*) sim_ppc_float
="-DWITH_E500" ; sim_ppc_filter
="${sim_ppc_filter},e500" ;;
17239 *) sim_ppc_float
=""
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5
17244 $as_echo "$sim_ppc_float" >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5
17247 $as_echo_n "checking for sim ppc hardware settings... " >&6; }
17248 hardware
="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm"
17249 # Check whether --enable-sim-ppc-hardware was given.
17250 if test "${enable_sim_ppc_hardware+set}" = set; then :
17251 enableval
=$enable_sim_ppc_hardware; case "${enableval}" in
17253 no
) as_fn_error $?
"\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;;
17254 ,*) hardware
="${hardware}${enableval}";;
17255 *,) hardware
="${enableval}${hardware}";;
17256 *) hardware
="${enableval}"'';;
17260 sim_ppc_hw_src
=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
17261 sim_ppc_hw_obj
=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'`
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5
17263 $as_echo "$hardware" >&6; }
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5
17266 $as_echo_n "checking for sim ppc icache settings... " >&6; }
17267 # Check whether --enable-sim-ppc-icache was given.
17268 if test "${enable_sim_ppc_icache+set}" = set; then :
17269 enableval
=$enable_sim_ppc_icache; icache
="-R"
17270 case "${enableval}" in
17271 yes) icache
="1024"; sim_ppc_icache
="-I $icache";;
17272 no
) sim_ppc_icache
="-R";;
17275 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
17277 define
) sim_ppc_icache
="${sim_ppc_icache}R";;
17278 semantic
) sim_ppc_icache
="${sim_ppc_icache}C";;
17279 insn
) sim_ppc_icache
="${sim_ppc_icache}S";;
17280 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
17281 *) as_fn_error $?
"\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;;
17284 sim_ppc_icache
="${sim_ppc_icache}I $icache";;
17287 sim_ppc_icache
="-CSRI 1024"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5
17291 $as_echo "$sim_ppc_icache" >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5
17294 $as_echo_n "checking for sim ppc jump settings... " >&6; }
17295 # Check whether --enable-sim-ppc-jump was given.
17296 if test "${enable_sim_ppc_jump+set}" = set; then :
17297 enableval
=$enable_sim_ppc_jump; case "${enableval}" in
17298 yes) sim_ppc_jump
="-J";;
17299 no
) sim_ppc_jump
="";;
17300 *) as_fn_error $?
"\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;;
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5
17307 $as_echo "$sim_ppc_jump" >&6; }
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5
17310 $as_echo_n "checking for sim ppc source debug line numbers... " >&6; }
17311 # Check whether --enable-sim-ppc-line-nr was given.
17312 if test "${enable_sim_ppc_line_nr+set}" = set; then :
17313 enableval
=$enable_sim_ppc_line_nr; case "${enableval}" in
17314 yes) sim_ppc_line_nr
="";;
17315 no
) sim_ppc_line_nr
="-L";;
17316 *) as_fn_error $?
"\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;;
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5
17323 $as_echo "$sim_ppc_line_nr" >&6; }
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5
17326 $as_echo_n "checking for sim ppc model... " >&6; }
17327 # Check whether --enable-sim-ppc-model was given.
17328 if test "${enable_sim_ppc_model+set}" = set; then :
17329 enableval
=$enable_sim_ppc_model; case "${enableval}" in
17330 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;;
17331 *) sim_ppc_model
="-DWITH_MODEL=${enableval}";;
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5
17338 $as_echo "$sim_ppc_model" >&6; }
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5
17341 $as_echo_n "checking for sim ppc model issue... " >&6; }
17342 # Check whether --enable-sim-ppc-model-issue was given.
17343 if test "${enable_sim_ppc_model_issue+set}" = set; then :
17344 enableval
=$enable_sim_ppc_model_issue; case "${enableval}" in
17345 yes) sim_ppc_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
17346 no
) sim_ppc_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
17347 *) as_fn_error $?
"\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;;
17350 sim_ppc_model_issue
=""
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5
17354 $as_echo "$sim_ppc_model_issue" >&6; }
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5
17357 $as_echo_n "checking for sim ppc event monitoring... " >&6; }
17358 # Check whether --enable-sim-ppc-monitor was given.
17359 if test "${enable_sim_ppc_monitor+set}" = set; then :
17360 enableval
=$enable_sim_ppc_monitor; case "${enableval}" in
17361 yes) sim_ppc_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
17362 no
) sim_ppc_monitor
="-DWITH_MON=0";;
17363 instruction
) sim_ppc_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
17364 memory
) sim_ppc_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
17365 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;;
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5
17372 $as_echo "$sim_ppc_monitor" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5
17375 $as_echo_n "checking for sim ppc opcode lookup settings... " >&6; }
17376 # Check whether --enable-sim-ppc-opcode was given.
17377 if test "${enable_sim_ppc_opcode+set}" = set; then :
17378 enableval
=$enable_sim_ppc_opcode; case "${enableval}" in
17379 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;;
17380 *) if test -f "${srcdir}/${enableval}"; then
17381 sim_ppc_opcode
="${enableval}"
17382 elif test -f "${srcdir}/dc-${enableval}"; then
17383 sim_ppc_opcode
="dc-${enableval}"
17385 as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5
17389 sim_ppc_opcode
="dc-complex"
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5
17393 $as_echo "$sim_ppc_opcode" >&6; }
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5
17396 $as_echo_n "checking for sim ppc smp settings... " >&6; }
17397 # Check whether --enable-sim-ppc-smp was given.
17398 if test "${enable_sim_ppc_smp+set}" = set; then :
17399 enableval
=$enable_sim_ppc_smp; case "${enableval}" in
17400 yes) sim_ppc_smp
="-DWITH_SMP=5" ; sim_ppc_igen_smp
="-N 5";;
17401 no
) sim_ppc_smp
="-DWITH_SMP=0" ; sim_ppc_igen_smp
="-N 0";;
17402 *) sim_ppc_smp
="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp
="-N $enableval";;
17405 sim_ppc_smp
="-DWITH_SMP=5" ; sim_ppc_igen_smp
="-N 5"
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5
17409 $as_echo "$sim_ppc_smp" >&6; }
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5
17412 $as_echo_n "checking for sim ppc switch table settings... " >&6; }
17413 # Check whether --enable-sim-ppc-switch was given.
17414 if test "${enable_sim_ppc_switch+set}" = set; then :
17415 enableval
=$enable_sim_ppc_switch; case "${enableval}" in
17416 yes) sim_ppc_switch
="-DWITH_SPREG_SWITCH_TABLE";;
17417 no
) sim_ppc_switch
="";;
17418 *) as_fn_error $?
"\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;;
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5
17425 $as_echo "$sim_ppc_switch" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5
17428 $as_echo_n "checking for sim ppc timebase... " >&6; }
17429 # Check whether --enable-sim-ppc-timebase was given.
17430 if test "${enable_sim_ppc_timebase+set}" = set; then :
17431 enableval
=$enable_sim_ppc_timebase; case "${enableval}" in
17432 yes) sim_ppc_timebase
="-DWITH_TIME_BASE=1";;
17433 no
) sim_ppc_timebase
="-DWITH_TIME_BASE=0";;
17434 *) as_fn_error $?
"\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;;
17437 sim_ppc_timebase
=""
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5
17441 $as_echo "$sim_ppc_timebase" >&6; }
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5
17444 $as_echo_n "checking for sim ppc xor endian settings... " >&6; }
17445 # Check whether --enable-sim-ppc-xor-endian was given.
17446 if test "${enable_sim_ppc_xor_endian+set}" = set; then :
17447 enableval
=$enable_sim_ppc_xor_endian; case "${enableval}" in
17448 yes) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=8";;
17449 no
) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=0";;
17450 *) sim_ppc_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
17453 sim_ppc_xor_endian
=""
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5
17457 $as_echo "$sim_ppc_xor_endian" >&6; }
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
17481 $as_echo_n "checking riscv bitsize... " >&6; }
17482 SIM_RISCV_BITSIZE
=64
17485 SIM_RISCV_BITSIZE
=32 ;; #(
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
17490 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
17494 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
17495 # Check whether --enable-sim-rx-cycle-accurate was given.
17496 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
17497 enableval
=$enable_sim_rx_cycle_accurate; case "${enableval}" in
17499 *) as_fn_error $?
"bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
17503 if test "x${enable_sim_rx_cycle_accurate}" != xno
; then
17504 SIM_RX_CYCLE_ACCURATE_FLAGS
="-DCYCLE_ACCURATE"
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17506 $as_echo "yes" >&6; }
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509 $as_echo "no" >&6; }
17514 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in"
17516 cat >confcache
<<\_ACEOF
17517 # This file is a shell script that caches the results of configure
17518 # tests run on this system so they can be shared between configure
17519 # scripts and configure runs, see configure's option --config-cache.
17520 # It is not useful on other systems. If it contains results you don't
17521 # want to keep, you may remove or edit it.
17523 # config.status only pays attention to the cache file if you give it
17524 # the --recheck option to rerun configure.
17526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17528 # following values.
17532 # The following way of writing the cache mishandles newlines in values,
17533 # but we know of no workaround that is simple, portable, and efficient.
17534 # So, we kill variables containing newlines.
17535 # Ultrix sh set writes to stderr and can't be redirected directly,
17536 # and sets the high bit in the cache file unless we assign to the vars.
17538 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17539 eval ac_val
=\$
$ac_var
17543 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17547 _ | IFS | as_nl
) ;; #(
17548 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17549 *) { eval $ac_var=; unset $ac_var;} ;;
17555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17556 *${as_nl}ac_space
=\
*)
17557 # `set' does not quote correctly, so add quotes: double-quote
17558 # substitution turns \\\\ into \\, and sed turns \\ into \.
17561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17564 # `set' quotes correctly as required by POSIX, so do not add quotes.
17565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17578 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17579 if test -w "$cache_file"; then
17580 if test "x$cache_file" != "x/dev/null"; then
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17582 $as_echo "$as_me: updating cache $cache_file" >&6;}
17583 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17584 cat confcache
>"$cache_file"
17586 case $cache_file in #(
17588 mv -f confcache
"$cache_file"$$
&&
17589 mv -f "$cache_file"$$
"$cache_file" ;; #(
17591 mv -f confcache
"$cache_file" ;;
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17602 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17603 # Let make expand exec_prefix.
17604 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17606 DEFS
=-DHAVE_CONFIG_H
17611 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17612 # 1. Remove the extension, and $U if already installed.
17613 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17614 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17616 # will be set to the directory where LIBOBJS objects are built.
17617 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17618 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17620 LIBOBJS
=$ac_libobjs
17622 LTLIBOBJS
=$ac_ltlibobjs
17626 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17627 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17631 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17632 if test -n "$am_sleep_pid"; then
17633 # Hide warnings about reused PIDs.
17634 wait $am_sleep_pid 2>/dev
/null
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17637 $as_echo "done" >&6; }
17638 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17639 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17642 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17643 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17646 if test -n "$EXEEXT"; then
17648 am__EXEEXT_FALSE
='#'
17650 am__EXEEXT_TRUE
='#'
17654 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
17655 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
17656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17658 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
17659 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
17660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17662 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
17663 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
17664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17666 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
17667 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
17668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17670 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
17671 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
17672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17674 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
17675 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
17676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17678 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
17679 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
17680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17682 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
17683 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
17684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17686 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
17687 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
17688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17690 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
17691 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
17692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17694 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
17695 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
17696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17698 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
17699 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
17700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17702 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
17703 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
17704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17706 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
17707 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
17708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17710 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
17711 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
17712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17714 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
17715 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
17716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17718 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
17719 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
17720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17722 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
17723 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
17724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17726 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
17727 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
17728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17730 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
17731 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
17732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17734 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
17735 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
17736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17738 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
17739 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
17740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17742 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
17743 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
17744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17746 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
17747 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
17748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17750 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
17751 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
17752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17754 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
17755 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
17756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17758 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
17759 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
17760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17762 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
17763 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
17764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17766 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
17767 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
17768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17770 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
17771 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
17772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17774 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
17775 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
17776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17778 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
17779 as_fn_error $?
"conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
17780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17782 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17783 as_fn_error $?
"conditional \"ENABLE_SIM\" was never defined.
17784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17786 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17787 as_fn_error $?
"conditional \"SIM_ENABLE_HW\" was never defined.
17788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17790 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17791 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17794 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17795 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17798 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17799 as_fn_error $?
"conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17803 : "${CONFIG_STATUS=./config.status}"
17805 ac_clean_files_save
=$ac_clean_files
17806 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17808 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17810 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17812 # Generated by $as_me.
17813 # Run this file to recreate the current configuration.
17814 # Compiler output produced by configure, useful for debugging
17815 # configure, is in config.log if it exists.
17818 ac_cs_recheck=false
17821 SHELL=\${CONFIG_SHELL-$SHELL}
17824 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17825 ## -------------------- ##
17826 ## M4sh Initialization. ##
17827 ## -------------------- ##
17829 # Be more Bourne compatible
17830 DUALCASE
=1; export DUALCASE
# for MKS sh
17831 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17834 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17835 # is contrary to our usage. Disable this feature.
17836 alias -g '${1+"$@"}'='"$@"'
17837 setopt NO_GLOB_SUBST
17839 case `(set -o) 2>/dev/null` in #(
17851 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17852 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17855 # Prefer a ksh shell builtin over an external printf program on Solaris,
17856 # but without wasting forks for bash or zsh.
17857 if test -z "$BASH_VERSION$ZSH_VERSION" \
17858 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17859 as_echo='print
-r --'
17860 as_echo_n='print
-rn --'
17861 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17862 as_echo='printf %s
\n'
17863 as_echo_n='printf %s
'
17865 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17866 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17867 as_echo_n='/usr
/ucb
/echo -n'
17869 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17870 as_echo_n_body='eval
17874 expr "X$arg" : "X\\(.*\\)$as_nl";
17875 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17877 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17879 export as_echo_n_body
17880 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17882 export as_echo_body
17883 as_echo='sh
-c $as_echo_body as_echo
'
17886 # The user is always right.
17887 if test "${PATH_SEPARATOR+set}" != set; then
17889 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17890 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17897 # We need space, tab and new line, in precisely that order. Quoting is
17898 # there to prevent editors from complaining about space-tab.
17899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17900 # splitting by setting IFS to empty value.)
17903 # Find who we are. Look in the path if we contain no directory separator.
17906 *[\\/]* ) as_myself=$0 ;;
17907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17908 for as_dir in $PATH
17911 test -z "$as_dir" && as_dir=.
17912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17918 # We did not find ourselves, most probably we were run as `sh COMMAND'
17919 # in which case we are not to be found in the path.
17920 if test "x$as_myself" = x
; then
17923 if test ! -f "$as_myself"; then
17924 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17928 # Unset variables that we do not need and which cause bugs (e.g. in
17929 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17930 # suppresses any "Segmentation fault" message there. '((' could
17931 # trigger a bug in pdksh 5.2.14.
17932 for as_var
in BASH_ENV ENV MAIL MAILPATH
17933 do eval test x\
${$as_var+set} = xset \
17934 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17947 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17950 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17951 # ----------------------------------------
17952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17954 # script with STATUS, using 1 if that was 0.
17957 as_status
=$1; test $as_status -eq 0 && as_status
=1
17959 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17960 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17962 $as_echo "$as_me: error: $2" >&2
17963 as_fn_exit
$as_status
17967 # as_fn_set_status STATUS
17968 # -----------------------
17969 # Set $? to STATUS, without forking.
17970 as_fn_set_status
()
17973 } # as_fn_set_status
17975 # as_fn_exit STATUS
17976 # -----------------
17977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17981 as_fn_set_status
$1
17987 # Portably unset VAR.
17990 { eval $1=; unset $1;}
17992 as_unset
=as_fn_unset
17993 # as_fn_append VAR VALUE
17994 # ----------------------
17995 # Append the text in VALUE to the end of the definition contained in VAR. Take
17996 # advantage of any shell optimizations that allow amortized linear growth over
17997 # repeated appends, instead of the typical quadratic growth present in naive
17999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18000 eval 'as_fn_append ()
18011 # as_fn_arith ARG...
18012 # ------------------
18013 # Perform arithmetic evaluation on the ARGs, and store the result in the
18014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18015 # must be portable across $(()) and expr.
18016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18017 eval 'as_fn_arith ()
18024 as_val
=`expr "$@" || test $? -eq 1`
18029 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18030 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18036 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18037 as_basename
=basename
18042 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18048 as_me
=`$as_basename -- "$0" ||
18049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18050 X"$0" : 'X\(//\)$' \| \
18051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18053 sed '/^.*\/\([^/][^/]*\)\/*$/{
18067 # Avoid depending upon Character Ranges.
18068 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18069 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18070 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18071 as_cr_digits
='0123456789'
18072 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18074 ECHO_C
= ECHO_N
= ECHO_T
=
18075 case `echo -n x` in #(((((
18077 case `echo 'xy\c'` in
18078 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18080 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18087 rm -f conf$$ conf$$.exe conf$$.
file
18088 if test -d conf$$.dir
; then
18089 rm -f conf$$.dir
/conf$$.
file
18092 mkdir conf$$.dir
2>/dev
/null
18094 if (echo >conf$$.
file) 2>/dev
/null
; then
18095 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18097 # ... but there are two gotchas:
18098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18100 # In both cases, we have to default to `cp -pR'.
18101 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18103 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18111 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18112 rmdir conf$$.dir
2>/dev
/null
18117 # Create "$as_dir" as a directory, including parents if necessary.
18122 -*) as_dir
=.
/$as_dir;;
18124 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18128 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18129 *) as_qdir
=$as_dir;;
18131 as_dirs
="'$as_qdir' $as_dirs"
18132 as_dir
=`$as_dirname -- "$as_dir" ||
18133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$as_dir" : 'X\(//\)[^/]' \| \
18135 X"$as_dir" : 'X\(//\)$' \| \
18136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$as_dir" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18142 /^X\(\/\/\)[^/].*/{
18155 test -d "$as_dir" && break
18157 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18158 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18162 if mkdir
-p .
2>/dev
/null
; then
18163 as_mkdir_p
='mkdir -p "$as_dir"'
18165 test -d .
/-p && rmdir .
/-p
18170 # as_fn_executable_p FILE
18171 # -----------------------
18172 # Test if FILE is an executable regular file.
18173 as_fn_executable_p
()
18175 test -f "$1" && test -x "$1"
18176 } # as_fn_executable_p
18177 as_test_x
='test -x'
18178 as_executable_p
=as_fn_executable_p
18180 # Sed expression to map a string onto a valid CPP name.
18181 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18183 # Sed expression to map a string onto a valid variable name.
18184 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18188 ## ----------------------------------- ##
18189 ## Main body of $CONFIG_STATUS script. ##
18190 ## ----------------------------------- ##
18192 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18195 # Save the log message, to keep $0 and so on meaningful, and to
18196 # report actual input values of CONFIG_FILES etc. instead of their
18197 # values after options handling.
18199 This file was extended by sim $as_me 0, which was
18200 generated by GNU Autoconf 2.69. Invocation command line was
18202 CONFIG_FILES = $CONFIG_FILES
18203 CONFIG_HEADERS = $CONFIG_HEADERS
18204 CONFIG_LINKS = $CONFIG_LINKS
18205 CONFIG_COMMANDS = $CONFIG_COMMANDS
18208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18213 case $ac_config_files in *"
18214 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18217 case $ac_config_headers in *"
18218 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223 # Files that config.status was made for.
18224 config_files="$ac_config_files"
18225 config_headers="$ac_config_headers"
18226 config_commands="$ac_config_commands"
18230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18232 \`$as_me' instantiates files and other configuration actions
18233 from templates according to the current configuration. Unless the files
18234 and actions are specified as TAGs, all are instantiated by default.
18236 Usage: $0 [OPTION]... [TAG]...
18238 -h, --help print this help, then exit
18239 -V, --version print version number and configuration settings, then exit
18240 --config print configuration, then exit
18241 -q, --quiet, --silent
18242 do not print progress messages
18243 -d, --debug don't remove temporary files
18244 --recheck update $as_me by reconfiguring in the same conditions
18245 --file=FILE[:TEMPLATE]
18246 instantiate the configuration file FILE
18247 --header=FILE[:TEMPLATE]
18248 instantiate the configuration header FILE
18250 Configuration files:
18253 Configuration headers:
18256 Configuration commands:
18259 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
18260 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
18263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18264 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18266 sim config.status 0
18267 configured by $0, generated by GNU Autoconf 2.69,
18268 with options \\"\$ac_cs_config\\"
18270 Copyright (C) 2012 Free Software Foundation, Inc.
18271 This config.status script is free software; the Free Software Foundation
18272 gives unlimited permission to copy, distribute and modify it."
18279 test -n "\$AWK" || AWK=awk
18282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18283 # The default lists apply if the user does not specify any file.
18289 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18290 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18294 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18306 # Handling of the options.
18307 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18309 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18310 $as_echo "$ac_cs_version"; exit ;;
18311 --config |
--confi |
--conf |
--con |
--co |
--c )
18312 $as_echo "$ac_cs_config"; exit ;;
18313 --debug |
--debu |
--deb |
--de |
--d |
-d )
18315 --file |
--fil |
--fi |
--f )
18318 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18319 '') as_fn_error $?
"missing file argument" ;;
18321 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18322 ac_need_defaults
=false
;;
18323 --header |
--heade |
--head |
--hea )
18326 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18328 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18329 ac_need_defaults
=false
;;
18331 # Conflict between --help and --header
18332 as_fn_error $?
"ambiguous option: \`$1'
18333 Try \`$0 --help' for more information.";;
18334 --help |
--hel |
-h )
18335 $as_echo "$ac_cs_usage"; exit ;;
18336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18337 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18340 # This is an error.
18341 -*) as_fn_error $?
"unrecognized option: \`$1'
18342 Try \`$0 --help' for more information." ;;
18344 *) as_fn_append ac_config_targets
" $1"
18345 ac_need_defaults
=false
;;
18351 ac_configure_extra_args
=
18353 if $ac_cs_silent; then
18355 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18360 if \$ac_cs_recheck; then
18361 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18363 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18364 CONFIG_SHELL='$SHELL'
18365 export CONFIG_SHELL
18370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18374 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18375 ## Running $as_me. ##
18381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387 # The HP-UX ksh and POSIX shell print the target directory to stdout
18388 # if CDPATH is set.
18389 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18391 sed_quote_subst='$sed_quote_subst'
18392 double_quote_subst='$double_quote_subst'
18393 delay_variable_subst='$delay_variable_subst'
18394 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18395 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18396 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18397 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18398 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18399 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18400 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18401 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18402 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18403 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18404 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18405 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18406 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18407 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18408 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18409 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18410 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18411 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18412 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18413 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18414 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18415 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18416 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18417 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18418 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18419 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18420 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18421 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18422 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18423 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18424 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18425 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18426 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18427 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18428 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18429 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18430 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18431 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18432 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18433 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18434 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18435 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18436 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18437 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18438 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18439 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18440 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18441 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18442 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"`'
18443 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18444 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18445 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18446 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18447 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18448 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18449 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18450 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18451 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18452 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18453 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18454 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18455 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18456 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18457 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18458 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18459 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18460 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18461 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18462 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18463 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18464 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18465 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18466 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18467 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18468 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18469 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18470 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18471 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18472 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18473 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18474 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18475 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18476 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18477 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18478 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18479 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18480 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18481 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18482 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18483 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18484 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18485 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18486 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18487 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18488 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18489 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18490 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18491 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18492 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18493 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18494 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18495 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18496 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18497 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18498 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18499 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18500 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18501 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18502 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18503 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18504 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18505 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18506 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18507 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18508 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18509 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18510 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18511 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18512 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18513 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18516 LTCFLAGS='$LTCFLAGS'
18517 compiler='$compiler_DEFAULT'
18519 # A function that is used when there is no print builtin or printf.
18520 func_fallback_echo ()
18522 eval 'cat <<_LTECHO_EOF
18527 # Quote evaled strings.
18541 deplibs_check_method \
18550 lt_cv_sys_global_symbol_pipe \
18551 lt_cv_sys_global_symbol_to_cdecl \
18552 lt_cv_sys_global_symbol_to_c_name_address \
18553 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18554 lt_prog_compiler_no_builtin_flag \
18555 lt_prog_compiler_wl \
18556 lt_prog_compiler_pic \
18557 lt_prog_compiler_static \
18558 lt_cv_prog_compiler_c_o \
18566 export_dynamic_flag_spec \
18567 whole_archive_flag_spec \
18568 compiler_needs_object \
18570 allow_undefined_flag \
18571 no_undefined_flag \
18572 hardcode_libdir_flag_spec \
18573 hardcode_libdir_flag_spec_ld \
18574 hardcode_libdir_separator \
18579 variables_saved_for_relink \
18581 library_names_spec \
18583 install_override_mode \
18587 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18588 *[\\\\\\\`\\"\\\$]*)
18589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18597 # Double-quote double-evaled strings.
18598 for var in reload_cmds \
18599 old_postinstall_cmds \
18600 old_postuninstall_cmds \
18602 extract_expsyms_cmds \
18603 old_archive_from_new_cmds \
18604 old_archive_from_expsyms_cmds \
18606 archive_expsym_cmds \
18608 module_expsym_cmds \
18609 export_symbols_cmds \
18612 postuninstall_cmds \
18614 sys_lib_search_path_spec \
18615 sys_lib_dlsearch_path_spec; do
18616 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18617 *[\\\\\\\`\\"\\\$]*)
18618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18626 ac_aux_dir='$ac_aux_dir'
18627 xsi_shell='$xsi_shell'
18628 lt_shell_append='$lt_shell_append'
18630 # See if we are running on zsh, and set the options which allow our
18631 # commands through without removal of \ escapes INIT.
18632 if test -n "\${ZSH_VERSION+set}" ; then
18633 setopt NO_GLOB_SUBST
18639 TIMESTAMP='$TIMESTAMP'
18645 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18651 # Handling of arguments.
18652 for ac_config_target
in $ac_config_targets
18654 case $ac_config_target in
18655 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18656 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18657 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18658 "aarch64/.gdbinit") CONFIG_FILES
="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
18659 "arm/.gdbinit") CONFIG_FILES
="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
18660 "avr/.gdbinit") CONFIG_FILES
="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
18661 "bfin/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
18662 "bpf/.gdbinit") CONFIG_FILES
="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
18663 "cr16/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
18664 "cris/.gdbinit") CONFIG_FILES
="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
18665 "d10v/.gdbinit") CONFIG_FILES
="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
18666 "frv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
18667 "ft32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
18668 "h8300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
18669 "iq2000/.gdbinit") CONFIG_FILES
="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
18670 "lm32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
18671 "m32c/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
18672 "m32r/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
18673 "m68hc11/.gdbinit") CONFIG_FILES
="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
18674 "mcore/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
18675 "microblaze/.gdbinit") CONFIG_FILES
="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
18676 "mips/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
18677 "mn10300/.gdbinit") CONFIG_FILES
="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
18678 "moxie/.gdbinit") CONFIG_FILES
="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
18679 "msp430/.gdbinit") CONFIG_FILES
="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
18680 "or1k/.gdbinit") CONFIG_FILES
="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
18681 "ppc/.gdbinit") CONFIG_FILES
="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
18682 "pru/.gdbinit") CONFIG_FILES
="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
18683 "riscv/.gdbinit") CONFIG_FILES
="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
18684 "rl78/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
18685 "rx/.gdbinit") CONFIG_FILES
="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
18686 "sh/.gdbinit") CONFIG_FILES
="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
18687 "erc32/.gdbinit") CONFIG_FILES
="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
18688 "v850/.gdbinit") CONFIG_FILES
="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
18689 "example-synacor/.gdbinit") CONFIG_FILES
="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
18690 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18691 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
18693 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18698 # If the user did not use the arguments to specify the items to instantiate,
18699 # then the envvar interface is used. Set only those that are not.
18700 # We use the long form for the default assignment because of an extremely
18701 # bizarre bug on SunOS 4.1.3.
18702 if $ac_need_defaults; then
18703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18708 # Have a temporary directory for convenience. Make it in the build tree
18709 # simply because there is no reason against having it here, and in addition,
18710 # creating and moving files from /tmp can sometimes cause problems.
18711 # Hook for its removal unless debugging.
18712 # Note that there is a small window in which the directory will not be cleaned:
18713 # after its creation but before its name has been assigned to `$tmp'.
18717 trap 'exit_status=$?
18718 : "${ac_tmp:=$tmp}"
18719 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18721 trap 'as_fn_exit 1' 1 2 13 15
18723 # Create a (secure) tmp directory for tmp files.
18726 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18730 tmp
=.
/conf$$
-$RANDOM
18731 (umask 077 && mkdir
"$tmp")
18732 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18735 # Set up the scripts for CONFIG_FILES section.
18736 # No need to generate them if there are no CONFIG_FILES.
18737 # This happens for instance with `./config.status config.h'.
18738 if test -n "$CONFIG_FILES"; then
18741 ac_cr
=`echo X | tr X '\015'`
18742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18743 # But we know of no other shell where ac_cr would be empty at this
18744 # point, so we can use a bashism as a fallback.
18745 if test "x$ac_cr" = x
; then
18746 eval ac_cr
=\$
\'\\r
\'
18748 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18752 ac_cs_awk_cr
=$ac_cr
18755 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18760 echo "cat >conf$$subs.awk <<_ACEOF" &&
18761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18763 } >conf$$subs.sh ||
18764 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18767 for ac_last_try in false false false false false :; do
18768 . ./conf$$subs.sh ||
18769 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18771 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18772 if test $ac_delim_n = $ac_delim_num; then
18774 elif $ac_last_try; then
18775 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18777 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18780 rm -f conf$$subs.sh
18782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18787 s/^/S["/; s
/!.
*/"]=/
18797 s/\(.\{148\}\)..*/\1/
18799 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18804 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18811 s/\(.\{148\}\)..*/\1/
18813 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18817 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18822 ' <conf$$subs.awk | sed '
18827 ' >>$CONFIG_STATUS || ac_write_fail=1
18828 rm -f conf$$subs.awk
18829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18831 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18832 for (key in S) S_is_set[key] = 1
18838 nfields = split(line, field, "@
")
18840 len = length(field[1])
18841 for (i = 2; i < nfields; i++) {
18843 keylen = length(key)
18844 if (S_is_set[key]) {
18846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18847 len += length(value) + length(field[++i])
18858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18859 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18860 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18863 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18864 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18867 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18868 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18869 # trailing colons and then remove the whole line if VPATH becomes empty
18870 # (actually we leave an empty line to preserve line numbers).
18871 if test "x
$srcdir" = x.; then
18872 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18891 fi # test -n "$CONFIG_FILES"
18893 # Set up the scripts for CONFIG_HEADERS section.
18894 # No need to generate them if there are no CONFIG_HEADERS.
18895 # This happens for instance with `./config.status Makefile'.
18896 if test -n "$CONFIG_HEADERS"; then
18897 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18901 # Transform confdefs.h into an awk script `defines.awk', embedded as
18902 # here-document in config.status, that substitutes the proper values into
18903 # config.h.in to produce config.h.
18905 # Create a delimiter string that does not exist in confdefs.h, to ease
18906 # handling of long lines.
18908 for ac_last_try in false false :; do
18909 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18910 if test -z "$ac_tt"; then
18912 elif $ac_last_try; then
18913 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18915 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18919 # For the awk script, D is an array of macro values keyed by name,
18920 # likewise P contains macro parameters if any. Preserve backslash
18921 # newline sequences.
18923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18925 s/.\{148\}/&'"$ac_delim"'/g
18928 s/^[ ]*#[ ]*define[ ][ ]*/ /
18935 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18937 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18942 D["\
1"]=" \
3\\\\\\n
"\\/p
18944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18949 s/.\{148\}/&'"$ac_delim"'/g
18954 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18957 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18959 ' <confdefs.h | sed '
18960 s/'"$ac_delim"'/"\\\
18961 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18964 for (key in D) D_is_set[key] = 1
18967 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18969 split(line, arg, " ")
18970 if (arg[1] == "#") {
18974 defundef
= substr
(arg
[1], 2)
18977 split(mac1
, mac2
, "(") #)
18979 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18980 if (D_is_set
[macro
]) {
18981 # Preserve the white space surrounding the "#".
18982 print prefix
"define", macro P
[macro
] D
[macro
]
18985 # Replace #undef with comments. This is necessary, for example,
18986 # in the case of _POSIX_SOURCE, which is predefined and required
18987 # on some systems where configure will not decide to define it.
18988 if (defundef
== "undef") {
18989 print
"/*", prefix defundef
, macro
, "*/"
18997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18998 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18999 fi # test -n "$CONFIG_HEADERS"
19002 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19007 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19009 case $ac_mode$ac_tag in
19011 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19012 :[FH
]-) ac_tag
=-:-;;
19013 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19030 -) ac_f
="$ac_tmp/stdin";;
19031 *) # Look for the file first in the build tree, then in the source tree
19032 # (if the path is not absolute). The absolute path cannot be DOS-style,
19033 # because $ac_f cannot contain `:'.
19037 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19039 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19041 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19042 as_fn_append ac_file_inputs
" '$ac_f'"
19045 # Let's still pretend it is `configure' which instantiates (i.e., don't
19046 # use $as_me), people would be surprised to read:
19047 # /* config.h. Generated by config.status. */
19048 configure_input
='Generated from '`
19049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19051 if test x
"$ac_file" != x-
; then
19052 configure_input
="$ac_file. $configure_input"
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19054 $as_echo "$as_me: creating $ac_file" >&6;}
19056 # Neutralize special characters interpreted by sed in replacement strings.
19057 case $configure_input in #(
19058 *\
&* |
*\|
* |
*\\* )
19059 ac_sed_conf_input
=`$as_echo "$configure_input" |
19060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19061 *) ac_sed_conf_input
=$configure_input;;
19065 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19066 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19071 ac_dir
=`$as_dirname -- "$ac_file" ||
19072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19073 X"$ac_file" : 'X\(//\)[^/]' \| \
19074 X"$ac_file" : 'X\(//\)$' \| \
19075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19076 $as_echo X"$ac_file" |
19077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19081 /^X\(\/\/\)[^/].*/{
19094 as_dir
="$ac_dir"; as_fn_mkdir_p
19098 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19100 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19101 # A ".." for each directory in $ac_dir_suffix.
19102 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19103 case $ac_top_builddir_sub in
19104 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19105 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19108 ac_abs_top_builddir
=$ac_pwd
19109 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19110 # for backward compatibility:
19111 ac_top_builddir
=$ac_top_build_prefix
19114 .
) # We are building in place.
19116 ac_top_srcdir
=$ac_top_builddir_sub
19117 ac_abs_top_srcdir
=$ac_pwd ;;
19118 [\\/]* | ?
:[\\/]* ) # Absolute name.
19119 ac_srcdir
=$srcdir$ac_dir_suffix;
19120 ac_top_srcdir
=$srcdir
19121 ac_abs_top_srcdir
=$srcdir ;;
19122 *) # Relative name.
19123 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19124 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19125 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19127 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19137 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19138 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19140 ac_MKDIR_P
=$MKDIR_P
19142 [\\/$
]* | ?
:[\\/]* ) ;;
19143 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19148 # If the template does not know about datarootdir, expand it.
19149 # FIXME: This hack should be removed a few years after 2.60.
19150 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19161 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19162 *datarootdir
*) ac_datarootdir_seen
=yes;;
19163 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19165 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19168 ac_datarootdir_hack='
19169 s&@datadir@&$datadir&g
19170 s&@docdir@&$docdir&g
19171 s&@infodir@&$infodir&g
19172 s&@localedir@&$localedir&g
19173 s&@mandir@&$mandir&g
19174 s&\\\${datarootdir}&$datarootdir&g' ;;
19178 # Neutralize VPATH when `$srcdir' = `.'.
19179 # Shell code in configure.ac might set extrasub.
19180 # FIXME: do we really want to maintain this feature?
19181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19182 ac_sed_extra="$ac_vpsub
19185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19187 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19188 s|@configure_input@|
$ac_sed_conf_input|
;t t
19189 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19190 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19191 s
&@srcdir@
&$ac_srcdir&;t t
19192 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19193 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19194 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19195 s
&@builddir@
&$ac_builddir&;t t
19196 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19197 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19198 s
&@INSTALL@
&$ac_INSTALL&;t t
19199 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19200 $ac_datarootdir_hack
19202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19203 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19206 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19208 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19210 which seems to be undefined. Please make sure it is defined" >&5
19211 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19212 which seems to be undefined. Please make sure it is defined" >&2;}
19214 rm -f "$ac_tmp/stdin"
19216 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19217 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19225 if test x"$ac_file" != x-; then
19227 $as_echo "/* $configure_input */" \
19228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19229 } >"$ac_tmp/config.h" \
19230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19231 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19233 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19236 mv "$ac_tmp/config.h" "$ac_file" \
19237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19240 $as_echo "/* $configure_input */" \
19241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19242 || as_fn_error $? "could not create -" "$LINENO" 5
19244 # Compute "$ac_file"'s index
in $config_headers.
19247 for _am_header
in $config_headers :; do
19248 case $_am_header in
19249 $_am_arg |
$_am_arg:* )
19252 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19255 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19256 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19257 X"$_am_arg" : 'X\(//\)[^/]' \| \
19258 X"$_am_arg" : 'X\(//\)$' \| \
19259 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19260 $as_echo X"$_am_arg" |
19261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19265 /^X\(\/\/\)[^/].*/{
19277 s/.*/./; q'`/stamp-h
$_am_stamp_count
19280 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19281 $as_echo "$as_me: executing $ac_file commands" >&6;}
19286 case $ac_file$ac_mode in
19289 # See if we are running on zsh, and set the options which allow our
19290 # commands through without removal of \ escapes.
19291 if test -n "${ZSH_VERSION+set}" ; then
19292 setopt NO_GLOB_SUBST
19295 cfgfile
="${ofile}T"
19296 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19299 cat <<_LT_EOF >> "$cfgfile"
19302 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19303 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19305 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19307 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19308 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19309 # Written by Gordon Matzigkeit, 1996
19311 # This file is part of GNU Libtool.
19313 # GNU Libtool is free software; you can redistribute it and/or
19314 # modify it under the terms of the GNU General Public License as
19315 # published by the Free Software Foundation; either version 2 of
19316 # the License, or (at your option) any later version.
19318 # As a special exception to the GNU General Public License,
19319 # if you distribute this file as part of a program or library that
19320 # is built using GNU Libtool, you may include this file under the
19321 # same distribution terms that you use for the rest of that program.
19323 # GNU Libtool is distributed in the hope that it will be useful,
19324 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19325 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19326 # GNU General Public License for more details.
19328 # You should have received a copy of the GNU General Public License
19329 # along with GNU Libtool; see the file COPYING. If not, a copy
19330 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19331 # obtained by writing to the Free Software Foundation, Inc.,
19332 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19335 # The names of the tagged configurations supported by this script.
19338 # ### BEGIN LIBTOOL CONFIG
19340 # Which release of libtool.m4 was used?
19341 macro_version=$macro_version
19342 macro_revision=$macro_revision
19344 # Whether or not to build shared libraries.
19345 build_libtool_libs=$enable_shared
19347 # Whether or not to build static libraries.
19348 build_old_libs=$enable_static
19350 # What type of objects to build.
19353 # Whether or not to optimize for fast installation.
19354 fast_install=$enable_fast_install
19356 # Shell to use when invoking shell scripts.
19359 # An echo program that protects backslashes.
19363 host_alias=$host_alias
19367 # The build system.
19368 build_alias=$build_alias
19372 # A sed program that does not truncate output.
19375 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19376 Xsed="\$SED -e 1s/^X//"
19378 # A grep program that handles long lines.
19384 # A literal string matcher.
19387 # A BSD- or MS-compatible name lister.
19390 # Whether we need soft or hard links.
19393 # What is the maximum length of a command?
19394 max_cmd_len=$max_cmd_len
19396 # Object file suffix (normally "o").
19399 # Executable file suffix (normally "").
19402 # whether the shell understands "unset".
19405 # turn spaces into newlines.
19408 # turn newlines into spaces.
19411 # An object symbol dumper.
19412 OBJDUMP=$lt_OBJDUMP
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19417 # Command to use when deplibs_check_method == "file_magic".
19418 file_magic_cmd=$lt_file_magic_cmd
19422 AR_FLAGS=$lt_AR_FLAGS
19424 # A symbol stripping program.
19427 # Commands used to install an old-style archive.
19429 old_postinstall_cmds=$lt_old_postinstall_cmds
19430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19432 # Whether to use a lock for old archive extraction.
19433 lock_old_archive_extraction=$lock_old_archive_extraction
19438 # LTCC compiler flags.
19439 LTCFLAGS=$lt_CFLAGS
19441 # Take the output of nm and produce a listing of raw symbols and C names.
19442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19444 # Transform the output of nm in a proper C declaration.
19445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19447 # Transform the output of nm in a C name address pair.
19448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19450 # Transform the output of nm in a C name address pair when lib prefix is needed.
19451 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19453 # The name of the directory that contains temporary libtool files.
19456 # Used to examine libraries when file_magic_cmd begins with "file".
19457 MAGIC_CMD=$MAGIC_CMD
19459 # Must we lock files when doing compilation?
19460 need_locks=$lt_need_locks
19462 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19463 DSYMUTIL=$lt_DSYMUTIL
19465 # Tool to change global to local symbols on Mac OS X.
19468 # Tool to manipulate fat objects and archives on Mac OS X.
19471 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19474 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19475 OTOOL64=$lt_OTOOL64
19477 # Old archive suffix (normally "a").
19480 # Shared library suffix (normally ".so").
19481 shrext_cmds=$lt_shrext_cmds
19483 # The commands to extract the exported symbol list from a shared archive.
19484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19486 # Variables whose values should be saved in libtool wrapper scripts and
19487 # restored at link time.
19488 variables_saved_for_relink=$lt_variables_saved_for_relink
19490 # Do we need the "lib" prefix for modules?
19491 need_lib_prefix=$need_lib_prefix
19493 # Do we need a version for libraries?
19494 need_version=$need_version
19496 # Library versioning type.
19497 version_type=$version_type
19499 # Shared library runtime path variable.
19500 runpath_var=$runpath_var
19502 # Shared library path variable.
19503 shlibpath_var=$shlibpath_var
19505 # Is shlibpath searched before the hard-coded library search path?
19506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19508 # Format of library name prefix.
19509 libname_spec=$lt_libname_spec
19511 # List of archive names. First name is the real one, the rest are links.
19512 # The last name is the one that the linker finds with -lNAME
19513 library_names_spec=$lt_library_names_spec
19515 # The coded name of the library, if different from the real name.
19516 soname_spec=$lt_soname_spec
19518 # Permission mode override for installation of shared libraries.
19519 install_override_mode=$lt_install_override_mode
19521 # Command to use after installation of a shared archive.
19522 postinstall_cmds=$lt_postinstall_cmds
19524 # Command to use after uninstallation of a shared archive.
19525 postuninstall_cmds=$lt_postuninstall_cmds
19527 # Commands used to finish a libtool library installation in a directory.
19528 finish_cmds=$lt_finish_cmds
19530 # As "finish_cmds", except a single script fragment to be evaled but
19532 finish_eval=$lt_finish_eval
19534 # Whether we should hardcode library paths into libraries.
19535 hardcode_into_libs=$hardcode_into_libs
19537 # Compile-time system search path for libraries.
19538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19540 # Run-time system search path for libraries.
19541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19543 # Whether dlopen is supported.
19544 dlopen_support=$enable_dlopen
19546 # Whether dlopen of programs is supported.
19547 dlopen_self=$enable_dlopen_self
19549 # Whether dlopen of statically linked programs is supported.
19550 dlopen_self_static=$enable_dlopen_self_static
19552 # Commands to strip libraries.
19553 old_striplib=$lt_old_striplib
19554 striplib=$lt_striplib
19557 # The linker used to build libraries.
19560 # How to create reloadable object files.
19561 reload_flag=$lt_reload_flag
19562 reload_cmds=$lt_reload_cmds
19564 # Commands used to build an old-style archive.
19565 old_archive_cmds=$lt_old_archive_cmds
19567 # A language specific compiler.
19570 # Is the compiler the GNU compiler?
19573 # Compiler flag to turn off builtin functions.
19574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19576 # How to pass a linker flag through the compiler.
19577 wl=$lt_lt_prog_compiler_wl
19579 # Additional compiler flags for building library objects.
19580 pic_flag=$lt_lt_prog_compiler_pic
19582 # Compiler flag to prevent dynamic linking.
19583 link_static_flag=$lt_lt_prog_compiler_static
19585 # Does compiler simultaneously support -c and -o options?
19586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19588 # Whether or not to add -lc for building shared libraries.
19589 build_libtool_need_lc=$archive_cmds_need_lc
19591 # Whether or not to disallow shared libs when runtime libs are static.
19592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19594 # Compiler flag to allow reflexive dlopens.
19595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19597 # Compiler flag to generate shared objects directly from archives.
19598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19600 # Whether the compiler copes with passing no objects directly.
19601 compiler_needs_object=$lt_compiler_needs_object
19603 # Create an old-style archive from a shared archive.
19604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19606 # Create a temporary old-style archive to link instead of a shared archive.
19607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19609 # Commands used to build a shared archive.
19610 archive_cmds=$lt_archive_cmds
19611 archive_expsym_cmds=$lt_archive_expsym_cmds
19613 # Commands used to build a loadable module if different from building
19614 # a shared archive.
19615 module_cmds=$lt_module_cmds
19616 module_expsym_cmds=$lt_module_expsym_cmds
19618 # Whether we are building with GNU ld or not.
19619 with_gnu_ld=$lt_with_gnu_ld
19621 # Flag that allows shared libraries with undefined symbols to be built.
19622 allow_undefined_flag=$lt_allow_undefined_flag
19624 # Flag that enforces no undefined symbols.
19625 no_undefined_flag=$lt_no_undefined_flag
19627 # Flag to hardcode \$libdir into a binary during linking.
19628 # This must work even if \$libdir does not exist
19629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19631 # If ld is used when linking, flag to hardcode \$libdir into a binary
19632 # during linking. This must work even if \$libdir does not exist.
19633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19635 # Whether we need a single "-rpath" flag with a separated argument.
19636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19639 # DIR into the resulting binary.
19640 hardcode_direct=$hardcode_direct
19642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19643 # DIR into the resulting binary and the resulting library dependency is
19644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19645 # library is relocated.
19646 hardcode_direct_absolute=$hardcode_direct_absolute
19648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19649 # into the resulting binary.
19650 hardcode_minus_L=$hardcode_minus_L
19652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19653 # into the resulting binary.
19654 hardcode_shlibpath_var=$hardcode_shlibpath_var
19656 # Set to "yes" if building a shared library automatically hardcodes DIR
19657 # into the library and all subsequent libraries and executables linked
19659 hardcode_automatic=$hardcode_automatic
19661 # Set to yes if linker adds runtime paths of dependent libraries
19662 # to runtime path list.
19663 inherit_rpath=$inherit_rpath
19665 # Whether libtool must link a program against all its dependency libraries.
19666 link_all_deplibs=$link_all_deplibs
19668 # Fix the shell variable \$srcfile for the compiler.
19669 fix_srcfile_path=$lt_fix_srcfile_path
19671 # Set to "yes" if exported symbols are required.
19672 always_export_symbols=$always_export_symbols
19674 # The commands to list exported symbols.
19675 export_symbols_cmds=$lt_export_symbols_cmds
19677 # Symbols that should not be listed in the preloaded symbols.
19678 exclude_expsyms=$lt_exclude_expsyms
19680 # Symbols that must always be exported.
19681 include_expsyms=$lt_include_expsyms
19683 # Commands necessary for linking programs (against libraries) with templates.
19684 prelink_cmds=$lt_prelink_cmds
19686 # Specify filename containing input files.
19687 file_list_spec=$lt_file_list_spec
19689 # How to hardcode a shared library path into an executable.
19690 hardcode_action=$hardcode_action
19692 # ### END LIBTOOL CONFIG
19698 cat <<\_LT_EOF
>> "$cfgfile"
19699 # AIX sometimes has problems with the GCC collect2 program. For some
19700 # reason, if we set the COLLECT_NAMES environment variable, the problems
19701 # vanish in a puff of smoke.
19702 if test "X${COLLECT_NAMES+set}" != Xset
; then
19704 export COLLECT_NAMES
19711 ltmain
="$ac_aux_dir/ltmain.sh"
19714 # We use sed instead of cat because bash on DJGPP gets confused if
19715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19716 # text mode, it properly converts lines to CR/LF. This bash problem
19717 # is reportedly fixed, but why not run on old versions too?
19718 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19719 ||
(rm -f "$cfgfile"; exit 1)
19723 cat << \_LT_EOF
>> "$cfgfile"
19725 # func_dirname file append nondir_replacement
19726 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19727 # otherwise set result to NONDIR_REPLACEMENT.
19731 */*) func_dirname_result
="${1%/*}${2}" ;;
19732 * ) func_dirname_result
="${3}" ;;
19736 # func_basename file
19739 func_basename_result
="${1##*/}"
19742 # func_dirname_and_basename file append nondir_replacement
19743 # perform func_basename and func_dirname in a single function
19745 # dirname: Compute the dirname of FILE. If nonempty,
19746 # add APPEND to the result, otherwise set result
19747 # to NONDIR_REPLACEMENT.
19748 # value returned in "$func_dirname_result"
19749 # basename: Compute filename of FILE.
19750 # value retuned in "$func_basename_result"
19751 # Implementation must be kept synchronized with func_dirname
19752 # and func_basename. For efficiency, we do not delegate to
19753 # those functions but instead duplicate the functionality here.
19754 func_dirname_and_basename
()
19757 */*) func_dirname_result
="${1%/*}${2}" ;;
19758 * ) func_dirname_result
="${3}" ;;
19760 func_basename_result
="${1##*/}"
19763 # func_stripname prefix suffix name
19764 # strip PREFIX and SUFFIX off of NAME.
19765 # PREFIX and SUFFIX must not contain globbing or regex special
19766 # characters, hashes, percent signs, but SUFFIX may contain a leading
19767 # dot (in which case that matches only a dot).
19770 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19771 # positional parameters, so assign one to ordinary parameter first.
19772 func_stripname_result
=${3}
19773 func_stripname_result
=${func_stripname_result#"${1}"}
19774 func_stripname_result
=${func_stripname_result%"${2}"}
19780 func_opt_split_opt
=${1%%=*}
19781 func_opt_split_arg
=${1#*=}
19788 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19789 *) func_lo2o_result
=${1} ;;
19793 # func_xform libobj-or-source
19796 func_xform_result
=${1%.*}.lo
19799 # func_arith arithmetic-term...
19802 func_arith_result
=$
(( $
* ))
19806 # STRING may not start with a hyphen.
19809 func_len_result
=${#1}
19814 *) # Bourne compatible functions.
19815 cat << \_LT_EOF
>> "$cfgfile"
19817 # func_dirname file append nondir_replacement
19818 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19819 # otherwise set result to NONDIR_REPLACEMENT.
19822 # Extract subdirectory from the argument.
19823 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19824 if test "X$func_dirname_result" = "X${1}"; then
19825 func_dirname_result
="${3}"
19827 func_dirname_result
="$func_dirname_result${2}"
19831 # func_basename file
19834 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19838 # func_stripname prefix suffix name
19839 # strip PREFIX and SUFFIX off of NAME.
19840 # PREFIX and SUFFIX must not contain globbing or regex special
19841 # characters, hashes, percent signs, but SUFFIX may contain a leading
19842 # dot (in which case that matches only a dot).
19843 # func_strip_suffix prefix name
19847 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19848 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19853 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19854 my_sed_long_arg
='1s/^-[^=]*=//'
19859 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19860 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19866 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19869 # func_xform libobj-or-source
19872 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19875 # func_arith arithmetic-term...
19878 func_arith_result
=`expr "$@"`
19882 # STRING may not start with a hyphen.
19885 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19891 case $lt_shell_append in
19893 cat << \_LT_EOF
>> "$cfgfile"
19895 # func_append var value
19896 # Append VALUE to the end of shell variable VAR.
19904 cat << \_LT_EOF
>> "$cfgfile"
19906 # func_append var value
19907 # Append VALUE to the end of shell variable VAR.
19918 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19919 ||
(rm -f "$cfgfile"; exit 1)
19921 mv -f "$cfgfile" "$ofile" ||
19922 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19926 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19927 # Older Autoconf quotes --file arguments for eval, but not when files
19928 # are listed without --file. Let's play safe and only enable the eval
19929 # if we detect the quoting.
19930 case $CONFIG_FILES in
19931 *\'*) eval set x
"$CONFIG_FILES" ;;
19932 *) set x
$CONFIG_FILES ;;
19937 # Strip MF so we end up with the name of the file.
19938 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19939 # Check whether this is an Automake generated Makefile or not.
19940 # We used to match only the files named 'Makefile.in', but
19941 # some people rename them; so instead we look at the file content.
19942 # Grep'ing the first line is not enough: some people post-process
19943 # each Makefile.in and add a new line on top of each file to say so.
19944 # Grep'ing the whole file is not good either: AIX grep has a line
19945 # limit of 2048, but all sed's we know have understand at least 4000.
19946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19947 dirpart
=`$as_dirname -- "$mf" ||
19948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19949 X"$mf" : 'X\(//\)[^/]' \| \
19950 X"$mf" : 'X\(//\)$' \| \
19951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19957 /^X\(\/\/\)[^/].*/{
19973 # Extract the definition of DEPDIR, am__include, and am__quote
19974 # from the Makefile without running 'make'.
19975 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19976 test -z "$DEPDIR" && continue
19977 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19978 test -z "$am__include" && continue
19979 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19980 # Find all dependency output files, they are included files with
19981 # $(DEPDIR) in their names. We invoke sed twice because it is the
19982 # simplest approach to changing $(DEPDIR) to its actual value in the
19984 for file in `sed -n "
19985 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19986 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19987 # Make sure the directory exists.
19988 test -f "$dirpart/$file" && continue
19989 fdir
=`$as_dirname -- "$file" ||
19990 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19991 X"$file" : 'X\(//\)[^/]' \| \
19992 X"$file" : 'X\(//\)$' \| \
19993 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19994 $as_echo X"$file" |
19995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19999 /^X\(\/\/\)[^/].*/{
20012 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20013 # echo "creating $dirpart/$file"
20014 echo '# dummy' > "$dirpart/$file"
20026 ac_clean_files
=$ac_clean_files_save
20028 test $ac_write_fail = 0 ||
20029 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20032 # configure is writing to config.log, and then calls config.status.
20033 # config.status does its own redirection, appending to config.log.
20034 # Unfortunately, on DOS this fails, as config.log is still kept open
20035 # by configure, so config.status won't be able to write to it; its
20036 # output is simply discarded. So we exec the FD to /dev/null,
20037 # effectively closing config.log, so it can be properly (re)opened and
20038 # appended to by config.status. When coming back to configure, we
20039 # need to make the FD available again.
20040 if test "$no_create" != yes; then
20042 ac_config_status_args
=
20043 test "$silent" = yes &&
20044 ac_config_status_args
="$ac_config_status_args --quiet"
20046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20049 # would make configure fail if this is the last instruction.
20050 $ac_cs_success || as_fn_exit
1
20052 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20054 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}