2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
320 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir
-p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='RISC-V ISA Simulator'
551 PACKAGE_TARNAME
='riscv-sim-isa'
553 PACKAGE_STRING
='RISC-V ISA Simulator ?'
554 PACKAGE_BUGREPORT
='Andrew Waterman'
557 ac_unique_file
="riscv/common.h"
558 ac_subst_vars
='LTLIBOBJS
622 program_transform_name
635 enable_option_checking
637 enable_optional_subprojects
642 ac_precious_vars
='build_alias
658 # Initialize some variables set by options.
660 ac_init_version
=false
661 ac_unrecognized_opts
=
663 # The variables have the same names as the options, with
664 # dashes changed to underlines.
672 program_transform_name
=s
,x
,x
,
680 # Installation directory options.
681 # These are left unexpanded so users can "make install exec_prefix=/foo"
682 # and all the variables that are supposed to be based on exec_prefix
683 # by default will actually change.
684 # Use braces instead of parens because sh, perl, etc. also accept them.
685 # (The list follows the same order as the GNU Coding Standards.)
686 bindir
='${exec_prefix}/bin'
687 sbindir
='${exec_prefix}/sbin'
688 libexecdir
='${exec_prefix}/libexec'
689 datarootdir
='${prefix}/share'
690 datadir
='${datarootdir}'
691 sysconfdir
='${prefix}/etc'
692 sharedstatedir
='${prefix}/com'
693 localstatedir
='${prefix}/var'
694 includedir
='${prefix}/include'
695 oldincludedir
='/usr/include'
696 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
697 infodir
='${datarootdir}/info'
702 libdir
='${exec_prefix}/lib'
703 localedir
='${datarootdir}/locale'
704 mandir
='${datarootdir}/man'
710 # If the previous option needs an argument, assign it.
711 if test -n "$ac_prev"; then
712 eval $ac_prev=\
$ac_option
718 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
722 # Accept the important Cygnus configure options, so we can diagnose typos.
724 case $ac_dashdash$ac_option in
728 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
730 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
733 -build |
--build |
--buil |
--bui |
--bu)
734 ac_prev
=build_alias
;;
735 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
736 build_alias
=$ac_optarg ;;
738 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
739 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
740 ac_prev
=cache_file
;;
741 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
742 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
743 cache_file
=$ac_optarg ;;
746 cache_file
=config.cache
;;
748 -datadir |
--datadir |
--datadi |
--datad)
750 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
751 datadir
=$ac_optarg ;;
753 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
754 |
--dataroo |
--dataro |
--datar)
755 ac_prev
=datarootdir
;;
756 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
757 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
758 datarootdir
=$ac_optarg ;;
760 -disable-* |
--disable-*)
761 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
764 as_fn_error
"invalid feature name: $ac_useropt"
765 ac_useropt_orig
=$ac_useropt
766 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
767 case $ac_user_opts in
771 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
772 ac_unrecognized_sep
=', ';;
774 eval enable_
$ac_useropt=no
;;
776 -docdir |
--docdir |
--docdi |
--doc |
--do)
778 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
781 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
783 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
786 -enable-* |
--enable-*)
787 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
790 as_fn_error
"invalid feature name: $ac_useropt"
791 ac_useropt_orig
=$ac_useropt
792 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
793 case $ac_user_opts in
797 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
798 ac_unrecognized_sep
=', ';;
800 eval enable_
$ac_useropt=\
$ac_optarg ;;
802 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
803 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
804 |
--exec |
--exe |
--ex)
805 ac_prev
=exec_prefix
;;
806 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
807 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
808 |
--exec=* |
--exe=* |
--ex=*)
809 exec_prefix
=$ac_optarg ;;
811 -gas |
--gas |
--ga |
--g)
812 # Obsolete; use --with-gas.
815 -help |
--help |
--hel |
--he |
-h)
817 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
818 ac_init_help
=recursive
;;
819 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
820 ac_init_help
=short
;;
822 -host |
--host |
--hos |
--ho)
823 ac_prev
=host_alias
;;
824 -host=* |
--host=* |
--hos=* |
--ho=*)
825 host_alias
=$ac_optarg ;;
827 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
829 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
831 htmldir
=$ac_optarg ;;
833 -includedir |
--includedir |
--includedi |
--included |
--include \
834 |
--includ |
--inclu |
--incl |
--inc)
835 ac_prev
=includedir
;;
836 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
837 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
838 includedir
=$ac_optarg ;;
840 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
842 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
843 infodir
=$ac_optarg ;;
845 -libdir |
--libdir |
--libdi |
--libd)
847 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
850 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
851 |
--libexe |
--libex |
--libe)
852 ac_prev
=libexecdir
;;
853 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
854 |
--libexe=* |
--libex=* |
--libe=*)
855 libexecdir
=$ac_optarg ;;
857 -localedir |
--localedir |
--localedi |
--localed |
--locale)
859 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
860 localedir
=$ac_optarg ;;
862 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
863 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
864 ac_prev
=localstatedir
;;
865 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
866 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
867 localstatedir
=$ac_optarg ;;
869 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
871 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
875 # Obsolete; use --without-fp.
878 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
879 |
--no-cr |
--no-c |
-n)
882 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
883 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
886 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
887 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
888 |
--oldin |
--oldi |
--old |
--ol |
--o)
889 ac_prev
=oldincludedir
;;
890 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
891 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
892 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
893 oldincludedir
=$ac_optarg ;;
895 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
897 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
900 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
901 |
--program-pre |
--program-pr |
--program-p)
902 ac_prev
=program_prefix
;;
903 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
904 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
905 program_prefix
=$ac_optarg ;;
907 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
908 |
--program-suf |
--program-su |
--program-s)
909 ac_prev
=program_suffix
;;
910 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
911 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
912 program_suffix
=$ac_optarg ;;
914 -program-transform-name |
--program-transform-name \
915 |
--program-transform-nam |
--program-transform-na \
916 |
--program-transform-n |
--program-transform- \
917 |
--program-transform |
--program-transfor \
918 |
--program-transfo |
--program-transf \
919 |
--program-trans |
--program-tran \
920 |
--progr-tra |
--program-tr |
--program-t)
921 ac_prev
=program_transform_name
;;
922 -program-transform-name=* |
--program-transform-name=* \
923 |
--program-transform-nam=* |
--program-transform-na=* \
924 |
--program-transform-n=* |
--program-transform-=* \
925 |
--program-transform=* |
--program-transfor=* \
926 |
--program-transfo=* |
--program-transf=* \
927 |
--program-trans=* |
--program-tran=* \
928 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
929 program_transform_name
=$ac_optarg ;;
931 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
933 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
936 -psdir |
--psdir |
--psdi |
--psd |
--ps)
938 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
942 |
-silent |
--silent |
--silen |
--sile |
--sil)
945 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
947 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
949 sbindir
=$ac_optarg ;;
951 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
952 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
953 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
955 ac_prev
=sharedstatedir
;;
956 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
957 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
958 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
960 sharedstatedir
=$ac_optarg ;;
962 -site |
--site |
--sit)
964 -site=* |
--site=* |
--sit=*)
967 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
969 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
972 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
973 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
974 ac_prev
=sysconfdir
;;
975 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
976 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
977 sysconfdir
=$ac_optarg ;;
979 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
980 ac_prev
=target_alias
;;
981 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
982 target_alias
=$ac_optarg ;;
984 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
987 -version |
--version |
--versio |
--versi |
--vers |
-V)
991 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 as_fn_error
"invalid package name: $ac_useropt"
995 ac_useropt_orig
=$ac_useropt
996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1002 ac_unrecognized_sep
=', ';;
1004 eval with_
$ac_useropt=\
$ac_optarg ;;
1006 -without-* |
--without-*)
1007 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1010 as_fn_error
"invalid package name: $ac_useropt"
1011 ac_useropt_orig
=$ac_useropt
1012 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1017 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1018 ac_unrecognized_sep
=', ';;
1020 eval with_
$ac_useropt=no
;;
1023 # Obsolete; use --with-x.
1026 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1027 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1028 ac_prev
=x_includes
;;
1029 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1030 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1031 x_includes
=$ac_optarg ;;
1033 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1034 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1035 ac_prev
=x_libraries
;;
1036 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1037 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1038 x_libraries
=$ac_optarg ;;
1040 -*) as_fn_error
"unrecognized option: \`$ac_option'
1041 Try \`$0 --help' for more information."
1045 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1046 # Reject names that are not valid shell variable names.
1047 case $ac_envvar in #(
1048 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1049 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1051 eval $ac_envvar=\
$ac_optarg
1052 export $ac_envvar ;;
1055 # FIXME: should be removed in autoconf 3.0.
1056 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1057 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1059 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1065 if test -n "$ac_prev"; then
1066 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1067 as_fn_error
"missing argument to $ac_option"
1070 if test -n "$ac_unrecognized_opts"; then
1071 case $enable_option_checking in
1073 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1074 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1078 # Check all directory arguments for consistency.
1079 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1080 datadir sysconfdir sharedstatedir localstatedir includedir \
1081 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1082 libdir localedir mandir
1084 eval ac_val
=\$
$ac_var
1085 # Remove trailing slashes.
1088 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1089 eval $ac_var=\
$ac_val;;
1091 # Be sure to have absolute directory names.
1093 [\\/$
]* | ?
:[\\/]* ) continue;;
1094 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1096 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1104 target
=$target_alias
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x
; then
1108 if test "x$build_alias" = x
; then
1109 cross_compiling
=maybe
1110 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1118 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1120 test "$silent" = yes && exec 6>/dev
/null
1123 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di
=`ls -di .` &&
1125 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1126 as_fn_error
"working directory cannot be determined"
1127 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1128 as_fn_error
"pwd does not report name of working directory"
1131 # Find the source files, if location was not specified.
1132 if test -z "$srcdir"; then
1133 ac_srcdir_defaulted
=yes
1134 # Try the directory containing this script, then the parent directory.
1135 ac_confdir
=`$as_dirname -- "$as_myself" ||
1136 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1137 X"$as_myself" : 'X\(//\)[^/]' \| \
1138 X"$as_myself" : 'X\(//\)$' \| \
1139 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1140 $as_echo X"$as_myself" |
1141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 if test ! -r "$srcdir/$ac_unique_file"; then
1163 ac_srcdir_defaulted
=no
1165 if test ! -r "$srcdir/$ac_unique_file"; then
1166 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1167 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1169 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1171 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1173 # When building in place, set srcdir=.
1174 if test "$ac_abs_confdir" = "$ac_pwd"; then
1177 # Remove unnecessary trailing slashes from srcdir.
1178 # Double slashes in file names in object file debugging info
1179 # mess up M-x gdb in Emacs.
1181 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1183 for ac_var
in $ac_precious_vars; do
1184 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1185 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1186 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1187 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1191 # Report the --help message.
1193 if test "$ac_init_help" = "long"; then
1194 # Omit some internal or obsolete options to make the list less imposing.
1195 # This message is too long to be a string in the A/UX 3.1 sh.
1197 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1199 Usage: $0 [OPTION]... [VAR=VALUE]...
1201 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1202 VAR=VALUE. See below for descriptions of some of the useful variables.
1204 Defaults for the options are specified in brackets.
1207 -h, --help display this help and exit
1208 --help=short display options specific to this package
1209 --help=recursive display the short help of all the included packages
1210 -V, --version display version information and exit
1211 -q, --quiet, --silent do not print \`checking...' messages
1212 --cache-file=FILE cache test results in FILE [disabled]
1213 -C, --config-cache alias for \`--cache-file=config.cache'
1214 -n, --no-create do not create output files
1215 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1217 Installation directories:
1218 --prefix=PREFIX install architecture-independent files in PREFIX
1219 [$ac_default_prefix]
1220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1223 By default, \`make install' will install all the files in
1224 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1225 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1226 for instance \`--prefix=\$HOME'.
1228 For better control, use the options below.
1230 Fine tuning of the installation directories:
1231 --bindir=DIR user executables [EPREFIX/bin]
1232 --sbindir=DIR system admin executables [EPREFIX/sbin]
1233 --libexecdir=DIR program executables [EPREFIX/libexec]
1234 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1235 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1236 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1237 --libdir=DIR object code libraries [EPREFIX/lib]
1238 --includedir=DIR C header files [PREFIX/include]
1239 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1240 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1241 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1242 --infodir=DIR info documentation [DATAROOTDIR/info]
1243 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1244 --mandir=DIR man documentation [DATAROOTDIR/man]
1245 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-sim-isa]
1246 --htmldir=DIR html documentation [DOCDIR]
1247 --dvidir=DIR dvi documentation [DOCDIR]
1248 --pdfdir=DIR pdf documentation [DOCDIR]
1249 --psdir=DIR ps documentation [DOCDIR]
1255 --build=BUILD configure
for building on BUILD
[guessed
]
1256 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1260 if test -n "$ac_init_help"; then
1261 case $ac_init_help in
1262 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1267 --disable-option-checking ignore unrecognized
--enable/--with options
1268 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1269 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1270 --enable-stow Enable stow-based
install
1271 --enable-optional-subprojects
1272 Enable all optional subprojects
1273 --disable-fpu Disable floating-point
1274 --disable-64bit Disable
64-bit mode
1275 --disable-rvc Disable instruction compression
1277 Some influential environment variables
:
1278 CC C compiler
command
1279 CFLAGS C compiler flags
1280 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1281 nonstandard directory
<lib dir
>
1282 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1283 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1284 you have headers
in a nonstandard directory
<include dir
>
1285 CXX C
++ compiler
command
1286 CXXFLAGS C
++ compiler flags
1287 STOW_ROOT Root
for non-native stow-based installs
1288 STOW_PREFIX Prefix
for stow-based installs
1291 Use these variables to override the choices made by
`configure' or to help
1292 it to find libraries and programs with nonstandard names/locations.
1294 Report bugs to <Andrew Waterman>.
1299 if test "$ac_init_help" = "recursive"; then
1300 # If there are subdirs, report their specific --help.
1301 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1302 test -d "$ac_dir" ||
1303 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1310 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1311 # A ".." for each directory in $ac_dir_suffix.
1312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1313 case $ac_top_builddir_sub in
1314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1318 ac_abs_top_builddir=$ac_pwd
1319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1320 # for backward compatibility:
1321 ac_top_builddir=$ac_top_build_prefix
1324 .) # We are building in place.
1326 ac_top_srcdir=$ac_top_builddir_sub
1327 ac_abs_top_srcdir=$ac_pwd ;;
1328 [\\/]* | ?:[\\/]* ) # Absolute name.
1329 ac_srcdir=$srcdir$ac_dir_suffix;
1330 ac_top_srcdir=$srcdir
1331 ac_abs_top_srcdir=$srcdir ;;
1333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1334 ac_top_srcdir=$ac_top_build_prefix$srcdir
1335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1339 cd "$ac_dir" || { ac_status=$?; continue; }
1340 # Check for guested configure.
1341 if test -f "$ac_srcdir/configure.gnu"; then
1343 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1344 elif test -f "$ac_srcdir/configure"; then
1346 $SHELL "$ac_srcdir/configure" --help=recursive
1348 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1350 cd "$ac_pwd" || { ac_status=$?; break; }
1354 test -n "$ac_init_help" && exit $ac_status
1355 if $ac_init_version; then
1357 RISC-V ISA Simulator configure ?
1358 generated by GNU Autoconf 2.64
1360 Copyright (C) 2009 Free Software Foundation, Inc.
1361 This configure script is free software; the Free Software Foundation
1362 gives unlimited permission to copy, distribute and modify it.
1367 ## ------------------------ ##
1368 ## Autoconf initialization. ##
1369 ## ------------------------ ##
1371 # ac_fn_c_try_compile LINENO
1372 # --------------------------
1373 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1374 ac_fn_c_try_compile ()
1376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1377 rm -f conftest.$ac_objext
1378 if { { ac_try="$ac_compile"
1380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1381 *) ac_try_echo
=$ac_try;;
1383 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1384 $as_echo "$ac_try_echo"; } >&5
1385 (eval "$ac_compile") 2>conftest.err
1387 if test -s conftest.err
; then
1388 grep -v '^ *+' conftest.err
>conftest.er1
1389 cat conftest.er1
>&5
1390 mv -f conftest.er1 conftest.err
1392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1393 test $ac_status = 0; } && {
1394 test -z "$ac_c_werror_flag" ||
1395 test ! -s conftest.err
1396 } && test -s conftest.
$ac_objext; then :
1399 $as_echo "$as_me: failed program was:" >&5
1400 sed 's/^/| /' conftest.
$ac_ext >&5
1404 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1407 } # ac_fn_c_try_compile
1409 # ac_fn_cxx_try_compile LINENO
1410 # ----------------------------
1411 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1412 ac_fn_cxx_try_compile
()
1414 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1415 rm -f conftest.
$ac_objext
1416 if { { ac_try
="$ac_compile"
1418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1419 *) ac_try_echo=$ac_try;;
1421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1422 $as_echo "$ac_try_echo"; } >&5
1423 (eval "$ac_compile") 2>conftest.err
1425 if test -s conftest.err; then
1426 grep -v '^ *+' conftest.err >conftest.er1
1427 cat conftest.er1 >&5
1428 mv -f conftest.er1 conftest.err
1430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1431 test $ac_status = 0; } && {
1432 test -z "$ac_cxx_werror_flag" ||
1433 test ! -s conftest.err
1434 } && test -s conftest.$ac_objext; then :
1437 $as_echo "$as_me: failed program was:" >&5
1438 sed 's/^/| /' conftest.$ac_ext >&5
1442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1445 } # ac_fn_cxx_try_compile
1447 # ac_fn_c_try_cpp LINENO
1448 # ----------------------
1449 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453 if { { ac_try="$ac_cpp conftest.$ac_ext"
1455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1456 *) ac_try_echo
=$ac_try;;
1458 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1462 if test -s conftest.err
; then
1463 grep -v '^ *+' conftest.err
>conftest.er1
1464 cat conftest.er1
>&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } >/dev
/null
&& {
1469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1470 test ! -s conftest.err
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.
$ac_ext >&5
1479 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1484 # ac_fn_c_try_run LINENO
1485 # ----------------------
1486 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1487 # that executables *can* be run.
1490 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1491 if { { ac_try
="$ac_link"
1493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_link") 2>&5
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1502 { { case "(($ac_try" in
1503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1504 *) ac_try_echo
=$ac_try;;
1506 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_try") 2>&5
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; }; }; then :
1514 $as_echo "$as_me: program exited with status $ac_status" >&5
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.
$ac_ext >&5
1518 ac_retval
=$ac_status
1520 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1521 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1526 # ac_fn_c_try_link LINENO
1527 # -----------------------
1528 # Try to link conftest.$ac_ext, and return whether this succeeded.
1531 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1532 rm -f conftest.
$ac_objext conftest
$ac_exeext
1533 if { { ac_try
="$ac_link"
1535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_link") 2>conftest.err
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest$ac_exeext && {
1552 test "$cross_compiling" = yes ||
1553 $as_test_x conftest$ac_exeext
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1563 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1564 # interfere with the next link command; also delete a directory that is
1565 # left behind by Apple's compiler. We do this before executing the actions.
1566 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 } # ac_fn_c_try_link
1571 cat >config.log <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1575 It was created by RISC-V ISA Simulator $as_me ?, which was
1576 generated by GNU Autoconf 2.64. Invocation command line was
1588 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1589 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1590 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1591 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1592 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1594 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1595 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1597 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1598 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1599 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1600 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1601 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1602 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1603 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 $as_echo "PATH: $as_dir"
1628 # Keep a trace of the command line.
1629 # Strip out --no-create and --no-recursion so they do not pile up.
1630 # Strip out --silent because we don't want to record it for future runs.
1631 # Also quote any args containing shell meta-characters.
1632 # Make two passes to allow for proper duplicate-argument suppression.
1636 ac_must_keep_next=false
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1647 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1650 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1652 as_fn_append ac_configure_args1 " '$ac_arg'"
1653 if test $ac_must_keep_next = true; then
1654 ac_must_keep_next=false # Got value, back to normal.
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1665 -* ) ac_must_keep_next=true ;;
1668 as_fn_append ac_configure_args " '$ac_arg'"
1673 { ac_configure_args0=; unset ac_configure_args0;}
1674 { ac_configure_args1=; unset ac_configure_args1;}
1676 # When interrupted or exit'd, cleanup temporary files, and complete
1677 # config.log. We remove comments because anyway the quotes in there
1678 # would cause problems or look ugly.
1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681 trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1687 ## ---------------- ##
1688 ## Cache variables. ##
1689 ## ---------------- ##
1692 # The following way of writing the cache mishandles newlines in values,
1694 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1695 eval ac_val=\$$ac_var
1699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1703 _ | IFS | as_nl) ;; #(
1704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1705 *) { eval $ac_var=; unset $ac_var;} ;;
1710 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1730 for ac_var in $ac_subst_vars
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 $as_echo "$ac_var='\''$ac_val'\''"
1740 if test -n "$ac_subst_files"; then
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1747 for ac_var in $ac_subst_files
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 $as_echo "$ac_var='\''$ac_val'\''"
1758 if test -s confdefs.h; then
1768 test "$ac_signal" != 0 &&
1769 $as_echo "$as_me: caught signal $ac_signal"
1770 $as_echo "$as_me: exit $exit_status"
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 $as_echo "/* confdefs.h */" > confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_STRING "$PACKAGE_STRING"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_URL "$PACKAGE_URL"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer an explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 ac_site_file1=$CONFIG_SITE
1819 elif test "x$prefix" != xNONE; then
1820 ac_site_file1=$prefix/share/config.site
1821 ac_site_file2=$prefix/etc/config.site
1823 ac_site_file1=$ac_default_prefix/share/config.site
1824 ac_site_file2=$ac_default_prefix/etc/config.site
1826 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1828 test "x$ac_site_file" = xNONE && continue
1829 if test -r "$ac_site_file"; then
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1831 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1832 sed 's/^/| /' "$ac_site_file" >&5
1837 if test -r "$cache_file"; then
1838 # Some versions of bash will fail to source /dev/null (special
1839 # files actually), so we avoid doing that.
1840 if test -f "$cache_file"; then
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1842 $as_echo "$as_me: loading cache $cache_file" >&6;}
1844 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845 *) . "./$cache_file";;
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1850 $as_echo "$as_me: creating cache $cache_file" >&6;}
1854 # Check that the precious variables saved in the cache have kept the same
1856 ac_cache_corrupted=false
1857 for ac_var in $ac_precious_vars; do
1858 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859 eval ac_new_set=\$ac_env_${ac_var}_set
1860 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861 eval ac_new_val=\$ac_env_${ac_var}_value
1862 case $ac_old_set,$ac_new_set in
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1865 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866 ac_cache_corrupted=: ;;
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1869 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1873 if test "x$ac_old_val" != "x$ac_new_val"; then
1874 # differences in whitespace do not lead to failure.
1875 ac_old_val_w=`echo x
$ac_old_val`
1876 ac_new_val_w=`echo x
$ac_new_val`
1877 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1879 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1880 ac_cache_corrupted=:
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1883 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1884 eval $ac_var=\$ac_old_val
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1887 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1889 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1895 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1904 if $ac_cache_corrupted; then
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1908 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1911 ## -------------------- ##
1912 ## Main body of script. ##
1913 ## -------------------- ##
1916 ac_cpp='$CPP $CPPFLAGS'
1917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 for ac_dir in scripts "$srcdir"/scripts; do
1925 for ac_t in install-sh install.sh shtool; do
1926 if test -f "$ac_dir/$ac_t"; then
1928 ac_install_sh="$ac_aux_dir/$ac_t -c"
1933 if test -z "$ac_aux_dir"; then
1934 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 # Make sure we can run config.sub.
1947 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1948 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1951 $as_echo_n "checking build system type... " >&6; }
1952 if test "${ac_cv_build+set}" = set; then :
1953 $as_echo_n "(cached) " >&6
1955 ac_build_alias=$build_alias
1956 test "x$ac_build_alias" = x &&
1957 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1958 test "x$ac_build_alias" = x &&
1959 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1960 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1961 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1965 $as_echo "$ac_cv_build" >&6; }
1966 case $ac_cv_build in
1968 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1971 ac_save_IFS=$IFS; IFS='-'
1977 # Remember, the first character of IFS is used to create $*,
1978 # except with old shells:
1981 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1985 $as_echo_n "checking host system type... " >&6; }
1986 if test "${ac_cv_host+set}" = set; then :
1987 $as_echo_n "(cached) " >&6
1989 if test "x$host_alias" = x; then
1990 ac_cv_host=$ac_cv_build
1992 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1993 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1998 $as_echo "$ac_cv_host" >&6; }
2001 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2004 ac_save_IFS=$IFS; IFS='-'
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2014 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2018 #-------------------------------------------------------------------------
2019 # Checks for programs
2020 #-------------------------------------------------------------------------
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2031 $as_echo_n "checking for $ac_word... " >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then :
2033 $as_echo_n "(cached) " >&6
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 if test -n "$CC"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2058 $as_echo "$CC" >&6; }
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2061 $as_echo "no" >&6; }
2066 if test -z "$ac_cv_prog_CC"; then
2068 # Extract the first word of "gcc", so it can be a program name with args.
2069 set dummy gcc; ac_word=$2
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2071 $as_echo_n "checking for $ac_word... " >&6; }
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2073 $as_echo_n "(cached) " >&6
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
2084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085 ac_cv_prog_ac_ct_CC="gcc"
2086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2098 $as_echo "$ac_ct_CC" >&6; }
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2101 $as_echo "no" >&6; }
2104 if test "x$ac_ct_CC" = x; then
2107 case $cross_compiling:$ac_tool_warned in
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2111 ac_tool_warned=yes ;;
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}cc; ac_word=$2
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2124 $as_echo_n "checking for $ac_word... " >&6; }
2125 if test "${ac_cv_prog_CC+set}" = set; then :
2126 $as_echo_n "(cached) " >&6
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2138 ac_cv_prog_CC="${ac_tool_prefix}cc"
2139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test -n "$CC"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2151 $as_echo "$CC" >&6; }
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2154 $as_echo "no" >&6; }
2160 if test -z "$CC"; then
2161 # Extract the first word of "cc", so it can be a program name with args.
2162 set dummy cc; ac_word=$2
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2164 $as_echo_n "checking for $ac_word... " >&6; }
2165 if test "${ac_cv_prog_CC+set}" = set; then :
2166 $as_echo_n "(cached) " >&6
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2180 ac_prog_rejected=yes
2184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 if test $ac_prog_rejected = yes; then
2192 # We found a bogon in the path, so make sure we never use it.
2193 set dummy $ac_cv_prog_CC
2195 if test $# != 0; then
2196 # We chose a different compiler from the bogus one.
2197 # However, it has the same basename, so the bogon will be chosen
2198 # first if we set CC to just the basename; use the full file name.
2200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2206 if test -n "$CC"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2208 $as_echo "$CC" >&6; }
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2211 $as_echo "no" >&6; }
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 for ac_prog in cl.exe
2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2223 $as_echo_n "checking for $ac_word... " >&6; }
2224 if test "${ac_cv_prog_CC+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 if test -n "$CC"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2250 $as_echo "$CC" >&6; }
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2253 $as_echo "no" >&6; }
2257 test -n "$CC" && break
2260 if test -z "$CC"; then
2262 for ac_prog in cl.exe
2264 # Extract the first word of "$ac_prog", so it can be a program name with args.
2265 set dummy $ac_prog; ac_word=$2
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2267 $as_echo_n "checking for $ac_word... " >&6; }
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2269 $as_echo_n "(cached) " >&6
2271 if test -n "$ac_ct_CC"; then
2272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_ac_ct_CC="$ac_prog"
2282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2294 $as_echo "$ac_ct_CC" >&6; }
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297 $as_echo "no" >&6; }
2301 test -n "$ac_ct_CC" && break
2304 if test "x$ac_ct_CC" = x; then
2307 case $cross_compiling:$ac_tool_warned in
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2311 ac_tool_warned=yes ;;
2320 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2322 as_fn_error "no acceptable C compiler found
in \
$PATH
2323 See \
`config.log' for more details." "$LINENO" 5; }
2325 # Provide some information about the compiler.
2326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2329 for ac_option in --version -v -V -qversion; do
2330 { { ac_try="$ac_compiler $ac_option >&5"
2332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2333 *) ac_try_echo
=$ac_try;;
2335 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2336 $as_echo "$ac_try_echo"; } >&5
2337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2339 if test -s conftest.err
; then
2341 ... rest of stderr output deleted ...
2342 10q' conftest.err
>conftest.er1
2343 cat conftest.er1
>&5
2344 rm -f conftest.er1 conftest.err
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; }
2350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2356 FILE *f = fopen ("conftest.out", "w");
2357 return ferror (f) || fclose (f) != 0;
2363 ac_clean_files_save
=$ac_clean_files
2364 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2365 # Try to create an executable without -o first, disregard a.out.
2366 # It will help us diagnose broken compilers, and finding out an intuition
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2369 $as_echo_n "checking for C compiler default output file name... " >&6; }
2370 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2372 # The possible output files:
2373 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2376 for ac_file
in $ac_files
2379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2380 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2385 if { { ac_try
="$ac_link_default"
2387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link_default") 2>&5
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; }; then :
2396 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2397 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2398 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2399 # so that the user can short-circuit this test for compilers unknown to
2401 for ac_file in $ac_files ''
2403 test -f "$ac_file" || continue
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2408 # We found the default executable, but exeext='' is most
2412 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 # We set ac_cv_exeext here because the later test for it is not
2417 # safe: cross compilers may not add the suffix if given an `-o'
2418 # argument, so we may need to know it at that point already.
2419 # Even if this section looks crufty: it has the advantage of
2426 test "$ac_cv_exeext" = no && ac_cv_exeext=
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2432 $as_echo "$ac_file" >&6; }
2433 if test -z "$ac_file"; then :
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's
/^
/|
/' conftest.$ac_ext >&5
2437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2439 { as_fn_set_status 77
2440 as_fn_error "C compiler cannot create executables
2441 See \`config.log
' for more details." "$LINENO" 5; }; }
2443 ac_exeext=$ac_cv_exeext
2445 # Check that the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2448 $as_echo_n "checking whether the C compiler works... " >&6; }
2449 # If not cross compiling, check that we can run a simple program.
2450 if test "$cross_compiling" != yes; then
2451 if { ac_try='.
/$ac_file'
2452 { { case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_try") 2>&5
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; }; }; then
2464 if test "$cross_compiling" = maybe; then
2467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2469 as_fn_error "cannot run C compiled programs.
2470 If you meant to cross compile, use \`--host'.
2471 See \`config.log' for more details.
" "$LINENO" 5; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2476 $as_echo "yes" >&6; }
2478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2479 ac_clean_files=$ac_clean_files_save
2480 # Check that the compiler produces executables we can run. If not, either
2481 # the compiler is broken, or we cross compile.
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2483 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2485 $as_echo "$cross_compiling" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2488 $as_echo_n "checking
for suffix of executables...
" >&6; }
2489 if { { ac_try="$ac_link"
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2494 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496 (eval "$ac_link") 2>&5
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2499 test $ac_status = 0; }; then :
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 for ac_file in conftest.exe conftest conftest.*; do
2505 test -f "$ac_file" || continue
2507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 as_fn_error "cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details.
" "$LINENO" 5; }
2519 rm -f conftest$ac_cv_exeext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2521 $as_echo "$ac_cv_exeext" >&6; }
2523 rm -f conftest.$ac_ext
2524 EXEEXT=$ac_cv_exeext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2527 $as_echo_n "checking
for suffix of object files...
" >&6; }
2528 if test "${ac_cv_objext+set}" = set; then :
2529 $as_echo_n "(cached
) " >&6
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2542 rm -f conftest.o conftest.obj
2543 if { { ac_try="$ac_compile"
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2549 $as_echo "$ac_try_echo"; } >&5
2550 (eval "$ac_compile") 2>&5
2552 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2553 test $ac_status = 0; }; then :
2554 for ac_file in conftest.o conftest.obj conftest.*; do
2555 test -f "$ac_file" || continue;
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2563 $as_echo "$as_me: failed program was
:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error "cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details.
" "$LINENO" 5; }
2571 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2574 $as_echo "$ac_cv_objext" >&6; }
2575 OBJEXT=$ac_cv_objext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2578 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2579 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2580 $as_echo_n "(cached
) " >&6
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2596 if ac_fn_c_try_compile "$LINENO"; then :
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2607 if test $ac_compiler_gnu = yes; then
2612 ac_test_CFLAGS=${CFLAGS+set}
2613 ac_save_CFLAGS=$CFLAGS
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2615 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2616 if test "${ac_cv_prog_cc_g+set}" = set; then :
2617 $as_echo_n "(cached
) " >&6
2619 ac_save_c_werror_flag=$ac_c_werror_flag
2620 ac_c_werror_flag=yes
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2634 if ac_fn_c_try_compile "$LINENO"; then :
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2649 if ac_fn_c_try_compile "$LINENO"; then :
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2665 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_c_werror_flag=$ac_save_c_werror_flag
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
2676 $as_echo "$ac_cv_prog_cc_g" >&6; }
2677 if test "$ac_test_CFLAGS" = set; then
2678 CFLAGS=$ac_save_CFLAGS
2679 elif test $ac_cv_prog_cc_g = yes; then
2680 if test "$GCC" = yes; then
2686 if test "$GCC" = yes; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
2693 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
2694 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2695 $as_echo_n "(cached
) " >&6
2697 ac_cv_prog_cc_c89=no
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 #include <sys/types.h>
2704 #include <sys/stat.h>
2705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2706 struct buf { int x; };
2707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2708 static char *e (p, i)
2714 static char *f (char * (*g) (char **, int), char **p, ...)
2719 s = g (p, va_arg (v,int));
2724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2725 function prototypes and stuff, but not '\xHH' hex character constants.
2726 These don't provoke an error unfortunately, instead are silently treated
2727 as 'x'. The following induces an error, until -std is added to get
2728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2729 array size at least. It's necessary to write '\x00'==0 to get something
2730 that's true only with -std. */
2731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2734 inside strings and character constants. */
2736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2738 int test (int i, double x);
2739 struct s1 {int (*f) (int a);};
2740 struct s2 {int (*f) (double a);};
2741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2755 CC="$ac_save_CC $ac_arg"
2756 if ac_fn_c_try_compile "$LINENO"; then :
2757 ac_cv_prog_cc_c89=$ac_arg
2759 rm -f core conftest.err conftest.$ac_objext
2760 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2762 rm -f conftest.$ac_ext
2767 case "x
$ac_cv_prog_cc_c89" in
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
2770 $as_echo "none needed
" >&6; } ;;
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
2773 $as_echo "unsupported
" >&6; } ;;
2775 CC="$CC $ac_cv_prog_cc_c89"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
2777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2779 if test "x
$ac_cv_prog_cc_c89" != xno; then :
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 ac_cpp='$CXXCPP $CPPFLAGS'
2791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2794 if test -z "$CXX"; then
2795 if test -n "$CCC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2804 $as_echo_n "checking
for $ac_word...
" >&6; }
2805 if test "${ac_cv_prog_CXX+set}" = set; then :
2806 $as_echo_n "(cached
) " >&6
2808 if test -n "$CXX"; then
2809 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$CXX"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX" >&5
2831 $as_echo "$CXX" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2834 $as_echo "no
" >&6; }
2838 test -n "$CXX" && break
2841 if test -z "$CXX"; then
2843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2848 $as_echo_n "checking
for $ac_word...
" >&6; }
2849 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2850 $as_echo_n "(cached
) " >&6
2852 if test -n "$ac_ct_CXX"; then
2853 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_ac_ct_CXX="$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2872 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2873 if test -n "$ac_ct_CXX"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CXX" >&5
2875 $as_echo "$ac_ct_CXX" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2878 $as_echo "no
" >&6; }
2882 test -n "$ac_ct_CXX" && break
2885 if test "x
$ac_ct_CXX" = x; then
2888 case $cross_compiling:$ac_tool_warned in
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2891 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2892 ac_tool_warned=yes ;;
2900 # Provide some information about the compiler.
2901 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C
++ compiler version
" >&5
2904 for ac_option in --version -v -V -qversion; do
2905 { { ac_try="$ac_compiler $ac_option >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2914 if test -s conftest.err; then
2916 ... rest of stderr output deleted ...
2917 10q' conftest.err >conftest.er1
2918 cat conftest.er1 >&5
2919 rm -f conftest.er1 conftest.err
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2922 test $ac_status = 0; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler
" >&5
2926 $as_echo_n "checking whether we are using the GNU C
++ compiler...
" >&6; }
2927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2928 $as_echo_n "(cached
) " >&6
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2944 if ac_fn_cxx_try_compile "$LINENO"; then :
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_cxx_compiler_gnu" >&5
2954 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2955 if test $ac_compiler_gnu = yes; then
2960 ac_test_CXXFLAGS=${CXXFLAGS+set}
2961 ac_save_CXXFLAGS=$CXXFLAGS
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX accepts
-g" >&5
2963 $as_echo_n "checking whether
$CXX accepts
-g...
" >&6; }
2964 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2965 $as_echo_n "(cached
) " >&6
2967 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2968 ac_cxx_werror_flag=yes
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2982 if ac_fn_cxx_try_compile "$LINENO"; then :
2983 ac_cv_prog_cxx_g=yes
2986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2987 /* end confdefs.h. */
2997 if ac_fn_cxx_try_compile "$LINENO"; then :
3000 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3013 if ac_fn_cxx_try_compile "$LINENO"; then :
3014 ac_cv_prog_cxx_g=yes
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cxx_g" >&5
3024 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3025 if test "$ac_test_CXXFLAGS" = set; then
3026 CXXFLAGS=$ac_save_CXXFLAGS
3027 elif test $ac_cv_prog_cxx_g = yes; then
3028 if test "$GXX" = yes; then
3034 if test "$GXX" = yes; then
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}ar; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3050 $as_echo_n "checking
for $ac_word...
" >&6; }
3051 if test "${ac_cv_prog_AR+set}" = set; then :
3052 $as_echo_n "(cached
) " >&6
3054 if test -n "$AR"; then
3055 ac_cv_prog_AR="$AR" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_AR="${ac_tool_prefix}ar"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$AR"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
3077 $as_echo "$AR" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3080 $as_echo "no
" >&6; }
3085 if test -z "$ac_cv_prog_AR"; then
3087 # Extract the first word of "ar", so it can be a program name with args.
3088 set dummy ar; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3090 $as_echo_n "checking
for $ac_word...
" >&6; }
3091 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3092 $as_echo_n "(cached
) " >&6
3094 if test -n "$ac_ct_AR"; then
3095 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_AR="ar"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3115 if test -n "$ac_ct_AR"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
3117 $as_echo "$ac_ct_AR" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3120 $as_echo "no
" >&6; }
3123 if test "x
$ac_ct_AR" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3129 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3130 ac_tool_warned=yes ;;
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3142 $as_echo_n "checking
for $ac_word...
" >&6; }
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3144 $as_echo_n "(cached
) " >&6
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3166 RANLIB=$ac_cv_prog_RANLIB
3167 if test -n "$RANLIB"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
3169 $as_echo "$RANLIB" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3172 $as_echo "no
" >&6; }
3177 if test -z "$ac_cv_prog_RANLIB"; then
3178 ac_ct_RANLIB=$RANLIB
3179 # Extract the first word of "ranlib
", so it can be a program name with args.
3180 set dummy ranlib; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3182 $as_echo_n "checking
for $ac_word...
" >&6; }
3183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3184 $as_echo_n "(cached
) " >&6
3186 if test -n "$ac_ct_RANLIB"; then
3187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_ac_ct_RANLIB="ranlib
"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3207 if test -n "$ac_ct_RANLIB"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
3209 $as_echo "$ac_ct_RANLIB" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3212 $as_echo "no
" >&6; }
3215 if test "x
$ac_ct_RANLIB" = x; then
3218 case $cross_compiling:$ac_tool_warned in
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3221 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3222 ac_tool_warned=yes ;;
3224 RANLIB=$ac_ct_RANLIB
3227 RANLIB="$ac_cv_prog_RANLIB"
3231 #-------------------------------------------------------------------------
3232 # MCPPBS specific program checks
3233 #-------------------------------------------------------------------------
3234 # These macros check to see if we can do a stow-based install and also
3235 # check for an isa simulator suitable for running the unit test programs
3238 # Find a good install program. We prefer a C program (faster),
3239 # so one script is as good as another. But avoid the broken or
3240 # incompatible versions:
3241 # SysV /etc/install, /usr/sbin/install
3242 # SunOS /usr/etc/install
3243 # IRIX /sbin/install
3245 # AmigaOS /C/install, which installs bootblocks on floppy discs
3246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
3249 # OS/2's system install, which has a completely different semantic
3250 # ./install, which can be erroneously created by make from ./install.sh.
3251 # Reject install programs that cannot install multiple files.
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a BSD-compatible
install" >&5
3253 $as_echo_n "checking
for a BSD-compatible
install...
" >&6; }
3254 if test -z "$INSTALL"; then
3255 if test "${ac_cv_path_install+set}" = set; then :
3256 $as_echo_n "(cached
) " >&6
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 # Account for people who put trailing slashes in PATH elements.
3264 case $as_dir/ in #((
3265 ./ | .// | /[cC]/* | \
3266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3270 # OSF1 and SCO ODT 3.0 have their own names for install.
3271 # Don't use installbsd from OSF since it installs stuff as root
3273 for ac_prog in ginstall scoinst install; do
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3276 if test $ac_prog = install &&
3277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3278 # AIX install. It has an incompatible calling convention.
3280 elif test $ac_prog = install &&
3281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3282 # program-specific install script used by HP pwplus--don't use.
3285 rm -rf conftest.one conftest.two conftest.dir
3286 echo one > conftest.one
3287 echo two > conftest.two
3289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir
" &&
3290 test -s conftest.one && test -s conftest.two &&
3291 test -s conftest.dir/conftest.one &&
3292 test -s conftest.dir/conftest.two
3294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307 rm -rf conftest.one conftest.two conftest.dir
3310 if test "${ac_cv_path_install+set}" = set; then
3311 INSTALL=$ac_cv_path_install
3313 # As a last resort, use the slow shell script. Don't cache a
3314 # value for INSTALL within a source directory, because that will
3315 # break other packages using the cache if that directory is
3316 # removed, or if the value is a relative name.
3317 INSTALL=$ac_install_sh
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $INSTALL" >&5
3321 $as_echo "$INSTALL" >&6; }
3323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3324 # It thinks the first close brace ends the variable substitution.
3325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3333 # Configure command line option
3335 # Check whether --enable-stow was given.
3336 if test "${enable_stow+set}" = set; then :
3337 enableval=$enable_stow; enable_stow="yes"
3345 # Environment variables
3350 # Check for install script
3354 # Deterimine if native build and set prefix appropriately
3356 if test ${enable_stow} = "yes" ; then :
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3363 $as_echo_n "checking
for $ac_word...
" >&6; }
3364 if test "${ac_cv_prog_stow+set}" = set; then :
3365 $as_echo_n "(cached
) " >&6
3367 if test -n "$stow"; then
3368 ac_cv_prog_stow="$stow" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_stow="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3387 stow=$ac_cv_prog_stow
3388 if test -n "$stow"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $stow" >&5
3390 $as_echo "$stow" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3393 $as_echo "no
" >&6; }
3397 test -n "$stow" && break
3399 test -n "$stow" || stow="no
"
3401 if test ${stow} = "no
" ; then :
3403 as_fn_error "Cannot use
--enable-stow since stow is not available
" "$LINENO" 5
3407 # Check if native or non-native build
3409 if test "${build}" = "${host}" ; then :
3412 # build == host so this is a native build. Make sure --prefix not
3413 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3415 if test "${prefix}" = "NONE
" && test -n "${STOW_PREFIX}" ; then :
3417 prefix="${STOW_PREFIX}"
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_PREFIX from environment
" >&5
3419 $as_echo "$as_me: Using \
$STOW_PREFIX from environment
" >&6;}
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3421 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3429 # build != host so this is a non-native build. Make sure --prefix
3430 # not set and $STOW_ROOT is set, then set
3431 # prefix=$STOW_ROOT/${host_alias}.
3433 if test "${prefix}" = "NONE
" && test -n "${STOW_ROOT}" ; then :
3435 prefix="${STOW_ROOT}/${host_alias}"
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \
$STOW_ROOT from environment
" >&5
3437 $as_echo "$as_me: Using \
$STOW_ROOT from environment
" >&6;}
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix
=${prefix}" >&5
3439 $as_echo "$as_me: prefix
=${prefix}" >&6;}
3451 if test "${build}" != "${host}" ; then :
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in isa-run run
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3459 $as_echo_n "checking
for $ac_word...
" >&6; }
3460 if test "${ac_cv_prog_RUN+set}" = set; then :
3461 $as_echo_n "(cached
) " >&6
3463 if test -n "$RUN"; then
3464 ac_cv_prog_RUN="$RUN" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_RUN="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$RUN"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUN" >&5
3486 $as_echo "$RUN" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3489 $as_echo "no
" >&6; }
3493 test -n "$RUN" && break
3496 if test -z "$RUN"; then
3498 for ac_prog in isa-run run
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3503 $as_echo_n "checking
for $ac_word...
" >&6; }
3504 if test "${ac_cv_prog_ac_ct_RUN+set}" = set; then :
3505 $as_echo_n "(cached
) " >&6
3507 if test -n "$ac_ct_RUN"; then
3508 ac_cv_prog_ac_ct_RUN="$ac_ct_RUN" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_ac_ct_RUN="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_RUN=$ac_cv_prog_ac_ct_RUN
3528 if test -n "$ac_ct_RUN"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RUN" >&5
3530 $as_echo "$ac_ct_RUN" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3533 $as_echo "no
" >&6; }
3537 test -n "$ac_ct_RUN" && break
3540 if test "x
$ac_ct_RUN" = x; then
3543 case $cross_compiling:$ac_tool_warned in
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3546 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3547 ac_tool_warned=yes ;;
3553 if test ${RUN} = "no
" ; then :
3555 as_fn_error "Cannot
find simulator
for target
${target_alias}" "$LINENO" 5
3568 #-------------------------------------------------------------------------
3569 # Checks for header files
3570 #-------------------------------------------------------------------------
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3579 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3580 # On Suns, sometimes $CPP names a directory.
3581 if test -n "$CPP" && test -d "$CPP"; then
3584 if test -z "$CPP"; then
3585 if test "${ac_cv_prog_CPP+set}" = set; then :
3586 $as_echo_n "(cached
) " >&6
3588 # Double quotes because CPP needs to be expanded
3589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3592 for ac_c_preproc_warn_flag in '' yes
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error
" is here to catch this case.
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3603 # include <limits.h>
3605 # include <assert.h>
3609 if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3624 # Broken: success on invalid input.
3627 # Passes both tests.
3631 rm -f conftest.err conftest.$ac_ext
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then :
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3649 $as_echo "$CPP" >&6; }
3651 for ac_c_preproc_warn_flag in '' yes
3653 # Use a header file that comes with gcc, so configuring glibc
3654 # with a fresh cross-compiler works.
3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3656 # <limits.h> exists even on freestanding compilers.
3657 # On the NeXT, cc -E runs the code through the compiler's parser,
3658 # not just through cpp. "Syntax error
" is here to catch this case.
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3662 # include <limits.h>
3664 # include <assert.h>
3668 if ac_fn_c_try_cpp "$LINENO"; then :
3671 # Broken: fails on valid input.
3674 rm -f conftest.err conftest.$ac_ext
3676 # OK, works on sane cases. Now check whether nonexistent headers
3677 # can be detected and how.
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <ac_nonexistent.h>
3682 if ac_fn_c_try_cpp "$LINENO"; then :
3683 # Broken: success on invalid input.
3686 # Passes both tests.
3690 rm -f conftest.err conftest.$ac_ext
3693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3694 rm -f conftest.err conftest.$ac_ext
3695 if $ac_preproc_ok; then :
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3701 See \`config.log' for more details.
" "$LINENO" 5; }
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3712 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then :
3714 $as_echo_n "(cached
) " >&6
3716 if test -z "$GREP"; then
3717 ac_path_GREP_found=false
3718 # Loop through the user's path and test for each of PROGNAME-LIST
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3723 test -z "$as_dir" && as_dir=.
3724 for ac_prog in grep ggrep; do
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3727 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3728 # Check for GNU ac_path_GREP and select it if it is found.
3729 # Check for GNU $ac_path_GREP
3730 case `"$ac_path_GREP" --version 2>&1` in
3732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3735 $as_echo_n 0123456789 >"conftest.
in"
3738 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3739 mv "conftest.tmp
" "conftest.
in"
3740 cp "conftest.
in" "conftest.
nl"
3741 $as_echo 'GREP' >> "conftest.
nl"
3742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3743 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3744 as_fn_arith $ac_count + 1 && ac_count=$as_val
3745 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3746 # Best one so far, save it but keep looking for a better one
3747 ac_cv_path_GREP="$ac_path_GREP"
3748 ac_path_GREP_max=$ac_count
3750 # 10*(2^10) chars as input seems more than enough
3751 test $ac_count -gt 10 && break
3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3756 $ac_path_GREP_found && break 3
3761 if test -z "$ac_cv_path_GREP"; then
3762 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3765 ac_cv_path_GREP=$GREP
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3770 $as_echo "$ac_cv_path_GREP" >&6; }
3771 GREP="$ac_cv_path_GREP"
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3775 $as_echo_n "checking
for egrep...
" >&6; }
3776 if test "${ac_cv_path_EGREP+set}" = set; then :
3777 $as_echo_n "(cached
) " >&6
3779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3780 then ac_cv_path_EGREP="$GREP -E"
3782 if test -z "$EGREP"; then
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3801 $as_echo_n 0123456789 >"conftest.
in"
3804 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3805 mv "conftest.tmp
" "conftest.
in"
3806 cp "conftest.
in" "conftest.
nl"
3807 $as_echo 'EGREP' >> "conftest.
nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3809 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3810 as_fn_arith $ac_count + 1 && ac_count=$as_val
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3822 $ac_path_EGREP_found && break 3
3827 if test -z "$ac_cv_path_EGREP"; then
3828 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3831 ac_cv_path_EGREP=$EGREP
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3837 $as_echo "$ac_cv_path_EGREP" >&6; }
3838 EGREP="$ac_cv_path_EGREP"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3842 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3843 if test "${ac_cv_header_stdc+set}" = set; then :
3844 $as_echo_n "(cached
) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_header_stdc=yes
3864 ac_cv_header_stdc=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 if test $ac_cv_header_stdc = yes; then
3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3875 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3876 $EGREP "memchr
" >/dev/null 2>&1; then :
3879 ac_cv_header_stdc=no
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3892 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3893 $EGREP "free
" >/dev/null 2>&1; then :
3896 ac_cv_header_stdc=no
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then :
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 #if ((' ' & 0x0FF) == 0x020)
3912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3915 # define ISLOWER(c) \
3916 (('a' <= (c) && (c) <= 'i') \
3917 || ('j' <= (c) && (c) <= 'r') \
3918 || ('s' <= (c) && (c) <= 'z'))
3919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3927 for (i = 0; i < 256; i++)
3928 if (XOR (islower (i), ISLOWER (i))
3929 || toupper (i) != TOUPPER (i))
3934 if ac_fn_c_try_run "$LINENO"; then :
3937 ac_cv_header_stdc=no
3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3940 conftest.$ac_objext conftest.beam conftest.$ac_ext
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
3946 $as_echo "$ac_cv_header_stdc" >&6; }
3947 if test $ac_cv_header_stdc = yes; then
3949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3954 #-------------------------------------------------------------------------
3955 # Default compiler flags
3956 #-------------------------------------------------------------------------
3960 CXXFLAGS
="-Wall -O2"
3963 #-------------------------------------------------------------------------
3964 # MCPPBS subproject list
3965 #-------------------------------------------------------------------------
3966 # Order list so that subprojects only depend on those listed earlier.
3967 # The '*' suffix indicates an optional subproject. The '**' suffix
3968 # indicates an optional subproject which is also the name of a group.
3972 # Add command line argument to enable all optional subprojects
3974 # Check whether --enable-optional-subprojects was given.
3975 if test "${enable_optional_subprojects+set}" = set; then :
3976 enableval
=$enable_optional_subprojects;
3980 # Loop through the subprojects given in the macro argument
3984 # Determine if this is a required or an optional subproject
3988 # Determine if there is a group with the same name
3992 # Create variations of the subproject name suitable for use as a CPP
3993 # enabled define, a shell enabled variable, and a shell function
4005 # Add subproject to our running list
4007 subprojects
="$subprojects riscv"
4009 # Process the subproject appropriately. If enabled add it to the
4010 # $enabled_subprojects running shell variable, set a
4011 # SUBPROJECT_ENABLED C define, and include the appropriate
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4016 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4017 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4019 enable_riscv_sproj
="yes"
4020 subprojects_enabled
="$subprojects_enabled riscv"
4022 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4024 # Check whether --enable-fpu was given.
4025 if test "${enable_fpu+set}" = set; then :
4026 enableval
=$enable_fpu;
4029 if test "x$enable_fpu" != "xno"; then :
4032 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4037 # Check whether --enable-64bit was given.
4038 if test "${enable_64bit+set}" = set; then :
4039 enableval
=$enable_64bit;
4042 if test "x$enable_64bit" != "xno"; then :
4045 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4050 # Check whether --enable-rvc was given.
4051 if test "${enable_rvc+set}" = set; then :
4052 enableval
=$enable_rvc;
4055 if test "x$enable_rvc" != "xno"; then :
4058 $as_echo "#define RISCV_ENABLE_RVC /**/" >>confdefs.h
4063 libopc
=`dirname \`which riscv-gcc\
``/..
/`$ac_config_guess`/riscv
/lib
/libopcodes.a
4064 as_ac_File
=`$as_echo "ac_cv_file_$libopc" | $as_tr_sh`
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $libopc" >&5
4066 $as_echo_n "checking for $libopc... " >&6; }
4067 if { as_var
=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4068 $as_echo_n "(cached) " >&6
4070 test "$cross_compiling" = yes &&
4071 as_fn_error
"cannot check for file existence when cross compiling" "$LINENO" 5
4072 if test -r "$libopc"; then
4073 eval "$as_ac_File=yes"
4075 eval "$as_ac_File=no"
4078 eval ac_res
=\$
$as_ac_File
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4080 $as_echo "$ac_res" >&6; }
4081 eval as_val
=\$
$as_ac_File
4082 if test "x$as_val" = x
""yes; then :
4084 cat >>confdefs.h
<<_ACEOF
4085 #define `$as_echo "HAVE_$libopc" | $as_tr_cpp` 1
4087 have_libopcodes
="yes"
4089 have_libopcodes
="no"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
4094 $as_echo_n "checking for library containing bfd_init... " >&6; }
4095 if test "${ac_cv_search_bfd_init+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4098 ac_func_search_save_LIBS
=$LIBS
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4102 /* Override any GCC internal prototype to avoid an error.
4103 Use char because int might match the return type of a GCC
4104 builtin and then its argument prototype would still apply. */
4117 for ac_lib
in '' bfd
; do
4118 if test -z "$ac_lib"; then
4119 ac_res
="none required"
4122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4124 if ac_fn_c_try_link
"$LINENO"; then :
4125 ac_cv_search_bfd_init
=$ac_res
4127 rm -f core conftest.err conftest.
$ac_objext \
4129 if test "${ac_cv_search_bfd_init+set}" = set; then :
4133 if test "${ac_cv_search_bfd_init+set}" = set; then :
4136 ac_cv_search_bfd_init
=no
4139 LIBS
=$ac_func_search_save_LIBS
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
4142 $as_echo "$ac_cv_search_bfd_init" >&6; }
4143 ac_res
=$ac_cv_search_bfd_init
4144 if test "$ac_res" != no
; then :
4145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4148 have_libopcodes
="no"
4152 if test "$have_libopcodes" = "no"; then :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find opcodes library" >&5
4155 $as_echo "$as_me: WARNING: Could not find opcodes library" >&2;}
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Build will not include disassembly support" >&5
4157 $as_echo "$as_me: WARNING: Build will not include disassembly support" >&2;}
4161 LIBS
="$libopc $LIBS"
4163 $as_echo "#define RISCV_HAVE_LIBOPCODES /**/" >>confdefs.h
4172 # Determine if this is a required or an optional subproject
4176 # Determine if there is a group with the same name
4180 # Create variations of the subproject name suitable for use as a CPP
4181 # enabled define, a shell enabled variable, and a shell function
4193 # Add subproject to our running list
4195 subprojects
="$subprojects softfloat"
4197 # Process the subproject appropriately. If enabled add it to the
4198 # $enabled_subprojects running shell variable, set a
4199 # SUBPROJECT_ENABLED C define, and include the appropriate
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4204 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4205 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4207 enable_softfloat_sproj
="yes"
4208 subprojects_enabled
="$subprojects_enabled softfloat"
4210 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4217 # Determine if this is a required or an optional subproject
4221 # Determine if there is a group with the same name
4225 # Create variations of the subproject name suitable for use as a CPP
4226 # enabled define, a shell enabled variable, and a shell function
4238 # Add subproject to our running list
4240 subprojects
="$subprojects softfloat_riscv"
4242 # Process the subproject appropriately. If enabled add it to the
4243 # $enabled_subprojects running shell variable, set a
4244 # SUBPROJECT_ENABLED C define, and include the appropriate
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
4249 $as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
4250 ac_config_files
="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
4252 enable_softfloat_riscv_sproj
="yes"
4253 subprojects_enabled
="$subprojects_enabled softfloat_riscv"
4255 $as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
4262 # Output make variables
4269 #-------------------------------------------------------------------------
4270 # MCPPBS subproject groups
4271 #-------------------------------------------------------------------------
4272 # If a group has the same name as a subproject then you must add the
4273 # '**' suffix in the subproject list above. The list of subprojects in a
4274 # group should be ordered so that subprojets only depend on those listed
4275 # earlier. Here is an example:
4277 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4280 #-------------------------------------------------------------------------
4282 #-------------------------------------------------------------------------
4284 ac_config_headers
="$ac_config_headers config.h"
4286 ac_config_files
="$ac_config_files Makefile"
4288 cat >confcache
<<\_ACEOF
4289 # This file is a shell script that caches the results of configure
4290 # tests run on this system so they can be shared between configure
4291 # scripts and configure runs, see configure's option --config-cache.
4292 # It is not useful on other systems. If it contains results you don't
4293 # want to keep, you may remove or edit it.
4295 # config.status only pays attention to the cache file if you give it
4296 # the --recheck option to rerun configure.
4298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4304 # The following way of writing the cache mishandles newlines in values,
4305 # but we know of no workaround that is simple, portable, and efficient.
4306 # So, we kill variables containing newlines.
4307 # Ultrix sh set writes to stderr and can't be redirected directly,
4308 # and sets the high bit in the cache file unless we assign to the vars.
4310 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4311 eval ac_val
=\$
$ac_var
4315 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4316 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4319 _ | IFS | as_nl
) ;; #(
4320 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4321 *) { eval $ac_var=; unset $ac_var;} ;;
4327 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4328 *${as_nl}ac_space
=\
*)
4329 # `set' does not quote correctly, so add quotes: double-quote
4330 # substitution turns \\\\ into \\, and sed turns \\ into \.
4333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4336 # `set' quotes correctly as required by POSIX, so do not add quotes.
4337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4350 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4351 if test -w "$cache_file"; then
4352 test "x$cache_file" != "x/dev/null" &&
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4354 $as_echo "$as_me: updating cache $cache_file" >&6;}
4355 cat confcache
>$cache_file
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4358 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4363 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4364 # Let make expand exec_prefix.
4365 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4367 DEFS
=-DHAVE_CONFIG_H
4371 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4372 # 1. Remove the extension, and $U if already installed.
4373 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4374 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4375 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4376 # will be set to the directory where LIBOBJS objects are built.
4377 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4378 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4382 LTLIBOBJS
=$ac_ltlibobjs
4386 : ${CONFIG_STATUS=./config.status}
4388 ac_clean_files_save
=$ac_clean_files
4389 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4391 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4393 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4395 # Generated by $as_me.
4396 # Run this file to recreate the current configuration.
4397 # Compiler output produced by configure, useful for debugging
4398 # configure, is in config.log if it exists.
4404 SHELL=\${CONFIG_SHELL-$SHELL}
4407 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4408 ## -------------------- ##
4409 ## M4sh Initialization. ##
4410 ## -------------------- ##
4412 # Be more Bourne compatible
4413 DUALCASE
=1; export DUALCASE
# for MKS sh
4414 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4418 # is contrary to our usage. Disable this feature.
4419 alias -g '${1+"$@"}'='"$@"'
4420 setopt NO_GLOB_SUBST
4422 case `(set -o) 2>/dev/null` in #(
4434 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4435 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4437 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4438 # Prefer a ksh shell builtin over an external printf program on Solaris,
4439 # but without wasting forks for bash or zsh.
4440 if test -z "$BASH_VERSION$ZSH_VERSION" \
4441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4442 as_echo='print
-r --'
4443 as_echo_n='print
-rn --'
4444 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4445 as_echo='printf %s
\n'
4446 as_echo_n='printf %s
'
4448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4449 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4450 as_echo_n='/usr
/ucb
/echo -n'
4452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4453 as_echo_n_body='eval
4457 expr "X$arg" : "X\\(.*\\)$as_nl";
4458 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4460 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4462 export as_echo_n_body
4463 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4466 as_echo='sh
-c $as_echo_body as_echo
'
4469 # The user is always right.
4470 if test "${PATH_SEPARATOR+set}" != set; then
4472 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4473 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4480 # We need space, tab and new line, in precisely that order. Quoting is
4481 # there to prevent editors from complaining about space-tab.
4482 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4483 # splitting by setting IFS to empty value.)
4486 # Find who we are. Look in the path if we contain no directory separator.
4488 *[\\/]* ) as_myself=$0 ;;
4489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4500 # We did not find ourselves, most probably we were run as `sh COMMAND'
4501 # in which case we are not to be found in the path.
4502 if test "x$as_myself" = x
; then
4505 if test ! -f "$as_myself"; then
4506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4510 # Unset variables that we do not need and which cause bugs (e.g. in
4511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4512 # suppresses any "Segmentation fault" message there. '((' could
4513 # trigger a bug in pdksh 5.2.14.
4514 for as_var
in BASH_ENV ENV MAIL MAILPATH
4515 do eval test x\
${$as_var+set} = xset \
4516 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4529 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4532 # as_fn_error ERROR [LINENO LOG_FD]
4533 # ---------------------------------
4534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4536 # script with status $?, using 1 if that was 0.
4539 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4541 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4544 $as_echo "$as_me: error: $1" >&2
4545 as_fn_exit
$as_status
4549 # as_fn_set_status STATUS
4550 # -----------------------
4551 # Set $? to STATUS, without forking.
4555 } # as_fn_set_status
4559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4569 # Portably unset VAR.
4572 { eval $1=; unset $1;}
4574 as_unset
=as_fn_unset
4575 # as_fn_append VAR VALUE
4576 # ----------------------
4577 # Append the text in VALUE to the end of the definition contained in VAR. Take
4578 # advantage of any shell optimizations that allow amortized linear growth over
4579 # repeated appends, instead of the typical quadratic growth present in naive
4581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4582 eval 'as_fn_append ()
4593 # as_fn_arith ARG...
4594 # ------------------
4595 # Perform arithmetic evaluation on the ARGs, and store the result in the
4596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4597 # must be portable across $(()) and expr.
4598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4599 eval 'as_fn_arith ()
4606 as_val
=`expr "$@" || test $? -eq 1`
4611 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4612 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4618 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4619 as_basename
=basename
4624 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4630 as_me
=`$as_basename -- "$0" ||
4631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4632 X"$0" : 'X\(//\)$' \| \
4633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4635 sed '/^.*\/\([^/][^/]*\)\/*$/{
4649 # Avoid depending upon Character Ranges.
4650 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4651 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4652 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4653 as_cr_digits
='0123456789'
4654 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4656 ECHO_C
= ECHO_N
= ECHO_T
=
4657 case `echo -n x` in #(((((
4659 case `echo 'xy\c'` in
4660 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4662 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4669 rm -f conf$$ conf$$.exe conf$$.
file
4670 if test -d conf$$.dir
; then
4671 rm -f conf$$.dir
/conf$$.
file
4674 mkdir conf$$.dir
2>/dev
/null
4676 if (echo >conf$$.
file) 2>/dev
/null
; then
4677 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4679 # ... but there are two gotchas:
4680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4682 # In both cases, we have to default to `cp -p'.
4683 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4685 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4693 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4694 rmdir conf$$.dir
2>/dev
/null
4699 # Create "$as_dir" as a directory, including parents if necessary.
4704 -*) as_dir
=.
/$as_dir;;
4706 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4710 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4711 *) as_qdir
=$as_dir;;
4713 as_dirs
="'$as_qdir' $as_dirs"
4714 as_dir
=`$as_dirname -- "$as_dir" ||
4715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4716 X"$as_dir" : 'X\(//\)[^/]' \| \
4717 X"$as_dir" : 'X\(//\)$' \| \
4718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4719 $as_echo X"$as_dir" |
4720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4737 test -d "$as_dir" && break
4739 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4740 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
4744 if mkdir
-p .
2>/dev
/null
; then
4745 as_mkdir_p
='mkdir -p "$as_dir"'
4747 test -d .
/-p && rmdir .
/-p
4751 if test -x / >/dev
/null
2>&1; then
4754 if ls -dL / >/dev
/null
2>&1; then
4761 if test -d "$1"; then
4767 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4768 ???[sx]*):;;*)false;;esac;fi
4772 as_executable_p
=$as_test_x
4774 # Sed expression to map a string onto a valid CPP name.
4775 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4777 # Sed expression to map a string onto a valid variable name.
4778 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4782 ## ----------------------------------- ##
4783 ## Main body of $CONFIG_STATUS script. ##
4784 ## ----------------------------------- ##
4786 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4789 # Save the log message, to keep $0 and so on meaningful, and to
4790 # report actual input values of CONFIG_FILES etc. instead of their
4791 # values after options handling.
4793 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4794 generated by GNU Autoconf 2.64. Invocation command line was
4796 CONFIG_FILES = $CONFIG_FILES
4797 CONFIG_HEADERS = $CONFIG_HEADERS
4798 CONFIG_LINKS = $CONFIG_LINKS
4799 CONFIG_COMMANDS = $CONFIG_COMMANDS
4802 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4807 case $ac_config_files in *"
4808 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4811 case $ac_config_headers in *"
4812 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4817 # Files that config.status was made for.
4818 config_files="$ac_config_files"
4819 config_headers="$ac_config_headers"
4823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4825 \`$as_me' instantiates files and other configuration actions
4826 from templates according to the current configuration. Unless the files
4827 and actions are specified as TAGs, all are instantiated by default.
4829 Usage: $0 [OPTION]... [TAG]...
4831 -h, --help print this help, then exit
4832 -V, --version print version number and configuration settings, then exit
4833 -q, --quiet, --silent
4834 do not print progress messages
4835 -d, --debug don't remove temporary files
4836 --recheck update $as_me by reconfiguring in the same conditions
4837 --file=FILE[:TEMPLATE]
4838 instantiate the configuration file FILE
4839 --header=FILE[:TEMPLATE]
4840 instantiate the configuration header FILE
4842 Configuration files:
4845 Configuration headers:
4848 Report bugs to <Andrew Waterman>."
4851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4853 RISC-V ISA Simulator config.status ?
4854 configured by $0, generated by GNU Autoconf 2.64,
4855 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4857 Copyright (C) 2009 Free Software Foundation, Inc.
4858 This config.status script is free software; the Free Software Foundation
4859 gives unlimited permission to copy, distribute and modify it."
4864 test -n "\$AWK" || AWK=awk
4867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4868 # The default lists apply if the user does not specify any file.
4874 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4875 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4886 # Handling of the options.
4887 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4889 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4890 $as_echo "$ac_cs_version"; exit ;;
4891 --debug |
--debu |
--deb |
--de |
--d |
-d )
4893 --file |
--fil |
--fi |
--f )
4896 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4898 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4899 ac_need_defaults
=false
;;
4900 --header |
--heade |
--head |
--hea )
4903 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4905 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4906 ac_need_defaults
=false
;;
4908 # Conflict between --help and --header
4909 as_fn_error
"ambiguous option: \`$1'
4910 Try \`$0 --help' for more information.";;
4911 --help |
--hel |
-h )
4912 $as_echo "$ac_cs_usage"; exit ;;
4913 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4914 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4918 -*) as_fn_error
"unrecognized option: \`$1'
4919 Try \`$0 --help' for more information." ;;
4921 *) as_fn_append ac_config_targets
" $1"
4922 ac_need_defaults
=false
;;
4928 ac_configure_extra_args
=
4930 if $ac_cs_silent; then
4932 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4937 if \$ac_cs_recheck; then
4938 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4940 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4941 CONFIG_SHELL='$SHELL'
4947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4951 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4952 ## Running $as_me. ##
4958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4963 # Handling of arguments.
4964 for ac_config_target
in $ac_config_targets
4966 case $ac_config_target in
4967 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
4968 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
4969 "softfloat_riscv.mk") CONFIG_FILES
="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
4970 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4971 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4973 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4978 # If the user did not use the arguments to specify the items to instantiate,
4979 # then the envvar interface is used. Set only those that are not.
4980 # We use the long form for the default assignment because of an extremely
4981 # bizarre bug on SunOS 4.1.3.
4982 if $ac_need_defaults; then
4983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4987 # Have a temporary directory for convenience. Make it in the build tree
4988 # simply because there is no reason against having it here, and in addition,
4989 # creating and moving files from /tmp can sometimes cause problems.
4990 # Hook for its removal unless debugging.
4991 # Note that there is a small window in which the directory will not be cleaned:
4992 # after its creation but before its name has been assigned to `$tmp'.
4996 trap 'exit_status=$?
4997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4999 trap 'as_fn_exit 1' 1 2 13 15
5001 # Create a (secure) tmp directory for tmp files.
5004 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5005 test -n "$tmp" && test -d "$tmp"
5008 tmp
=.
/conf$$
-$RANDOM
5009 (umask 077 && mkdir
"$tmp")
5010 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
5012 # Set up the scripts for CONFIG_FILES section.
5013 # No need to generate them if there are no CONFIG_FILES.
5014 # This happens for instance with `./config.status config.h'.
5015 if test -n "$CONFIG_FILES"; then
5018 ac_cr
=`echo X | tr X '\015'`
5019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5020 # But we know of no other shell where ac_cr would be empty at this
5021 # point, so we can use a bashism as a fallback.
5022 if test "x$ac_cr" = x
; then
5023 eval ac_cr
=\$
\'\\r
\'
5025 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5032 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5037 echo "cat >conf$$subs.awk <<_ACEOF" &&
5038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5041 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5044 for ac_last_try in false false false false false :; do
5045 . ./conf$$subs.sh ||
5046 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5048 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5049 if test $ac_delim_n = $ac_delim_num; then
5051 elif $ac_last_try; then
5052 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5054 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5060 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
5064 s/^/S["/; s
/!.
*/"]=/
5074 s/\(.\{148\}\).*/\1/
5076 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5081 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5088 s/\(.\{148\}\).*/\1/
5090 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5094 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5099 ' <conf$$subs.awk | sed '
5104 ' >>$CONFIG_STATUS || ac_write_fail=1
5105 rm -f conf$$subs.awk
5106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5108 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5109 for (key in S) S_is_set[key] = 1
5115 nfields = split(line, field, "@
")
5117 len = length(field[1])
5118 for (i = 2; i < nfields; i++) {
5120 keylen = length(key)
5121 if (S_is_set[key]) {
5123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5124 len += length(value) + length(field[++i])
5135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5136 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5137 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5140 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5141 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5146 # trailing colons and then remove the whole line if VPATH becomes empty
5147 # (actually we leave an empty line to preserve line numbers).
5148 if test "x
$srcdir" = x.; then
5149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5153 s/^\([^=]*=[ ]*\):*/\1/
5159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5160 fi # test -n "$CONFIG_FILES"
5162 # Set up the scripts for CONFIG_HEADERS section.
5163 # No need to generate them if there are no CONFIG_HEADERS.
5164 # This happens for instance with `./config.status Makefile'.
5165 if test -n "$CONFIG_HEADERS"; then
5166 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5170 # Transform confdefs.h into an awk script `defines.awk', embedded as
5171 # here-document in config.status, that substitutes the proper values into
5172 # config.h.in to produce config.h.
5174 # Create a delimiter string that does not exist in confdefs.h, to ease
5175 # handling of long lines.
5177 for ac_last_try in false false :; do
5178 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5179 if test -z "$ac_t"; then
5181 elif $ac_last_try; then
5182 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5184 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5188 # For the awk script, D is an array of macro values keyed by name,
5189 # likewise P contains macro parameters if any. Preserve backslash
5190 # newline sequences.
5192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5194 s/.\{148\}/&'"$ac_delim"'/g
5197 s/^[ ]*#[ ]*define[ ][ ]*/ /
5204 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5206 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5211 D["\
1"]=" \
3\\\\\\n
"\\/p
5213 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5218 s/.\{148\}/&'"$ac_delim"'/g
5223 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5226 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5228 ' <confdefs.h | sed '
5229 s/'"$ac_delim"'/"\\\
5230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5233 for (key in D) D_is_set[key] = 1
5236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5238 split(line, arg, " ")
5239 if (arg[1] == "#") {
5243 defundef
= substr
(arg
[1], 2)
5246 split(mac1
, mac2
, "(") #)
5248 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5249 if (D_is_set
[macro
]) {
5250 # Preserve the white space surrounding the "#".
5251 print prefix
"define", macro P
[macro
] D
[macro
]
5254 # Replace #undef with comments. This is necessary, for example,
5255 # in the case of _POSIX_SOURCE, which is predefined and required
5256 # on some systems where configure will not decide to define it.
5257 if (defundef
== "undef") {
5258 print
"/*", prefix defundef
, macro
, "*/"
5266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5267 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5268 fi # test -n "$CONFIG_HEADERS"
5271 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5276 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5278 case $ac_mode$ac_tag in
5280 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5281 :[FH
]-) ac_tag
=-:-;;
5282 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5299 -) ac_f
="$tmp/stdin";;
5300 *) # Look for the file first in the build tree, then in the source tree
5301 # (if the path is not absolute). The absolute path cannot be DOS-style,
5302 # because $ac_f cannot contain `:'.
5306 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5308 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5310 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5311 as_fn_append ac_file_inputs
" '$ac_f'"
5314 # Let's still pretend it is `configure' which instantiates (i.e., don't
5315 # use $as_me), people would be surprised to read:
5316 # /* config.h. Generated by config.status. */
5317 configure_input
='Generated from '`
5318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5320 if test x
"$ac_file" != x-
; then
5321 configure_input
="$ac_file. $configure_input"
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5323 $as_echo "$as_me: creating $ac_file" >&6;}
5325 # Neutralize special characters interpreted by sed in replacement strings.
5326 case $configure_input in #(
5327 *\
&* |
*\|
* |
*\\* )
5328 ac_sed_conf_input
=`$as_echo "$configure_input" |
5329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5330 *) ac_sed_conf_input
=$configure_input;;
5334 *:-:* |
*:-) cat >"$tmp/stdin" \
5335 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5340 ac_dir
=`$as_dirname -- "$ac_file" ||
5341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5342 X"$ac_file" : 'X\(//\)[^/]' \| \
5343 X"$ac_file" : 'X\(//\)$' \| \
5344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5345 $as_echo X"$ac_file" |
5346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5363 as_dir
="$ac_dir"; as_fn_mkdir_p
5367 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5369 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5370 # A ".." for each directory in $ac_dir_suffix.
5371 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5372 case $ac_top_builddir_sub in
5373 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5374 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5377 ac_abs_top_builddir
=$ac_pwd
5378 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5379 # for backward compatibility:
5380 ac_top_builddir
=$ac_top_build_prefix
5383 .
) # We are building in place.
5385 ac_top_srcdir
=$ac_top_builddir_sub
5386 ac_abs_top_srcdir
=$ac_pwd ;;
5387 [\\/]* | ?
:[\\/]* ) # Absolute name.
5388 ac_srcdir
=$srcdir$ac_dir_suffix;
5389 ac_top_srcdir
=$srcdir
5390 ac_abs_top_srcdir
=$srcdir ;;
5392 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5393 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5394 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5396 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5406 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5407 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5412 # If the template does not know about datarootdir, expand it.
5413 # FIXME: This hack should be removed a few years after 2.60.
5414 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5425 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5426 *datarootdir
*) ac_datarootdir_seen
=yes;;
5427 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5429 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5432 ac_datarootdir_hack='
5433 s&@datadir@&$datadir&g
5434 s&@docdir@&$docdir&g
5435 s&@infodir@&$infodir&g
5436 s&@localedir@&$localedir&g
5437 s&@mandir@&$mandir&g
5438 s&\\\${datarootdir}&$datarootdir&g' ;;
5442 # Neutralize VPATH when `$srcdir' = `.'.
5443 # Shell code in configure.ac might set extrasub.
5444 # FIXME: do we really want to maintain this feature?
5445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5446 ac_sed_extra="$ac_vpsub
5449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5451 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5452 s|@configure_input@|
$ac_sed_conf_input|
;t t
5453 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5454 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5455 s
&@srcdir@
&$ac_srcdir&;t t
5456 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5457 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5458 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5459 s
&@builddir@
&$ac_builddir&;t t
5460 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5461 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5462 s
&@INSTALL@
&$ac_INSTALL&;t t
5463 $ac_datarootdir_hack
5465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5466 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5469 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5472 which seems to be undefined. Please make sure it is defined." >&5
5473 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5474 which seems to be undefined. Please make sure it is defined." >&2;}
5478 -) cat "$tmp/out" && rm -f "$tmp/out";;
5479 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5481 || as_fn_error "could not create $ac_file" "$LINENO" 5
5487 if test x"$ac_file" != x-; then
5489 $as_echo "/* $configure_input */" \
5490 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5491 } >"$tmp/config.h" \
5492 || as_fn_error "could not create $ac_file" "$LINENO" 5
5493 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5495 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5498 mv "$tmp/config.h" "$ac_file" \
5499 || as_fn_error "could not create $ac_file" "$LINENO" 5
5502 $as_echo "/* $configure_input */" \
5503 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5504 || as_fn_error "could not create -" "$LINENO" 5
5516 ac_clean_files=$ac_clean_files_save
5518 test $ac_write_fail = 0 ||
5519 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5522 # configure is writing to config.log, and then calls config.status.
5523 # config.status does its own redirection, appending to config.log.
5524 # Unfortunately, on DOS this fails, as config.log is still kept open
5525 # by configure, so config.status won't be able to
write to it
; its
5526 # output is simply discarded. So we exec the FD to /dev/null,
5527 # effectively closing config.log, so it can be properly (re)opened and
5528 # appended to by config.status. When coming back to configure, we
5529 # need to make the FD available again.
5530 if test "$no_create" != yes; then
5532 ac_config_status_args
=
5533 test "$silent" = yes &&
5534 ac_config_status_args
="$ac_config_status_args --quiet"
5536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5539 # would make configure fail if this is the last instruction.
5540 $ac_cs_success || as_fn_exit $?
5542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5544 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}