2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='RISC-V ISA Simulator'
582 PACKAGE_TARNAME
='spike'
584 PACKAGE_STRING
='RISC-V ISA Simulator ?'
585 PACKAGE_BUGREPORT
='Andrew Waterman'
588 ac_unique_file
="riscv/common.h"
589 ac_subst_vars
='LTLIBOBJS
650 program_transform_name
663 enable_option_checking
665 enable_optional_subprojects
672 ac_precious_vars
='build_alias
688 # Initialize some variables set by options.
690 ac_init_version
=false
691 ac_unrecognized_opts
=
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
702 program_transform_name
=s
,x
,x
,
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir
='${exec_prefix}/bin'
717 sbindir
='${exec_prefix}/sbin'
718 libexecdir
='${exec_prefix}/libexec'
719 datarootdir
='${prefix}/share'
720 datadir
='${datarootdir}'
721 sysconfdir
='${prefix}/etc'
722 sharedstatedir
='${prefix}/com'
723 localstatedir
='${prefix}/var'
724 includedir
='${prefix}/include'
725 oldincludedir
='/usr/include'
726 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
727 infodir
='${datarootdir}/info'
732 libdir
='${exec_prefix}/lib'
733 localedir
='${datarootdir}/locale'
734 mandir
='${datarootdir}/man'
740 # If the previous option needs an argument, assign it.
741 if test -n "$ac_prev"; then
742 eval $ac_prev=\
$ac_option
748 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
753 # Accept the important Cygnus configure options, so we can diagnose typos.
755 case $ac_dashdash$ac_option in
759 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
761 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
764 -build |
--build |
--buil |
--bui |
--bu)
765 ac_prev
=build_alias
;;
766 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
767 build_alias
=$ac_optarg ;;
769 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
770 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
771 ac_prev
=cache_file
;;
772 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
773 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
774 cache_file
=$ac_optarg ;;
777 cache_file
=config.cache
;;
779 -datadir |
--datadir |
--datadi |
--datad)
781 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
782 datadir
=$ac_optarg ;;
784 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
785 |
--dataroo |
--dataro |
--datar)
786 ac_prev
=datarootdir
;;
787 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
788 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
789 datarootdir
=$ac_optarg ;;
791 -disable-* |
--disable-*)
792 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
795 as_fn_error $?
"invalid feature name: $ac_useropt"
796 ac_useropt_orig
=$ac_useropt
797 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
802 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
803 ac_unrecognized_sep
=', ';;
805 eval enable_
$ac_useropt=no
;;
807 -docdir |
--docdir |
--docdi |
--doc |
--do)
809 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
812 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
814 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
817 -enable-* |
--enable-*)
818 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
821 as_fn_error $?
"invalid feature name: $ac_useropt"
822 ac_useropt_orig
=$ac_useropt
823 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824 case $ac_user_opts in
828 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
829 ac_unrecognized_sep
=', ';;
831 eval enable_
$ac_useropt=\
$ac_optarg ;;
833 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
834 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
835 |
--exec |
--exe |
--ex)
836 ac_prev
=exec_prefix
;;
837 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
838 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
839 |
--exec=* |
--exe=* |
--ex=*)
840 exec_prefix
=$ac_optarg ;;
842 -gas |
--gas |
--ga |
--g)
843 # Obsolete; use --with-gas.
846 -help |
--help |
--hel |
--he |
-h)
848 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
849 ac_init_help
=recursive
;;
850 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
851 ac_init_help
=short
;;
853 -host |
--host |
--hos |
--ho)
854 ac_prev
=host_alias
;;
855 -host=* |
--host=* |
--hos=* |
--ho=*)
856 host_alias
=$ac_optarg ;;
858 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
860 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
862 htmldir
=$ac_optarg ;;
864 -includedir |
--includedir |
--includedi |
--included |
--include \
865 |
--includ |
--inclu |
--incl |
--inc)
866 ac_prev
=includedir
;;
867 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
868 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
869 includedir
=$ac_optarg ;;
871 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
873 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
874 infodir
=$ac_optarg ;;
876 -libdir |
--libdir |
--libdi |
--libd)
878 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
881 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
882 |
--libexe |
--libex |
--libe)
883 ac_prev
=libexecdir
;;
884 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
885 |
--libexe=* |
--libex=* |
--libe=*)
886 libexecdir
=$ac_optarg ;;
888 -localedir |
--localedir |
--localedi |
--localed |
--locale)
890 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
891 localedir
=$ac_optarg ;;
893 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
894 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
895 ac_prev
=localstatedir
;;
896 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
897 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
898 localstatedir
=$ac_optarg ;;
900 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
902 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
906 # Obsolete; use --without-fp.
909 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
910 |
--no-cr |
--no-c |
-n)
913 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
914 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
917 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
918 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
919 |
--oldin |
--oldi |
--old |
--ol |
--o)
920 ac_prev
=oldincludedir
;;
921 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
922 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
923 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
924 oldincludedir
=$ac_optarg ;;
926 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
928 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
931 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
932 |
--program-pre |
--program-pr |
--program-p)
933 ac_prev
=program_prefix
;;
934 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
935 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
936 program_prefix
=$ac_optarg ;;
938 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
939 |
--program-suf |
--program-su |
--program-s)
940 ac_prev
=program_suffix
;;
941 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
942 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
943 program_suffix
=$ac_optarg ;;
945 -program-transform-name |
--program-transform-name \
946 |
--program-transform-nam |
--program-transform-na \
947 |
--program-transform-n |
--program-transform- \
948 |
--program-transform |
--program-transfor \
949 |
--program-transfo |
--program-transf \
950 |
--program-trans |
--program-tran \
951 |
--progr-tra |
--program-tr |
--program-t)
952 ac_prev
=program_transform_name
;;
953 -program-transform-name=* |
--program-transform-name=* \
954 |
--program-transform-nam=* |
--program-transform-na=* \
955 |
--program-transform-n=* |
--program-transform-=* \
956 |
--program-transform=* |
--program-transfor=* \
957 |
--program-transfo=* |
--program-transf=* \
958 |
--program-trans=* |
--program-tran=* \
959 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
960 program_transform_name
=$ac_optarg ;;
962 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
964 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
967 -psdir |
--psdir |
--psdi |
--psd |
--ps)
969 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
972 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
973 |
-silent |
--silent |
--silen |
--sile |
--sil)
976 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
978 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
980 sbindir
=$ac_optarg ;;
982 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
983 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
984 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
986 ac_prev
=sharedstatedir
;;
987 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
988 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
989 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
991 sharedstatedir
=$ac_optarg ;;
993 -site |
--site |
--sit)
995 -site=* |
--site=* |
--sit=*)
998 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1000 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1001 srcdir
=$ac_optarg ;;
1003 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1004 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1005 ac_prev
=sysconfdir
;;
1006 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1007 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1008 sysconfdir
=$ac_optarg ;;
1010 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1011 ac_prev
=target_alias
;;
1012 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1013 target_alias
=$ac_optarg ;;
1015 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1018 -version |
--version |
--versio |
--versi |
--vers |
-V)
1019 ac_init_version
=: ;;
1022 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1025 as_fn_error $?
"invalid package name: $ac_useropt"
1026 ac_useropt_orig
=$ac_useropt
1027 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1032 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1033 ac_unrecognized_sep
=', ';;
1035 eval with_
$ac_useropt=\
$ac_optarg ;;
1037 -without-* |
--without-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid package name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval with_
$ac_useropt=no
;;
1054 # Obsolete; use --with-x.
1057 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1058 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1059 ac_prev
=x_includes
;;
1060 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1061 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1062 x_includes
=$ac_optarg ;;
1064 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1065 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1066 ac_prev
=x_libraries
;;
1067 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1068 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1069 x_libraries
=$ac_optarg ;;
1071 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1072 Try \`$0 --help' for more information"
1076 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1077 # Reject names that are not valid shell variable names.
1078 case $ac_envvar in #(
1079 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1080 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1082 eval $ac_envvar=\
$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1089 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1096 if test -n "$ac_prev"; then
1097 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1098 as_fn_error $?
"missing argument to $ac_option"
1101 if test -n "$ac_unrecognized_opts"; then
1102 case $enable_option_checking in
1104 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1105 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1109 # Check all directory arguments for consistency.
1110 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val
=\$
$ac_var
1116 # Remove trailing slashes.
1119 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1120 eval $ac_var=\
$ac_val;;
1122 # Be sure to have absolute directory names.
1124 [\\/$
]* | ?
:[\\/]* ) continue;;
1125 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1127 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1130 # There might be people who depend on the old broken behavior: `$host'
1131 # used to hold the argument of --host etc.
1132 # FIXME: To remove some day.
1135 target
=$target_alias
1137 # FIXME: To remove some day.
1138 if test "x$host_alias" != x
; then
1139 if test "x$build_alias" = x
; then
1140 cross_compiling
=maybe
1141 elif test "x$build_alias" != "x$host_alias"; then
1147 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1149 test "$silent" = yes && exec 6>/dev
/null
1152 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1153 ac_ls_di
=`ls -di .` &&
1154 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1155 as_fn_error $?
"working directory cannot be determined"
1156 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1157 as_fn_error $?
"pwd does not report name of working directory"
1160 # Find the source files, if location was not specified.
1161 if test -z "$srcdir"; then
1162 ac_srcdir_defaulted
=yes
1163 # Try the directory containing this script, then the parent directory.
1164 ac_confdir
=`$as_dirname -- "$as_myself" ||
1165 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1166 X"$as_myself" : 'X\(//\)[^/]' \| \
1167 X"$as_myself" : 'X\(//\)$' \| \
1168 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1169 $as_echo X"$as_myself" |
1170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1192 ac_srcdir_defaulted
=no
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1196 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1198 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1200 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1210 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 for ac_var
in $ac_precious_vars; do
1213 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1215 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1226 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking ...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1284 --build=BUILD configure
for building on BUILD
[guessed
]
1285 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1289 if test -n "$ac_init_help"; then
1290 case $ac_init_help in
1291 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1296 --disable-option-checking ignore unrecognized
--enable/--with options
1297 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1298 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1299 --enable-stow Enable stow-based
install
1300 --enable-optional-subprojects
1301 Enable all optional subprojects
1302 --disable-fpu Disable floating-point
1303 --disable-64bit Disable
64-bit mode
1304 --enable-commitlog Enable commit log generation
1305 --enable-histogram Enable PC histogram generation
1308 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1309 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1310 --with-fesvr path to your fesvr installation
if not
in a standard
1313 Some influential environment variables
:
1314 CC C compiler
command
1315 CFLAGS C compiler flags
1316 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1317 nonstandard directory
<lib dir
>
1318 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1319 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1320 you have headers
in a nonstandard directory
<include dir
>
1321 CXX C
++ compiler
command
1322 CXXFLAGS C
++ compiler flags
1323 STOW_ROOT Root
for non-native stow-based installs
1324 STOW_PREFIX Prefix
for stow-based installs
1327 Use these variables to override the choices made by
`configure' or to help
1328 it to find libraries and programs with nonstandard names/locations.
1330 Report bugs to <Andrew Waterman>.
1335 if test "$ac_init_help" = "recursive"; then
1336 # If there are subdirs, report their specific --help.
1337 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338 test -d "$ac_dir" ||
1339 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1347 # A ".." for each directory in $ac_dir_suffix.
1348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1349 case $ac_top_builddir_sub in
1350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 ac_abs_top_builddir=$ac_pwd
1355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1356 # for backward compatibility:
1357 ac_top_builddir=$ac_top_build_prefix
1360 .) # We are building in place.
1362 ac_top_srcdir=$ac_top_builddir_sub
1363 ac_abs_top_srcdir=$ac_pwd ;;
1364 [\\/]* | ?:[\\/]* ) # Absolute name.
1365 ac_srcdir=$srcdir$ac_dir_suffix;
1366 ac_top_srcdir=$srcdir
1367 ac_abs_top_srcdir=$srcdir ;;
1369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1370 ac_top_srcdir=$ac_top_build_prefix$srcdir
1371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1375 cd "$ac_dir" || { ac_status=$?; continue; }
1376 # Check for guested configure.
1377 if test -f "$ac_srcdir/configure.gnu"; then
1379 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1380 elif test -f "$ac_srcdir/configure"; then
1382 $SHELL "$ac_srcdir/configure" --help=recursive
1384 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1386 cd "$ac_pwd" || { ac_status=$?; break; }
1390 test -n "$ac_init_help" && exit $ac_status
1391 if $ac_init_version; then
1393 RISC-V ISA Simulator configure ?
1394 generated by GNU Autoconf 2.69
1396 Copyright (C) 2012 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1403 ## ------------------------ ##
1404 ## Autoconf initialization. ##
1405 ## ------------------------ ##
1407 # ac_fn_c_try_compile LINENO
1408 # --------------------------
1409 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1410 ac_fn_c_try_compile ()
1412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1413 rm -f conftest.$ac_objext
1414 if { { ac_try="$ac_compile"
1416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1417 *) ac_try_echo
=$ac_try;;
1419 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1420 $as_echo "$ac_try_echo"; } >&5
1421 (eval "$ac_compile") 2>conftest.err
1423 if test -s conftest.err
; then
1424 grep -v '^ *+' conftest.err
>conftest.er1
1425 cat conftest.er1
>&5
1426 mv -f conftest.er1 conftest.err
1428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1429 test $ac_status = 0; } && {
1430 test -z "$ac_c_werror_flag" ||
1431 test ! -s conftest.err
1432 } && test -s conftest.
$ac_objext; then :
1435 $as_echo "$as_me: failed program was:" >&5
1436 sed 's/^/| /' conftest.
$ac_ext >&5
1440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1441 as_fn_set_status
$ac_retval
1443 } # ac_fn_c_try_compile
1445 # ac_fn_cxx_try_compile LINENO
1446 # ----------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_cxx_try_compile
()
1450 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1451 rm -f conftest.
$ac_objext
1452 if { { ac_try
="$ac_compile"
1454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_cxx_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479 as_fn_set_status $ac_retval
1481 } # ac_fn_cxx_try_compile
1483 # ac_fn_c_try_cpp LINENO
1484 # ----------------------
1485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 if { { ac_try="$ac_cpp conftest.$ac_ext"
1491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1492 *) ac_try_echo
=$ac_try;;
1494 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1498 if test -s conftest.err
; then
1499 grep -v '^ *+' conftest.err
>conftest.er1
1500 cat conftest.er1
>&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } > conftest.i
&& {
1505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.
$ac_ext >&5
1515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516 as_fn_set_status
$ac_retval
1520 # ac_fn_c_try_run LINENO
1521 # ----------------------
1522 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1523 # that executables *can* be run.
1526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1527 if { { ac_try
="$ac_link"
1529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_link") 2>&5
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1538 { { case "(($ac_try" in
1539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1540 *) ac_try_echo
=$ac_try;;
1542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_try") 2>&5
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; }; }; then :
1550 $as_echo "$as_me: program exited with status $ac_status" >&5
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.
$ac_ext >&5
1554 ac_retval
=$ac_status
1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status
$ac_retval
1562 # ac_fn_cxx_try_link LINENO
1563 # -------------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_cxx_try_link
()
1567 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1568 rm -f conftest.
$ac_objext conftest
$ac_exeext
1569 if { { ac_try
="$ac_link"
1571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_cxx_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_cxx_try_link
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1611 It was created by RISC-V ISA Simulator $as_me ?, which was
1612 generated by GNU Autoconf 2.69. Invocation command line was
1624 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1625 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1626 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1627 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1628 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1631 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1633 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1634 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1635 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1636 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1637 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1638 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1639 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 $as_echo "PATH: $as_dir"
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_must_keep_next=false
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1683 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1686 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1688 as_fn_append ac_configure_args1 " '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 -* ) ac_must_keep_next=true ;;
1704 as_fn_append ac_configure_args " '$ac_arg'"
1709 { ac_configure_args0=; unset ac_configure_args0;}
1710 { ac_configure_args1=; unset ac_configure_args1;}
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1722 $as_echo "## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##"
1726 # The following way of writing the cache mishandles newlines in values,
1728 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1729 eval ac_val=\$$ac_var
1733 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1737 _ | IFS | as_nl) ;; #(
1738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1739 *) { eval $ac_var=; unset $ac_var;} ;;
1744 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1745 *${as_nl}ac_space=\ *)
1747 "s/'\''/'\''\\\\'\'''\''/g;
1748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758 $as_echo "## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##"
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -n "$ac_subst_files"; then
1773 $as_echo "## ------------------- ##
1774 ## File substitutions. ##
1775 ## ------------------- ##"
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1789 $as_echo "## ----------- ##
1796 test "$ac_signal" != 0 &&
1797 $as_echo "$as_me: caught signal $ac_signal"
1798 $as_echo "$as_me: exit $exit_status"
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 $as_echo "/* confdefs.h */" > confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_URL "$PACKAGE_URL"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 # We do not want a PATH search for config.site.
1847 case $CONFIG_SITE in #((
1848 -*) ac_site_file1=./$CONFIG_SITE;;
1849 */*) ac_site_file1=$CONFIG_SITE;;
1850 *) ac_site_file1=./$CONFIG_SITE;;
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1867 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1869 as_fn_error $? "failed to load site
script $ac_site_file
1870 See \
`config.log' for more details" "$LINENO" 5; }
1874 if test -r "$cache_file"; then
1875 # Some versions of bash will fail to source /dev/null (special files
1876 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1877 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1879 $as_echo "$as_me: loading cache $cache_file" >&6;}
1881 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882 *) . "./$cache_file";;
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1887 $as_echo "$as_me: creating cache $cache_file" >&6;}
1891 # Check that the precious variables saved in the cache have kept the same
1893 ac_cache_corrupted=false
1894 for ac_var in $ac_precious_vars; do
1895 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896 eval ac_new_set=\$ac_env_${ac_var}_set
1897 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898 eval ac_new_val=\$ac_env_${ac_var}_value
1899 case $ac_old_set,$ac_new_set in
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1902 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1906 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1907 ac_cache_corrupted=: ;;
1910 if test "x$ac_old_val" != "x$ac_new_val"; then
1911 # differences in whitespace do not lead to failure.
1912 ac_old_val_w=`echo x
$ac_old_val`
1913 ac_new_val_w=`echo x
$ac_new_val`
1914 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1916 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1917 ac_cache_corrupted=:
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1920 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1921 eval $ac_var=\$ac_old_val
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1924 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1926 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1932 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1941 if $ac_cache_corrupted; then
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1945 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1946 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1948 ## -------------------- ##
1949 ## Main body of script. ##
1950 ## -------------------- ##
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 for ac_dir in scripts "$srcdir"/scripts; do
1962 if test -f "$ac_dir/install-sh"; then
1964 ac_install_sh="$ac_aux_dir/install-sh -c"
1966 elif test -f "$ac_dir/install.sh"; then
1968 ac_install_sh="$ac_aux_dir/install.sh -c"
1970 elif test -f "$ac_dir/shtool"; then
1972 ac_install_sh="$ac_aux_dir/shtool install -c"
1976 if test -z "$ac_aux_dir"; then
1977 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1980 # These three variables are undocumented and unsupported,
1981 # and are intended to be withdrawn in a future Autoconf release.
1982 # They can cause serious problems if a builder's source tree is in a directory
1983 # whose full name contains unusual characters.
1984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1989 # Make sure we can run config.sub.
1990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1991 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1994 $as_echo_n "checking build system type... " >&6; }
1995 if ${ac_cv_build+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 ac_build_alias=$build_alias
1999 test "x$ac_build_alias" = x &&
2000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2001 test "x$ac_build_alias" = x &&
2002 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2004 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2008 $as_echo "$ac_cv_build" >&6; }
2009 case $ac_cv_build in
2011 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2014 ac_save_IFS=$IFS; IFS='-'
2020 # Remember, the first character of IFS is used to create $*,
2021 # except with old shells:
2024 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2028 $as_echo_n "checking host system type... " >&6; }
2029 if ${ac_cv_host+:} false; then :
2030 $as_echo_n "(cached) " >&6
2032 if test "x$host_alias" = x; then
2033 ac_cv_host=$ac_cv_build
2035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2036 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2041 $as_echo "$ac_cv_host" >&6; }
2044 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2047 ac_save_IFS=$IFS; IFS='-'
2053 # Remember, the first character of IFS is used to create $*,
2054 # except with old shells:
2057 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2061 #-------------------------------------------------------------------------
2062 # Checks for programs
2063 #-------------------------------------------------------------------------
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070 if test -n "$ac_tool_prefix"; then
2071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2074 $as_echo_n "checking for $ac_word... " >&6; }
2075 if ${ac_cv_prog_CC+:} false; then :
2076 $as_echo_n "(cached) " >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$CC"; then
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2101 $as_echo "$CC" >&6; }
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2104 $as_echo "no" >&6; }
2109 if test -z "$ac_cv_prog_CC"; then
2111 # Extract the first word of "gcc", so it can be a program name with args.
2112 set dummy gcc; ac_word=$2
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2114 $as_echo_n "checking for $ac_word... " >&6; }
2115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128 ac_cv_prog_ac_ct_CC="gcc"
2129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2141 $as_echo "$ac_ct_CC" >&6; }
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2144 $as_echo "no" >&6; }
2147 if test "x$ac_ct_CC" = x; then
2150 case $cross_compiling:$ac_tool_warned in
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2154 ac_tool_warned=yes ;;
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2165 set dummy ${ac_tool_prefix}cc; ac_word=$2
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2167 $as_echo_n "checking for $ac_word... " >&6; }
2168 if ${ac_cv_prog_CC+:} false; then :
2169 $as_echo_n "(cached) " >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_CC="${ac_tool_prefix}cc"
2182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 if test -n "$CC"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2194 $as_echo "$CC" >&6; }
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2197 $as_echo "no" >&6; }
2203 if test -z "$CC"; then
2204 # Extract the first word of "cc", so it can be a program name with args.
2205 set dummy cc; ac_word=$2
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2207 $as_echo_n "checking for $ac_word... " >&6; }
2208 if ${ac_cv_prog_CC+:} false; then :
2209 $as_echo_n "(cached) " >&6
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2223 ac_prog_rejected=yes
2227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy $ac_cv_prog_CC
2238 if test $# != 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249 if test -n "$CC"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2251 $as_echo "$CC" >&6; }
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2254 $as_echo "no" >&6; }
2259 if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2261 for ac_prog in cl.exe
2263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2266 $as_echo_n "checking for $ac_word... " >&6; }
2267 if ${ac_cv_prog_CC+:} false; then :
2268 $as_echo_n "(cached) " >&6
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 if test -n "$CC"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2293 $as_echo "$CC" >&6; }
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296 $as_echo "no" >&6; }
2300 test -n "$CC" && break
2303 if test -z "$CC"; then
2305 for ac_prog in cl.exe
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2312 $as_echo_n "(cached) " >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="$ac_prog"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2337 $as_echo "$ac_ct_CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2344 test -n "$ac_ct_CC" && break
2347 if test "x$ac_ct_CC" = x; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2354 ac_tool_warned=yes ;;
2363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2366 See \
`config.log' for more details" "$LINENO" 5; }
2368 # Provide some information about the compiler.
2369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2372 for ac_option in --version -v -V -qversion; do
2373 { { ac_try="$ac_compiler $ac_option >&5"
2375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2376 *) ac_try_echo
=$ac_try;;
2378 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2382 if test -s conftest.err
; then
2384 ... rest of stderr output deleted ...
2385 10q' conftest.err
>conftest.er1
2386 cat conftest.er1
>&5
2388 rm -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; }
2393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2404 ac_clean_files_save
=$ac_clean_files
2405 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2406 # Try to create an executable without -o first, disregard a.out.
2407 # It will help us diagnose broken compilers, and finding out an intuition
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2410 $as_echo_n "checking whether the C compiler works... " >&6; }
2411 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413 # The possible output files:
2414 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2417 for ac_file
in $ac_files
2420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2421 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2426 if { { ac_try
="$ac_link_default"
2428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link_default") 2>&5
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; }; then :
2437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2438 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2440 # so that the user can short-circuit this test for compilers unknown to
2442 for ac_file in $ac_files ''
2444 test -f "$ac_file" || continue
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2449 # We found the default executable, but exeext='' is most
2453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 # We set ac_cv_exeext here because the later test for it is not
2458 # safe: cross compilers may not add the suffix if given an `-o'
2459 # argument, so we may need to know it at that point already.
2460 # Even if this section looks crufty: it has the advantage of
2467 test "$ac_cv_exeext" = no && ac_cv_exeext=
2472 if test -z "$ac_file"; then :
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 $as_echo "$as_me: failed program was:" >&5
2476 sed 's
/^
/|
/' conftest.$ac_ext >&5
2478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2480 as_fn_error 77 "C compiler cannot create executables
2481 See \`config.log
' for more details" "$LINENO" 5; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2487 $as_echo_n "checking for C compiler default output file name... " >&6; }
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2489 $as_echo "$ac_file" >&6; }
2490 ac_exeext=$ac_cv_exeext
2492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2495 $as_echo_n "checking for suffix of executables... " >&6; }
2496 if { { ac_try="$ac_link"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_link") 2>&5
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; }; then :
2507 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2511 for ac_file
in conftest.exe conftest conftest.
*; do
2512 test -f "$ac_file" ||
continue
2514 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2515 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2524 See \`config.log' for more details" "$LINENO" 5; }
2526 rm -f conftest conftest
$ac_cv_exeext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2528 $as_echo "$ac_cv_exeext" >&6; }
2530 rm -f conftest.
$ac_ext
2531 EXEEXT
=$ac_cv_exeext
2533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2539 FILE *f = fopen ("conftest.out", "w");
2540 return ferror (f) || fclose (f) != 0;
2546 ac_clean_files
="$ac_clean_files conftest.out"
2547 # Check that the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2550 $as_echo_n "checking whether we are cross compiling... " >&6; }
2551 if test "$cross_compiling" != yes; then
2552 { { ac_try
="$ac_link"
2554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559 (eval "$ac_link") 2>&5
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; }
2563 if { ac_try='./conftest$ac_cv_exeext'
2564 { { case "(($ac_try" in
2565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2566 *) ac_try_echo
=$ac_try;;
2568 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569 $as_echo "$ac_try_echo"; } >&5
2570 (eval "$ac_try") 2>&5
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; }; }; then
2576 if test "$cross_compiling" = maybe
; then
2579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 as_fn_error $?
"cannot run C compiled programs.
2582 If you meant to cross compile, use \`--host'.
2583 See \`config.log' for more details" "$LINENO" 5; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2588 $as_echo "$cross_compiling" >&6; }
2590 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2591 ac_clean_files
=$ac_clean_files_save
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2593 $as_echo_n "checking for suffix of object files... " >&6; }
2594 if ${ac_cv_objext+:} false
; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2608 rm -f conftest.o conftest.obj
2609 if { { ac_try
="$ac_compile"
2611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2615 $as_echo "$ac_try_echo"; } >&5
2616 (eval "$ac_compile") 2>&5
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; }; then :
2620 for ac_file in conftest.o conftest.obj conftest.*; do
2621 test -f "$ac_file" || continue;
2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2624 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2635 See \
`config.log' for more details" "$LINENO" 5; }
2637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2640 $as_echo "$ac_cv_objext" >&6; }
2641 OBJEXT=$ac_cv_objext
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2644 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2645 if ${ac_cv_c_compiler_gnu+:} false; then :
2646 $as_echo_n "(cached) " >&6
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2662 if ac_fn_c_try_compile "$LINENO"; then :
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2672 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2673 if test $ac_compiler_gnu = yes; then
2678 ac_test_CFLAGS=${CFLAGS+set}
2679 ac_save_CFLAGS=$CFLAGS
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2681 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2682 if ${ac_cv_prog_cc_g+:} false; then :
2683 $as_echo_n "(cached) " >&6
2685 ac_save_c_werror_flag=$ac_c_werror_flag
2686 ac_c_werror_flag=yes
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2700 if ac_fn_c_try_compile "$LINENO"; then :
2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2705 /* end confdefs.h. */
2715 if ac_fn_c_try_compile "$LINENO"; then :
2718 ac_c_werror_flag=$ac_save_c_werror_flag
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2731 if ac_fn_c_try_compile "$LINENO"; then :
2734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_c_werror_flag=$ac_save_c_werror_flag
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2742 $as_echo "$ac_cv_prog_cc_g" >&6; }
2743 if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2752 if test "$GCC" = yes; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2759 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2760 if ${ac_cv_prog_cc_c89+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 ac_cv_prog_cc_c89=no
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2784 s = g (p, va_arg (v,int));
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 function prototypes and stuff, but not '\xHH' hex character constants.
2791 These don't provoke an error unfortunately, instead are silently treated
2792 as 'x'. The following induces an error, until -std is added to get
2793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2794 array size at least. It's necessary to write '\x00'==0 to get something
2795 that's true only with -std. */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2799 inside strings and character constants. */
2801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2820 CC="$ac_save_CC $ac_arg"
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_cv_prog_cc_c89=$ac_arg
2824 rm -f core conftest.err conftest.$ac_objext
2825 test "x$ac_cv_prog_cc_c89" != "xno" && break
2827 rm -f conftest.$ac_ext
2832 case "x$ac_cv_prog_cc_c89" in
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2835 $as_echo "none needed" >&6; } ;;
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2838 $as_echo "unsupported" >&6; } ;;
2840 CC="$CC $ac_cv_prog_cc_c89"
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2844 if test "x$ac_cv_prog_cc_c89" != xno; then :
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 ac_cpp='$CXXCPP $CPPFLAGS'
2856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2859 if test -z "$CXX"; then
2860 if test -n "$CCC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if ${ac_cv_prog_CXX+:} false; then :
2871 $as_echo_n "(cached) " >&6
2873 if test -n "$CXX"; then
2874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$CXX"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2896 $as_echo "$CXX" >&6; }
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2903 test -n "$CXX" && break
2906 if test -z "$CXX"; then
2908 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$ac_ct_CXX"; then
2918 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2938 if test -n "$ac_ct_CXX"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2940 $as_echo "$ac_ct_CXX" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2947 test -n "$ac_ct_CXX" && break
2950 if test "x$ac_ct_CXX" = x; then
2953 case $cross_compiling:$ac_tool_warned in
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2965 # Provide some information about the compiler.
2966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2969 for ac_option in --version -v -V -qversion; do
2970 { { ac_try="$ac_compiler $ac_option >&5"
2972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2973 *) ac_try_echo
=$ac_try;;
2975 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2979 if test -s conftest.err
; then
2981 ... rest of stderr output deleted ...
2982 10q' conftest.err
>conftest.er1
2983 cat conftest.er1
>&5
2985 rm -f conftest.er1 conftest.err
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2991 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2992 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2993 $as_echo_n "(cached) " >&6
2995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
3009 if ac_fn_cxx_try_compile
"$LINENO"; then :
3014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3015 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3019 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3020 if test $ac_compiler_gnu = yes; then
3025 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS
=$CXXFLAGS
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3028 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3029 if ${ac_cv_prog_cxx_g+:} false
; then :
3030 $as_echo_n "(cached) " >&6
3032 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3033 ac_cxx_werror_flag
=yes
3036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3047 if ac_fn_cxx_try_compile
"$LINENO"; then :
3048 ac_cv_prog_cxx_g
=yes
3051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 if ac_fn_cxx_try_compile
"$LINENO"; then :
3065 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3078 if ac_fn_cxx_try_compile
"$LINENO"; then :
3079 ac_cv_prog_cxx_g
=yes
3081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3089 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3090 if test "$ac_test_CXXFLAGS" = set; then
3091 CXXFLAGS
=$ac_save_CXXFLAGS
3092 elif test $ac_cv_prog_cxx_g = yes; then
3093 if test "$GXX" = yes; then
3099 if test "$GXX" = yes; then
3106 ac_cpp
='$CPP $CPPFLAGS'
3107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3113 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_AR+:} false
; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$AR"; then
3120 ac_cv_prog_AR
="$AR" # Let the user override the test.
3122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir
=.
3127 for ac_exec_ext
in '' $ac_executable_extensions; do
3128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 if test -n "$AR"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3142 $as_echo "$AR" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$ac_cv_prog_AR"; then
3152 # Extract the first word of "ar", so it can be a program name with args.
3153 set dummy
ar; ac_word
=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$ac_ct_AR"; then
3160 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_ac_ct_AR
="ar"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3180 if test -n "$ac_ct_AR"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3182 $as_echo "$ac_ct_AR" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3188 if test "x$ac_ct_AR" = x
; then
3191 case $cross_compiling:$ac_tool_warned in
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned
=yes ;;
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3205 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_RANLIB+:} false
; then :
3209 $as_echo_n "(cached) " >&6
3211 if test -n "$RANLIB"; then
3212 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3218 test -z "$as_dir" && as_dir
=.
3219 for ac_exec_ext
in '' $ac_executable_extensions; do
3220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 RANLIB
=$ac_cv_prog_RANLIB
3232 if test -n "$RANLIB"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3234 $as_echo "$RANLIB" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3242 if test -z "$ac_cv_prog_RANLIB"; then
3243 ac_ct_RANLIB
=$RANLIB
3244 # Extract the first word of "ranlib", so it can be a program name with args.
3245 set dummy ranlib
; ac_word
=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3249 $as_echo_n "(cached) " >&6
3251 if test -n "$ac_ct_RANLIB"; then
3252 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3272 if test -n "$ac_ct_RANLIB"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3274 $as_echo "$ac_ct_RANLIB" >&6; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3280 if test "x$ac_ct_RANLIB" = x
; then
3283 case $cross_compiling:$ac_tool_warned in
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned
=yes ;;
3289 RANLIB
=$ac_ct_RANLIB
3292 RANLIB
="$ac_cv_prog_RANLIB"
3296 #-------------------------------------------------------------------------
3297 # MCPPBS specific program checks
3298 #-------------------------------------------------------------------------
3299 # These macros check to see if we can do a stow-based install and also
3300 # check for an isa simulator suitable for running the unit test programs
3303 # Find a good install program. We prefer a C program (faster),
3304 # so one script is as good as another. But avoid the broken or
3305 # incompatible versions:
3306 # SysV /etc/install, /usr/sbin/install
3307 # SunOS /usr/etc/install
3308 # IRIX /sbin/install
3310 # AmigaOS /C/install, which installs bootblocks on floppy discs
3311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3314 # OS/2's system install, which has a completely different semantic
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 # Reject install programs that cannot install multiple files.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3318 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3319 if test -z "$INSTALL"; then
3320 if ${ac_cv_path_install+:} false
; then :
3321 $as_echo_n "(cached) " >&6
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 # Account for people who put trailing slashes in PATH elements.
3329 case $as_dir/ in #((
3330 .
/ | .
// |
/[cC
]/* | \
3331 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3332 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3335 # OSF1 and SCO ODT 3.0 have their own names for install.
3336 # Don't use installbsd from OSF since it installs stuff as root
3338 for ac_prog
in ginstall scoinst
install; do
3339 for ac_exec_ext
in '' $ac_executable_extensions; do
3340 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3341 if test $ac_prog = install &&
3342 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3343 # AIX install. It has an incompatible calling convention.
3345 elif test $ac_prog = install &&
3346 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3347 # program-specific install script used by HP pwplus--don't use.
3350 rm -rf conftest.one conftest.two conftest.dir
3351 echo one
> conftest.one
3352 echo two
> conftest.two
3354 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3355 test -s conftest.one
&& test -s conftest.two
&&
3356 test -s conftest.dir
/conftest.one
&&
3357 test -s conftest.dir
/conftest.two
3359 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3372 rm -rf conftest.one conftest.two conftest.dir
3375 if test "${ac_cv_path_install+set}" = set; then
3376 INSTALL
=$ac_cv_path_install
3378 # As a last resort, use the slow shell script. Don't cache a
3379 # value for INSTALL within a source directory, because that will
3380 # break other packages using the cache if that directory is
3381 # removed, or if the value is a relative name.
3382 INSTALL
=$ac_install_sh
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3386 $as_echo "$INSTALL" >&6; }
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3394 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3398 # Configure command line option
3400 # Check whether --enable-stow was given.
3401 if test "${enable_stow+set}" = set; then :
3402 enableval
=$enable_stow; enable_stow
="yes"
3410 # Environment variables
3415 # Check for install script
3419 # Deterimine if native build and set prefix appropriately
3421 if test ${enable_stow} = "yes" ; then :
3425 # Extract the first word of "$ac_prog", so it can be a program name with args.
3426 set dummy
$ac_prog; ac_word
=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_stow+:} false
; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$stow"; then
3433 ac_cv_prog_stow
="$stow" # Let the user override the test.
3435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir
=.
3440 for ac_exec_ext
in '' $ac_executable_extensions; do
3441 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_stow
="$ac_prog"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 stow
=$ac_cv_prog_stow
3453 if test -n "$stow"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3455 $as_echo "$stow" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3462 test -n "$stow" && break
3464 test -n "$stow" || stow
="no"
3466 if test ${stow} = "no" ; then :
3468 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3472 # Check if native or non-native build
3474 if test "${build}" = "${host}" ; then :
3477 # build == host so this is a native build. Make sure --prefix not
3478 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3480 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3482 prefix
="${STOW_PREFIX}"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3484 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3486 $as_echo "$as_me: prefix=${prefix}" >&6;}
3494 # build != host so this is a non-native build. Make sure --prefix
3495 # not set and $STOW_ROOT is set, then set
3496 # prefix=$STOW_ROOT/${host_alias}.
3498 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3500 prefix
="${STOW_ROOT}/${host_alias}"
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3502 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3504 $as_echo "$as_me: prefix=${prefix}" >&6;}
3516 #-------------------------------------------------------------------------
3517 # Checks for header files
3518 #-------------------------------------------------------------------------
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3532 if test -z "$CPP"; then
3533 if ${ac_cv_prog_CPP+:} false
; then :
3534 $as_echo_n "(cached) " >&6
3536 # Double quotes because CPP needs to be expanded
3537 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540 for ac_c_preproc_warn_flag
in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545 # <limits.h> exists even on freestanding compilers.
3546 # On the NeXT, cc -E runs the code through the compiler's parser,
3547 # not just through cpp. "Syntax error" is here to catch this case.
3548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3551 # include <limits.h>
3553 # include <assert.h>
3557 if ac_fn_c_try_cpp
"$LINENO"; then :
3560 # Broken: fails on valid input.
3563 rm -f conftest.err conftest.i conftest.
$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569 #include <ac_nonexistent.h>
3571 if ac_fn_c_try_cpp
"$LINENO"; then :
3572 # Broken: success on invalid input.
3575 # Passes both tests.
3579 rm -f conftest.err conftest.i conftest.
$ac_ext
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.
$ac_ext
3584 if $ac_preproc_ok; then :
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3597 $as_echo "$CPP" >&6; }
3599 for ac_c_preproc_warn_flag
in '' yes
3601 # Use a header file that comes with gcc, so configuring glibc
3602 # with a fresh cross-compiler works.
3603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 # <limits.h> exists even on freestanding compilers.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error" is here to catch this case.
3607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3610 # include <limits.h>
3612 # include <assert.h>
3616 if ac_fn_c_try_cpp
"$LINENO"; then :
3619 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.i conftest.
$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <ac_nonexistent.h>
3630 if ac_fn_c_try_cpp
"$LINENO"; then :
3631 # Broken: success on invalid input.
3634 # Passes both tests.
3638 rm -f conftest.err conftest.i conftest.
$ac_ext
3641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3642 rm -f conftest.i conftest.err conftest.
$ac_ext
3643 if $ac_preproc_ok; then :
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details" "$LINENO" 5; }
3653 ac_cpp
='$CPP $CPPFLAGS'
3654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3660 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3661 if ${ac_cv_path_GREP+:} false
; then :
3662 $as_echo_n "(cached) " >&6
3664 if test -z "$GREP"; then
3665 ac_path_GREP_found
=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3668 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3671 test -z "$as_dir" && as_dir
=.
3672 for ac_prog
in grep ggrep
; do
3673 for ac_exec_ext
in '' $ac_executable_extensions; do
3674 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3675 as_fn_executable_p
"$ac_path_GREP" ||
continue
3676 # Check for GNU ac_path_GREP and select it if it is found.
3677 # Check for GNU $ac_path_GREP
3678 case `"$ac_path_GREP" --version 2>&1` in
3680 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3683 $as_echo_n 0123456789 >"conftest.in"
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 $as_echo 'GREP' >> "conftest.nl"
3690 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3691 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3692 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3693 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_GREP
="$ac_path_GREP"
3696 ac_path_GREP_max
=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3701 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3704 $ac_path_GREP_found && break 3
3709 if test -z "$ac_cv_path_GREP"; then
3710 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3713 ac_cv_path_GREP
=$GREP
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3718 $as_echo "$ac_cv_path_GREP" >&6; }
3719 GREP
="$ac_cv_path_GREP"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3723 $as_echo_n "checking for egrep... " >&6; }
3724 if ${ac_cv_path_EGREP+:} false
; then :
3725 $as_echo_n "(cached) " >&6
3727 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3728 then ac_cv_path_EGREP
="$GREP -E"
3730 if test -z "$EGREP"; then
3731 ac_path_EGREP_found
=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3734 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3737 test -z "$as_dir" && as_dir
=.
3738 for ac_prog
in egrep; do
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3741 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3742 # Check for GNU ac_path_EGREP and select it if it is found.
3743 # Check for GNU $ac_path_EGREP
3744 case `"$ac_path_EGREP" --version 2>&1` in
3746 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3749 $as_echo_n 0123456789 >"conftest.in"
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 $as_echo 'EGREP' >> "conftest.nl"
3756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3757 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3758 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_EGREP
="$ac_path_EGREP"
3762 ac_path_EGREP_max
=$ac_count
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3767 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3770 $ac_path_EGREP_found && break 3
3775 if test -z "$ac_cv_path_EGREP"; then
3776 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3779 ac_cv_path_EGREP
=$EGREP
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3785 $as_echo "$ac_cv_path_EGREP" >&6; }
3786 EGREP
="$ac_cv_path_EGREP"
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3790 $as_echo_n "checking for ANSI C header files... " >&6; }
3791 if ${ac_cv_header_stdc+:} false
; then :
3792 $as_echo_n "(cached) " >&6
3794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3809 if ac_fn_c_try_compile
"$LINENO"; then :
3810 ac_cv_header_stdc
=yes
3812 ac_cv_header_stdc
=no
3814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 if test $ac_cv_header_stdc = yes; then
3817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824 $EGREP "memchr" >/dev
/null
2>&1; then :
3827 ac_cv_header_stdc
=no
3833 if test $ac_cv_header_stdc = yes; then
3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 $EGREP "free" >/dev
/null
2>&1; then :
3844 ac_cv_header_stdc
=no
3850 if test $ac_cv_header_stdc = yes; then
3851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3852 if test "$cross_compiling" = yes; then :
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 #if ((' ' & 0x0FF) == 0x020)
3860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3863 # define ISLOWER(c) \
3864 (('a' <= (c) && (c) <= 'i') \
3865 || ('j' <= (c) && (c) <= 'r') \
3866 || ('s' <= (c) && (c) <= 'z'))
3867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3875 for (i = 0; i < 256; i++)
3876 if (XOR (islower (i), ISLOWER (i))
3877 || toupper (i) != TOUPPER (i))
3882 if ac_fn_c_try_run
"$LINENO"; then :
3885 ac_cv_header_stdc
=no
3887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3894 $as_echo "$ac_cv_header_stdc" >&6; }
3895 if test $ac_cv_header_stdc = yes; then
3897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3902 #-------------------------------------------------------------------------
3903 # Default compiler flags
3904 #-------------------------------------------------------------------------
3906 CFLAGS
="-Wall -Wno-unused -O2"
3908 CXXFLAGS
="-Wall -Wno-unused -O2 -std=c++11"
3911 #-------------------------------------------------------------------------
3912 # MCPPBS subproject list
3913 #-------------------------------------------------------------------------
3914 # Order list so that subprojects only depend on those listed earlier.
3915 # The '*' suffix indicates an optional subproject. The '**' suffix
3916 # indicates an optional subproject which is also the name of a group.
3921 # Add command line argument to enable all optional subprojects
3923 # Check whether --enable-optional-subprojects was given.
3924 if test "${enable_optional_subprojects+set}" = set; then :
3925 enableval
=$enable_optional_subprojects;
3929 # Loop through the subprojects given in the macro argument
3933 # Determine if this is a required or an optional subproject
3937 # Determine if there is a group with the same name
3941 # Create variations of the subproject name suitable for use as a CPP
3942 # enabled define, a shell enabled variable, and a shell function
3954 # Add subproject to our running list
3956 subprojects
="$subprojects riscv"
3958 # Process the subproject appropriately. If enabled add it to the
3959 # $enabled_subprojects running shell variable, set a
3960 # SUBPROJECT_ENABLED C define, and include the appropriate
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
3965 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
3966 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
3968 enable_riscv_sproj
="yes"
3969 subprojects_enabled
="$subprojects_enabled riscv"
3971 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
3974 ac_cpp
='$CXXCPP $CPPFLAGS'
3975 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3981 # Check whether --with-fesvr was given.
3982 if test "${with_fesvr+set}" = set; then :
3983 withval
=$with_fesvr;
3984 LDFLAGS
="-L$withval/lib $LDFLAGS"
3985 CPPFLAGS
="-I$withval/include $CPPFLAGS"
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
3992 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
3993 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
3994 $as_echo_n "(cached) " >&6
3996 ac_check_lib_save_LIBS
=$LIBS
3997 LIBS
="-lfesvr -pthread $LIBS"
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4001 /* Override any GCC internal prototype to avoid an error.
4002 Use char because int might match the return type of a GCC
4003 builtin and then its argument prototype would still apply. */
4007 char libfesvr_is_present ();
4011 return libfesvr_is_present ();
4016 if ac_fn_cxx_try_link
"$LINENO"; then :
4017 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4019 ac_cv_lib_fesvr_libfesvr_is_present
=no
4021 rm -f core conftest.err conftest.
$ac_objext \
4022 conftest
$ac_exeext conftest.
$ac_ext
4023 LIBS
=$ac_check_lib_save_LIBS
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4026 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4027 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4028 cat >>confdefs.h
<<_ACEOF
4029 #define HAVE_LIBFESVR 1
4032 LIBS
="-lfesvr $LIBS"
4035 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4040 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4041 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4042 $as_echo_n "(cached) " >&6
4044 ac_check_lib_save_LIBS
=$LIBS
4045 LIBS
="-lpthread $LIBS"
4046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4049 /* Override any GCC internal prototype to avoid an error.
4050 Use char because int might match the return type of a GCC
4051 builtin and then its argument prototype would still apply. */
4055 char pthread_create ();
4059 return pthread_create ();
4064 if ac_fn_cxx_try_link
"$LINENO"; then :
4065 ac_cv_lib_pthread_pthread_create
=yes
4067 ac_cv_lib_pthread_pthread_create
=no
4069 rm -f core conftest.err conftest.
$ac_objext \
4070 conftest
$ac_exeext conftest.
$ac_ext
4071 LIBS
=$ac_check_lib_save_LIBS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4074 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4075 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4076 cat >>confdefs.h
<<_ACEOF
4077 #define HAVE_LIBPTHREAD 1
4080 LIBS
="-lpthread $LIBS"
4083 as_fn_error $?
"libpthread is required" "$LINENO" 5
4087 # Check whether --enable-fpu was given.
4088 if test "${enable_fpu+set}" = set; then :
4089 enableval
=$enable_fpu;
4092 if test "x$enable_fpu" != "xno"; then :
4095 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4100 # Check whether --enable-64bit was given.
4101 if test "${enable_64bit+set}" = set; then :
4102 enableval
=$enable_64bit;
4105 if test "x$enable_64bit" != "xno"; then :
4108 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4113 # Check whether --enable-commitlog was given.
4114 if test "${enable_commitlog+set}" = set; then :
4115 enableval
=$enable_commitlog;
4118 if test "x$enable_commitlog" = "xyes"; then :
4121 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4126 # Check whether --enable-histogram was given.
4127 if test "${enable_histogram+set}" = set; then :
4128 enableval
=$enable_histogram;
4131 if test "x$enable_histogram" = "xyes"; then :
4134 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4143 # Determine if this is a required or an optional subproject
4147 # Determine if there is a group with the same name
4151 # Create variations of the subproject name suitable for use as a CPP
4152 # enabled define, a shell enabled variable, and a shell function
4164 # Add subproject to our running list
4166 subprojects
="$subprojects hwacha"
4168 # Process the subproject appropriately. If enabled add it to the
4169 # $enabled_subprojects running shell variable, set a
4170 # SUBPROJECT_ENABLED C define, and include the appropriate
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4175 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4176 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4178 enable_hwacha_sproj
="yes"
4179 subprojects_enabled
="$subprojects_enabled hwacha"
4181 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4188 # Determine if this is a required or an optional subproject
4192 # Determine if there is a group with the same name
4196 # Create variations of the subproject name suitable for use as a CPP
4197 # enabled define, a shell enabled variable, and a shell function
4209 # Add subproject to our running list
4211 subprojects
="$subprojects dummy_rocc"
4213 # Process the subproject appropriately. If enabled add it to the
4214 # $enabled_subprojects running shell variable, set a
4215 # SUBPROJECT_ENABLED C define, and include the appropriate
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4220 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4221 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4223 enable_dummy_rocc_sproj
="yes"
4224 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4226 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4233 # Determine if this is a required or an optional subproject
4237 # Determine if there is a group with the same name
4241 # Create variations of the subproject name suitable for use as a CPP
4242 # enabled define, a shell enabled variable, and a shell function
4254 # Add subproject to our running list
4256 subprojects
="$subprojects softfloat"
4258 # Process the subproject appropriately. If enabled add it to the
4259 # $enabled_subprojects running shell variable, set a
4260 # SUBPROJECT_ENABLED C define, and include the appropriate
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4265 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4266 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4268 enable_softfloat_sproj
="yes"
4269 subprojects_enabled
="$subprojects_enabled softfloat"
4271 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4278 # Determine if this is a required or an optional subproject
4282 # Determine if there is a group with the same name
4286 # Create variations of the subproject name suitable for use as a CPP
4287 # enabled define, a shell enabled variable, and a shell function
4299 # Add subproject to our running list
4301 subprojects
="$subprojects spike_main"
4303 # Process the subproject appropriately. If enabled add it to the
4304 # $enabled_subprojects running shell variable, set a
4305 # SUBPROJECT_ENABLED C define, and include the appropriate
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4310 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4311 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4313 enable_spike_main_sproj
="yes"
4314 subprojects_enabled
="$subprojects_enabled spike_main"
4316 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4319 $as_echo_n "checking for library containing dlopen... " >&6; }
4320 if ${ac_cv_search_dlopen+:} false
; then :
4321 $as_echo_n "(cached) " >&6
4323 ac_func_search_save_LIBS
=$LIBS
4324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 /* Override any GCC internal prototype to avoid an error.
4328 Use char because int might match the return type of a GCC
4329 builtin and then its argument prototype would still apply. */
4342 for ac_lib
in '' dl dld
; do
4343 if test -z "$ac_lib"; then
4344 ac_res
="none required"
4347 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4349 if ac_fn_cxx_try_link
"$LINENO"; then :
4350 ac_cv_search_dlopen
=$ac_res
4352 rm -f core conftest.err conftest.
$ac_objext \
4354 if ${ac_cv_search_dlopen+:} false
; then :
4358 if ${ac_cv_search_dlopen+:} false
; then :
4361 ac_cv_search_dlopen
=no
4364 LIBS
=$ac_func_search_save_LIBS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4367 $as_echo "$ac_cv_search_dlopen" >&6; }
4368 ac_res
=$ac_cv_search_dlopen
4369 if test "$ac_res" != no
; then :
4370 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4374 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4383 # Output make variables
4390 #-------------------------------------------------------------------------
4391 # MCPPBS subproject groups
4392 #-------------------------------------------------------------------------
4393 # If a group has the same name as a subproject then you must add the
4394 # '**' suffix in the subproject list above. The list of subprojects in a
4395 # group should be ordered so that subprojets only depend on those listed
4396 # earlier. Here is an example:
4398 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4401 #-------------------------------------------------------------------------
4403 #-------------------------------------------------------------------------
4405 ac_config_headers
="$ac_config_headers config.h"
4407 ac_config_files
="$ac_config_files Makefile"
4409 cat >confcache
<<\_ACEOF
4410 # This file is a shell script that caches the results of configure
4411 # tests run on this system so they can be shared between configure
4412 # scripts and configure runs, see configure's option --config-cache.
4413 # It is not useful on other systems. If it contains results you don't
4414 # want to keep, you may remove or edit it.
4416 # config.status only pays attention to the cache file if you give it
4417 # the --recheck option to rerun configure.
4419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4425 # The following way of writing the cache mishandles newlines in values,
4426 # but we know of no workaround that is simple, portable, and efficient.
4427 # So, we kill variables containing newlines.
4428 # Ultrix sh set writes to stderr and can't be redirected directly,
4429 # and sets the high bit in the cache file unless we assign to the vars.
4431 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4432 eval ac_val
=\$
$ac_var
4436 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4440 _ | IFS | as_nl
) ;; #(
4441 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4442 *) { eval $ac_var=; unset $ac_var;} ;;
4448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4449 *${as_nl}ac_space
=\
*)
4450 # `set' does not quote correctly, so add quotes: double-quote
4451 # substitution turns \\\\ into \\, and sed turns \\ into \.
4454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4457 # `set' quotes correctly as required by POSIX, so do not add quotes.
4458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4471 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4472 if test -w "$cache_file"; then
4473 if test "x$cache_file" != "x/dev/null"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4475 $as_echo "$as_me: updating cache $cache_file" >&6;}
4476 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4477 cat confcache
>"$cache_file"
4479 case $cache_file in #(
4481 mv -f confcache
"$cache_file"$$
&&
4482 mv -f "$cache_file"$$
"$cache_file" ;; #(
4484 mv -f confcache
"$cache_file" ;;
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4495 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4496 # Let make expand exec_prefix.
4497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4499 DEFS
=-DHAVE_CONFIG_H
4504 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4505 # 1. Remove the extension, and $U if already installed.
4506 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4507 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4509 # will be set to the directory where LIBOBJS objects are built.
4510 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4511 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4515 LTLIBOBJS
=$ac_ltlibobjs
4519 : "${CONFIG_STATUS=./config.status}"
4521 ac_clean_files_save
=$ac_clean_files
4522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4528 # Generated by $as_me.
4529 # Run this file to recreate the current configuration.
4530 # Compiler output produced by configure, useful for debugging
4531 # configure, is in config.log if it exists.
4537 SHELL=\${CONFIG_SHELL-$SHELL}
4540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4541 ## -------------------- ##
4542 ## M4sh Initialization. ##
4543 ## -------------------- ##
4545 # Be more Bourne compatible
4546 DUALCASE
=1; export DUALCASE
# for MKS sh
4547 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4551 # is contrary to our usage. Disable this feature.
4552 alias -g '${1+"$@"}'='"$@"'
4553 setopt NO_GLOB_SUBST
4555 case `(set -o) 2>/dev/null` in #(
4567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4568 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4571 # Prefer a ksh shell builtin over an external printf program on Solaris,
4572 # but without wasting forks for bash or zsh.
4573 if test -z "$BASH_VERSION$ZSH_VERSION" \
4574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4575 as_echo='print
-r --'
4576 as_echo_n='print
-rn --'
4577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4578 as_echo='printf %s
\n'
4579 as_echo_n='printf %s
'
4581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4582 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4583 as_echo_n='/usr
/ucb
/echo -n'
4585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4586 as_echo_n_body='eval
4590 expr "X$arg" : "X\\(.*\\)$as_nl";
4591 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4593 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4595 export as_echo_n_body
4596 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4599 as_echo='sh
-c $as_echo_body as_echo
'
4602 # The user is always right.
4603 if test "${PATH_SEPARATOR+set}" != set; then
4605 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4606 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4613 # We need space, tab and new line, in precisely that order. Quoting is
4614 # there to prevent editors from complaining about space-tab.
4615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4616 # splitting by setting IFS to empty value.)
4619 # Find who we are. Look in the path if we contain no directory separator.
4622 *[\\/]* ) as_myself=$0 ;;
4623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4634 # We did not find ourselves, most probably we were run as `sh COMMAND'
4635 # in which case we are not to be found in the path.
4636 if test "x$as_myself" = x
; then
4639 if test ! -f "$as_myself"; then
4640 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4644 # Unset variables that we do not need and which cause bugs (e.g. in
4645 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4646 # suppresses any "Segmentation fault" message there. '((' could
4647 # trigger a bug in pdksh 5.2.14.
4648 for as_var
in BASH_ENV ENV MAIL MAILPATH
4649 do eval test x\
${$as_var+set} = xset \
4650 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4663 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4666 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4667 # ----------------------------------------
4668 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4669 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4670 # script with STATUS, using 1 if that was 0.
4673 as_status
=$1; test $as_status -eq 0 && as_status
=1
4675 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4676 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4678 $as_echo "$as_me: error: $2" >&2
4679 as_fn_exit
$as_status
4683 # as_fn_set_status STATUS
4684 # -----------------------
4685 # Set $? to STATUS, without forking.
4689 } # as_fn_set_status
4693 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4703 # Portably unset VAR.
4706 { eval $1=; unset $1;}
4708 as_unset
=as_fn_unset
4709 # as_fn_append VAR VALUE
4710 # ----------------------
4711 # Append the text in VALUE to the end of the definition contained in VAR. Take
4712 # advantage of any shell optimizations that allow amortized linear growth over
4713 # repeated appends, instead of the typical quadratic growth present in naive
4715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4716 eval 'as_fn_append ()
4727 # as_fn_arith ARG...
4728 # ------------------
4729 # Perform arithmetic evaluation on the ARGs, and store the result in the
4730 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4731 # must be portable across $(()) and expr.
4732 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4733 eval 'as_fn_arith ()
4740 as_val
=`expr "$@" || test $? -eq 1`
4745 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4746 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4752 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4753 as_basename
=basename
4758 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4764 as_me
=`$as_basename -- "$0" ||
4765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4766 X"$0" : 'X\(//\)$' \| \
4767 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4769 sed '/^.*\/\([^/][^/]*\)\/*$/{
4783 # Avoid depending upon Character Ranges.
4784 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4785 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4786 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4787 as_cr_digits
='0123456789'
4788 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4790 ECHO_C
= ECHO_N
= ECHO_T
=
4791 case `echo -n x` in #(((((
4793 case `echo 'xy\c'` in
4794 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4796 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4803 rm -f conf$$ conf$$.exe conf$$.
file
4804 if test -d conf$$.dir
; then
4805 rm -f conf$$.dir
/conf$$.
file
4808 mkdir conf$$.dir
2>/dev
/null
4810 if (echo >conf$$.
file) 2>/dev
/null
; then
4811 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4813 # ... but there are two gotchas:
4814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4816 # In both cases, we have to default to `cp -pR'.
4817 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4819 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4827 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4828 rmdir conf$$.dir
2>/dev
/null
4833 # Create "$as_dir" as a directory, including parents if necessary.
4838 -*) as_dir
=.
/$as_dir;;
4840 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4844 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4845 *) as_qdir
=$as_dir;;
4847 as_dirs
="'$as_qdir' $as_dirs"
4848 as_dir
=`$as_dirname -- "$as_dir" ||
4849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4850 X"$as_dir" : 'X\(//\)[^/]' \| \
4851 X"$as_dir" : 'X\(//\)$' \| \
4852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4853 $as_echo X"$as_dir" |
4854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4871 test -d "$as_dir" && break
4873 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4874 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4878 if mkdir
-p .
2>/dev
/null
; then
4879 as_mkdir_p
='mkdir -p "$as_dir"'
4881 test -d .
/-p && rmdir .
/-p
4886 # as_fn_executable_p FILE
4887 # -----------------------
4888 # Test if FILE is an executable regular file.
4889 as_fn_executable_p
()
4891 test -f "$1" && test -x "$1"
4892 } # as_fn_executable_p
4894 as_executable_p
=as_fn_executable_p
4896 # Sed expression to map a string onto a valid CPP name.
4897 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4899 # Sed expression to map a string onto a valid variable name.
4900 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4904 ## ----------------------------------- ##
4905 ## Main body of $CONFIG_STATUS script. ##
4906 ## ----------------------------------- ##
4908 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4911 # Save the log message, to keep $0 and so on meaningful, and to
4912 # report actual input values of CONFIG_FILES etc. instead of their
4913 # values after options handling.
4915 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4916 generated by GNU Autoconf 2.69. Invocation command line was
4918 CONFIG_FILES = $CONFIG_FILES
4919 CONFIG_HEADERS = $CONFIG_HEADERS
4920 CONFIG_LINKS = $CONFIG_LINKS
4921 CONFIG_COMMANDS = $CONFIG_COMMANDS
4924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4929 case $ac_config_files in *"
4930 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4933 case $ac_config_headers in *"
4934 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4939 # Files that config.status was made for.
4940 config_files="$ac_config_files"
4941 config_headers="$ac_config_headers"
4945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4947 \`$as_me' instantiates files and other configuration actions
4948 from templates according to the current configuration. Unless the files
4949 and actions are specified as TAGs, all are instantiated by default.
4951 Usage: $0 [OPTION]... [TAG]...
4953 -h, --help print this help, then exit
4954 -V, --version print version number and configuration settings, then exit
4955 --config print configuration, then exit
4956 -q, --quiet, --silent
4957 do not print progress messages
4958 -d, --debug don't remove temporary files
4959 --recheck update $as_me by reconfiguring in the same conditions
4960 --file=FILE[:TEMPLATE]
4961 instantiate the configuration file FILE
4962 --header=FILE[:TEMPLATE]
4963 instantiate the configuration header FILE
4965 Configuration files:
4968 Configuration headers:
4971 Report bugs to <Andrew Waterman>."
4974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4975 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4977 RISC-V ISA Simulator config.status ?
4978 configured by $0, generated by GNU Autoconf 2.69,
4979 with options \\"\$ac_cs_config\\"
4981 Copyright (C) 2012 Free Software Foundation, Inc.
4982 This config.status script is free software; the Free Software Foundation
4983 gives unlimited permission to copy, distribute and modify it."
4988 test -n "\$AWK" || AWK=awk
4991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4992 # The default lists apply if the user does not specify any file.
4998 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4999 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5003 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5015 # Handling of the options.
5016 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5018 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5019 $as_echo "$ac_cs_version"; exit ;;
5020 --config |
--confi |
--conf |
--con |
--co |
--c )
5021 $as_echo "$ac_cs_config"; exit ;;
5022 --debug |
--debu |
--deb |
--de |
--d |
-d )
5024 --file |
--fil |
--fi |
--f )
5027 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5028 '') as_fn_error $?
"missing file argument" ;;
5030 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5031 ac_need_defaults
=false
;;
5032 --header |
--heade |
--head |
--hea )
5035 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5037 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5038 ac_need_defaults
=false
;;
5040 # Conflict between --help and --header
5041 as_fn_error $?
"ambiguous option: \`$1'
5042 Try \`$0 --help' for more information.";;
5043 --help |
--hel |
-h )
5044 $as_echo "$ac_cs_usage"; exit ;;
5045 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5046 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5050 -*) as_fn_error $?
"unrecognized option: \`$1'
5051 Try \`$0 --help' for more information." ;;
5053 *) as_fn_append ac_config_targets
" $1"
5054 ac_need_defaults
=false
;;
5060 ac_configure_extra_args
=
5062 if $ac_cs_silent; then
5064 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5069 if \$ac_cs_recheck; then
5070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5073 CONFIG_SHELL='$SHELL'
5079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5084 ## Running $as_me. ##
5090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5095 # Handling of arguments.
5096 for ac_config_target
in $ac_config_targets
5098 case $ac_config_target in
5099 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5100 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5101 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5102 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5103 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5104 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5105 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5107 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5112 # If the user did not use the arguments to specify the items to instantiate,
5113 # then the envvar interface is used. Set only those that are not.
5114 # We use the long form for the default assignment because of an extremely
5115 # bizarre bug on SunOS 4.1.3.
5116 if $ac_need_defaults; then
5117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5121 # Have a temporary directory for convenience. Make it in the build tree
5122 # simply because there is no reason against having it here, and in addition,
5123 # creating and moving files from /tmp can sometimes cause problems.
5124 # Hook for its removal unless debugging.
5125 # Note that there is a small window in which the directory will not be cleaned:
5126 # after its creation but before its name has been assigned to `$tmp'.
5130 trap 'exit_status=$?
5132 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5134 trap 'as_fn_exit 1' 1 2 13 15
5136 # Create a (secure) tmp directory for tmp files.
5139 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5143 tmp
=.
/conf$$
-$RANDOM
5144 (umask 077 && mkdir
"$tmp")
5145 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5148 # Set up the scripts for CONFIG_FILES section.
5149 # No need to generate them if there are no CONFIG_FILES.
5150 # This happens for instance with `./config.status config.h'.
5151 if test -n "$CONFIG_FILES"; then
5154 ac_cr
=`echo X | tr X '\015'`
5155 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5156 # But we know of no other shell where ac_cr would be empty at this
5157 # point, so we can use a bashism as a fallback.
5158 if test "x$ac_cr" = x
; then
5159 eval ac_cr
=\$
\'\\r
\'
5161 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5162 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5168 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5173 echo "cat >conf$$subs.awk <<_ACEOF" &&
5174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5177 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5178 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5180 for ac_last_try in false false false false false :; do
5181 . ./conf$$subs.sh ||
5182 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5184 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5185 if test $ac_delim_n = $ac_delim_num; then
5187 elif $ac_last_try; then
5188 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5190 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5196 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5200 s/^/S["/; s
/!.
*/"]=/
5210 s/\(.\{148\}\)..*/\1/
5212 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5217 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5224 s/\(.\{148\}\)..*/\1/
5226 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5230 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5235 ' <conf$$subs.awk | sed '
5240 ' >>$CONFIG_STATUS || ac_write_fail=1
5241 rm -f conf$$subs.awk
5242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5244 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5245 for (key in S) S_is_set[key] = 1
5251 nfields = split(line, field, "@
")
5253 len = length(field[1])
5254 for (i = 2; i < nfields; i++) {
5256 keylen = length(key)
5257 if (S_is_set[key]) {
5259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5260 len += length(value) + length(field[++i])
5271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5272 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5273 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5276 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5277 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5280 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5281 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5282 # trailing colons and then remove the whole line if VPATH becomes empty
5283 # (actually we leave an empty line to preserve line numbers).
5284 if test "x
$srcdir" = x.; then
5285 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5304 fi # test -n "$CONFIG_FILES"
5306 # Set up the scripts for CONFIG_HEADERS section.
5307 # No need to generate them if there are no CONFIG_HEADERS.
5308 # This happens for instance with `./config.status Makefile'.
5309 if test -n "$CONFIG_HEADERS"; then
5310 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5314 # Transform confdefs.h into an awk script `defines.awk', embedded as
5315 # here-document in config.status, that substitutes the proper values into
5316 # config.h.in to produce config.h.
5318 # Create a delimiter string that does not exist in confdefs.h, to ease
5319 # handling of long lines.
5321 for ac_last_try in false false :; do
5322 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5323 if test -z "$ac_tt"; then
5325 elif $ac_last_try; then
5326 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5328 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5332 # For the awk script, D is an array of macro values keyed by name,
5333 # likewise P contains macro parameters if any. Preserve backslash
5334 # newline sequences.
5336 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5338 s/.\{148\}/&'"$ac_delim"'/g
5341 s/^[ ]*#[ ]*define[ ][ ]*/ /
5348 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5350 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5355 D["\
1"]=" \
3\\\\\\n
"\\/p
5357 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5362 s/.\{148\}/&'"$ac_delim"'/g
5367 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5370 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5372 ' <confdefs.h | sed '
5373 s/'"$ac_delim"'/"\\\
5374 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5377 for (key in D) D_is_set[key] = 1
5380 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5382 split(line, arg, " ")
5383 if (arg[1] == "#") {
5387 defundef
= substr
(arg
[1], 2)
5390 split(mac1
, mac2
, "(") #)
5392 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5393 if (D_is_set
[macro
]) {
5394 # Preserve the white space surrounding the "#".
5395 print prefix
"define", macro P
[macro
] D
[macro
]
5398 # Replace #undef with comments. This is necessary, for example,
5399 # in the case of _POSIX_SOURCE, which is predefined and required
5400 # on some systems where configure will not decide to define it.
5401 if (defundef
== "undef") {
5402 print
"/*", prefix defundef
, macro
, "*/"
5410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5411 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5412 fi # test -n "$CONFIG_HEADERS"
5415 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5420 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5422 case $ac_mode$ac_tag in
5424 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5425 :[FH
]-) ac_tag
=-:-;;
5426 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5443 -) ac_f
="$ac_tmp/stdin";;
5444 *) # Look for the file first in the build tree, then in the source tree
5445 # (if the path is not absolute). The absolute path cannot be DOS-style,
5446 # because $ac_f cannot contain `:'.
5450 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5452 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5454 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5455 as_fn_append ac_file_inputs
" '$ac_f'"
5458 # Let's still pretend it is `configure' which instantiates (i.e., don't
5459 # use $as_me), people would be surprised to read:
5460 # /* config.h. Generated by config.status. */
5461 configure_input
='Generated from '`
5462 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5464 if test x
"$ac_file" != x-
; then
5465 configure_input
="$ac_file. $configure_input"
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5467 $as_echo "$as_me: creating $ac_file" >&6;}
5469 # Neutralize special characters interpreted by sed in replacement strings.
5470 case $configure_input in #(
5471 *\
&* |
*\|
* |
*\\* )
5472 ac_sed_conf_input
=`$as_echo "$configure_input" |
5473 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5474 *) ac_sed_conf_input
=$configure_input;;
5478 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5479 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5484 ac_dir
=`$as_dirname -- "$ac_file" ||
5485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5486 X"$ac_file" : 'X\(//\)[^/]' \| \
5487 X"$ac_file" : 'X\(//\)$' \| \
5488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5489 $as_echo X"$ac_file" |
5490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5507 as_dir
="$ac_dir"; as_fn_mkdir_p
5511 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5513 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5514 # A ".." for each directory in $ac_dir_suffix.
5515 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5516 case $ac_top_builddir_sub in
5517 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5518 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5521 ac_abs_top_builddir
=$ac_pwd
5522 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5523 # for backward compatibility:
5524 ac_top_builddir
=$ac_top_build_prefix
5527 .
) # We are building in place.
5529 ac_top_srcdir
=$ac_top_builddir_sub
5530 ac_abs_top_srcdir
=$ac_pwd ;;
5531 [\\/]* | ?
:[\\/]* ) # Absolute name.
5532 ac_srcdir
=$srcdir$ac_dir_suffix;
5533 ac_top_srcdir
=$srcdir
5534 ac_abs_top_srcdir
=$srcdir ;;
5536 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5537 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5538 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5540 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5550 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5551 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5556 # If the template does not know about datarootdir, expand it.
5557 # FIXME: This hack should be removed a few years after 2.60.
5558 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5569 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5570 *datarootdir
*) ac_datarootdir_seen
=yes;;
5571 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5573 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5576 ac_datarootdir_hack='
5577 s&@datadir@&$datadir&g
5578 s&@docdir@&$docdir&g
5579 s&@infodir@&$infodir&g
5580 s&@localedir@&$localedir&g
5581 s&@mandir@&$mandir&g
5582 s&\\\${datarootdir}&$datarootdir&g' ;;
5586 # Neutralize VPATH when `$srcdir' = `.'.
5587 # Shell code in configure.ac might set extrasub.
5588 # FIXME: do we really want to maintain this feature?
5589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5590 ac_sed_extra="$ac_vpsub
5593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5595 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5596 s|@configure_input@|
$ac_sed_conf_input|
;t t
5597 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5598 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5599 s
&@srcdir@
&$ac_srcdir&;t t
5600 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5601 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5602 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5603 s
&@builddir@
&$ac_builddir&;t t
5604 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5605 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5606 s
&@INSTALL@
&$ac_INSTALL&;t t
5607 $ac_datarootdir_hack
5609 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5610 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5615 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5617 which seems to be undefined. Please make sure it is defined" >&5
5618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5619 which seems to be undefined. Please make sure it is defined" >&2;}
5621 rm -f "$ac_tmp/stdin"
5623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5632 if test x"$ac_file" != x-; then
5634 $as_echo "/* $configure_input */" \
5635 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5636 } >"$ac_tmp/config.h" \
5637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5638 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5640 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5643 mv "$ac_tmp/config.h" "$ac_file" \
5644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5647 $as_echo "/* $configure_input */" \
5648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5649 || as_fn_error $? "could not create -" "$LINENO" 5
5661 ac_clean_files=$ac_clean_files_save
5663 test $ac_write_fail = 0 ||
5664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5667 # configure is writing to config.log, and then calls config.status.
5668 # config.status does its own redirection, appending to config.log.
5669 # Unfortunately, on DOS this fails, as config.log is still kept open
5670 # by configure, so config.status won't be able to
write to it
; its
5671 # output is simply discarded. So we exec the FD to /dev/null,
5672 # effectively closing config.log, so it can be properly (re)opened and
5673 # appended to by config.status. When coming back to configure, we
5674 # need to make the FD available again.
5675 if test "$no_create" != yes; then
5677 ac_config_status_args
=
5678 test "$silent" = yes &&
5679 ac_config_status_args
="$ac_config_status_args --quiet"
5681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5684 # would make configure fail if this is the last instruction.
5685 $ac_cs_success || as_fn_exit
1
5687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5689 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}