2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
561 PACKAGE_NAME
='RISC-V ISA Simulator'
562 PACKAGE_TARNAME
='spike'
564 PACKAGE_STRING
='RISC-V ISA Simulator ?'
565 PACKAGE_BUGREPORT
='Andrew Waterman'
568 ac_unique_file
="riscv/common.h"
569 ac_subst_vars
='LTLIBOBJS
633 program_transform_name
646 enable_option_checking
648 enable_optional_subprojects
653 ac_precious_vars
='build_alias
669 # Initialize some variables set by options.
671 ac_init_version
=false
672 ac_unrecognized_opts
=
674 # The variables have the same names as the options, with
675 # dashes changed to underlines.
683 program_transform_name
=s
,x
,x
,
691 # Installation directory options.
692 # These are left unexpanded so users can "make install exec_prefix=/foo"
693 # and all the variables that are supposed to be based on exec_prefix
694 # by default will actually change.
695 # Use braces instead of parens because sh, perl, etc. also accept them.
696 # (The list follows the same order as the GNU Coding Standards.)
697 bindir
='${exec_prefix}/bin'
698 sbindir
='${exec_prefix}/sbin'
699 libexecdir
='${exec_prefix}/libexec'
700 datarootdir
='${prefix}/share'
701 datadir
='${datarootdir}'
702 sysconfdir
='${prefix}/etc'
703 sharedstatedir
='${prefix}/com'
704 localstatedir
='${prefix}/var'
705 includedir
='${prefix}/include'
706 oldincludedir
='/usr/include'
707 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
708 infodir
='${datarootdir}/info'
713 libdir
='${exec_prefix}/lib'
714 localedir
='${datarootdir}/locale'
715 mandir
='${datarootdir}/man'
721 # If the previous option needs an argument, assign it.
722 if test -n "$ac_prev"; then
723 eval $ac_prev=\
$ac_option
729 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
734 # Accept the important Cygnus configure options, so we can diagnose typos.
736 case $ac_dashdash$ac_option in
740 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
742 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
745 -build |
--build |
--buil |
--bui |
--bu)
746 ac_prev
=build_alias
;;
747 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
748 build_alias
=$ac_optarg ;;
750 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
751 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
752 ac_prev
=cache_file
;;
753 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
754 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
755 cache_file
=$ac_optarg ;;
758 cache_file
=config.cache
;;
760 -datadir |
--datadir |
--datadi |
--datad)
762 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
763 datadir
=$ac_optarg ;;
765 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
766 |
--dataroo |
--dataro |
--datar)
767 ac_prev
=datarootdir
;;
768 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
769 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
770 datarootdir
=$ac_optarg ;;
772 -disable-* |
--disable-*)
773 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
776 as_fn_error $?
"invalid feature name: $ac_useropt"
777 ac_useropt_orig
=$ac_useropt
778 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
779 case $ac_user_opts in
783 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
784 ac_unrecognized_sep
=', ';;
786 eval enable_
$ac_useropt=no
;;
788 -docdir |
--docdir |
--docdi |
--doc |
--do)
790 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
793 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
795 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
798 -enable-* |
--enable-*)
799 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
802 as_fn_error $?
"invalid feature name: $ac_useropt"
803 ac_useropt_orig
=$ac_useropt
804 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
809 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
810 ac_unrecognized_sep
=', ';;
812 eval enable_
$ac_useropt=\
$ac_optarg ;;
814 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
815 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
816 |
--exec |
--exe |
--ex)
817 ac_prev
=exec_prefix
;;
818 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
819 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
820 |
--exec=* |
--exe=* |
--ex=*)
821 exec_prefix
=$ac_optarg ;;
823 -gas |
--gas |
--ga |
--g)
824 # Obsolete; use --with-gas.
827 -help |
--help |
--hel |
--he |
-h)
829 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
830 ac_init_help
=recursive
;;
831 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
832 ac_init_help
=short
;;
834 -host |
--host |
--hos |
--ho)
835 ac_prev
=host_alias
;;
836 -host=* |
--host=* |
--hos=* |
--ho=*)
837 host_alias
=$ac_optarg ;;
839 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
841 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
843 htmldir
=$ac_optarg ;;
845 -includedir |
--includedir |
--includedi |
--included |
--include \
846 |
--includ |
--inclu |
--incl |
--inc)
847 ac_prev
=includedir
;;
848 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
849 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
850 includedir
=$ac_optarg ;;
852 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
854 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
855 infodir
=$ac_optarg ;;
857 -libdir |
--libdir |
--libdi |
--libd)
859 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
862 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
863 |
--libexe |
--libex |
--libe)
864 ac_prev
=libexecdir
;;
865 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
866 |
--libexe=* |
--libex=* |
--libe=*)
867 libexecdir
=$ac_optarg ;;
869 -localedir |
--localedir |
--localedi |
--localed |
--locale)
871 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
872 localedir
=$ac_optarg ;;
874 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
875 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
876 ac_prev
=localstatedir
;;
877 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
878 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
879 localstatedir
=$ac_optarg ;;
881 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
883 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
887 # Obsolete; use --without-fp.
890 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
891 |
--no-cr |
--no-c |
-n)
894 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
895 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
898 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
899 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
900 |
--oldin |
--oldi |
--old |
--ol |
--o)
901 ac_prev
=oldincludedir
;;
902 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
903 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
904 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
905 oldincludedir
=$ac_optarg ;;
907 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
909 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
912 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
913 |
--program-pre |
--program-pr |
--program-p)
914 ac_prev
=program_prefix
;;
915 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
916 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
917 program_prefix
=$ac_optarg ;;
919 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
920 |
--program-suf |
--program-su |
--program-s)
921 ac_prev
=program_suffix
;;
922 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
923 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
924 program_suffix
=$ac_optarg ;;
926 -program-transform-name |
--program-transform-name \
927 |
--program-transform-nam |
--program-transform-na \
928 |
--program-transform-n |
--program-transform- \
929 |
--program-transform |
--program-transfor \
930 |
--program-transfo |
--program-transf \
931 |
--program-trans |
--program-tran \
932 |
--progr-tra |
--program-tr |
--program-t)
933 ac_prev
=program_transform_name
;;
934 -program-transform-name=* |
--program-transform-name=* \
935 |
--program-transform-nam=* |
--program-transform-na=* \
936 |
--program-transform-n=* |
--program-transform-=* \
937 |
--program-transform=* |
--program-transfor=* \
938 |
--program-transfo=* |
--program-transf=* \
939 |
--program-trans=* |
--program-tran=* \
940 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
941 program_transform_name
=$ac_optarg ;;
943 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
945 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
948 -psdir |
--psdir |
--psdi |
--psd |
--ps)
950 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
953 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
954 |
-silent |
--silent |
--silen |
--sile |
--sil)
957 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
959 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
961 sbindir
=$ac_optarg ;;
963 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
964 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
965 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
967 ac_prev
=sharedstatedir
;;
968 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
969 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
970 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
972 sharedstatedir
=$ac_optarg ;;
974 -site |
--site |
--sit)
976 -site=* |
--site=* |
--sit=*)
979 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
981 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
984 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
985 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
986 ac_prev
=sysconfdir
;;
987 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
988 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
989 sysconfdir
=$ac_optarg ;;
991 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
992 ac_prev
=target_alias
;;
993 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
994 target_alias
=$ac_optarg ;;
996 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
999 -version |
--version |
--versio |
--versi |
--vers |
-V)
1000 ac_init_version
=: ;;
1003 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1006 as_fn_error $?
"invalid package name: $ac_useropt"
1007 ac_useropt_orig
=$ac_useropt
1008 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1013 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1014 ac_unrecognized_sep
=', ';;
1016 eval with_
$ac_useropt=\
$ac_optarg ;;
1018 -without-* |
--without-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error $?
"invalid package name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval with_
$ac_useropt=no
;;
1035 # Obsolete; use --with-x.
1038 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1039 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1040 ac_prev
=x_includes
;;
1041 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1042 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1043 x_includes
=$ac_optarg ;;
1045 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1046 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1047 ac_prev
=x_libraries
;;
1048 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1049 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1050 x_libraries
=$ac_optarg ;;
1052 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1053 Try \`$0 --help' for more information"
1057 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1058 # Reject names that are not valid shell variable names.
1059 case $ac_envvar in #(
1060 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1061 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1063 eval $ac_envvar=\
$ac_optarg
1064 export $ac_envvar ;;
1067 # FIXME: should be removed in autoconf 3.0.
1068 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1069 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1071 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1077 if test -n "$ac_prev"; then
1078 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1079 as_fn_error $?
"missing argument to $ac_option"
1082 if test -n "$ac_unrecognized_opts"; then
1083 case $enable_option_checking in
1085 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1086 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1090 # Check all directory arguments for consistency.
1091 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1092 datadir sysconfdir sharedstatedir localstatedir includedir \
1093 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1094 libdir localedir mandir
1096 eval ac_val
=\$
$ac_var
1097 # Remove trailing slashes.
1100 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1101 eval $ac_var=\
$ac_val;;
1103 # Be sure to have absolute directory names.
1105 [\\/$
]* | ?
:[\\/]* ) continue;;
1106 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1108 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1116 target
=$target_alias
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x
; then
1120 if test "x$build_alias" = x
; then
1121 cross_compiling
=maybe
1122 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1123 If a cross compiler is detected then cross compile mode will be used" >&2
1124 elif test "x$build_alias" != "x$host_alias"; then
1130 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1132 test "$silent" = yes && exec 6>/dev
/null
1135 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di
=`ls -di .` &&
1137 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1138 as_fn_error $?
"working directory cannot be determined"
1139 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 as_fn_error $?
"pwd does not report name of working directory"
1143 # Find the source files, if location was not specified.
1144 if test -z "$srcdir"; then
1145 ac_srcdir_defaulted
=yes
1146 # Try the directory containing this script, then the parent directory.
1147 ac_confdir
=`$as_dirname -- "$as_myself" ||
1148 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1149 X"$as_myself" : 'X\(//\)[^/]' \| \
1150 X"$as_myself" : 'X\(//\)$' \| \
1151 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1152 $as_echo X"$as_myself" |
1153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1171 if test ! -r "$srcdir/$ac_unique_file"; then
1175 ac_srcdir_defaulted
=no
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1179 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1181 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1183 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1185 # When building in place, set srcdir=.
1186 if test "$ac_abs_confdir" = "$ac_pwd"; then
1189 # Remove unnecessary trailing slashes from srcdir.
1190 # Double slashes in file names in object file debugging info
1191 # mess up M-x gdb in Emacs.
1193 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1195 for ac_var
in $ac_precious_vars; do
1196 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1197 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1198 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1199 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1203 # Report the --help message.
1205 if test "$ac_init_help" = "long"; then
1206 # Omit some internal or obsolete options to make the list less imposing.
1207 # This message is too long to be a string in the A/UX 3.1 sh.
1209 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1211 Usage: $0 [OPTION]... [VAR=VALUE]...
1213 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1214 VAR=VALUE. See below for descriptions of some of the useful variables.
1216 Defaults for the options are specified in brackets.
1219 -h, --help display this help and exit
1220 --help=short display options specific to this package
1221 --help=recursive display the short help of all the included packages
1222 -V, --version display version information and exit
1223 -q, --quiet, --silent do not print \`checking ...' messages
1224 --cache-file=FILE cache test results in FILE [disabled]
1225 -C, --config-cache alias for \`--cache-file=config.cache'
1226 -n, --no-create do not create output files
1227 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1229 Installation directories:
1230 --prefix=PREFIX install architecture-independent files in PREFIX
1231 [$ac_default_prefix]
1232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1235 By default, \`make install' will install all the files in
1236 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1237 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1238 for instance \`--prefix=\$HOME'.
1240 For better control, use the options below.
1242 Fine tuning of the installation directories:
1243 --bindir=DIR user executables [EPREFIX/bin]
1244 --sbindir=DIR system admin executables [EPREFIX/sbin]
1245 --libexecdir=DIR program executables [EPREFIX/libexec]
1246 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1247 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1248 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1249 --libdir=DIR object code libraries [EPREFIX/lib]
1250 --includedir=DIR C header files [PREFIX/include]
1251 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1252 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1253 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1254 --infodir=DIR info documentation [DATAROOTDIR/info]
1255 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1256 --mandir=DIR man documentation [DATAROOTDIR/man]
1257 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1258 --htmldir=DIR html documentation [DOCDIR]
1259 --dvidir=DIR dvi documentation [DOCDIR]
1260 --pdfdir=DIR pdf documentation [DOCDIR]
1261 --psdir=DIR ps documentation [DOCDIR]
1267 --build=BUILD configure
for building on BUILD
[guessed
]
1268 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1272 if test -n "$ac_init_help"; then
1273 case $ac_init_help in
1274 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1279 --disable-option-checking ignore unrecognized
--enable/--with options
1280 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1281 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1282 --enable-stow Enable stow-based
install
1283 --enable-optional-subprojects
1284 Enable all optional subprojects
1285 --disable-fpu Disable floating-point
1286 --disable-64bit Disable
64-bit mode
1289 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1290 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1291 --with-fesvr path to your fesvr installation
if not
in a standard
1294 Some influential environment variables
:
1295 CC C compiler
command
1296 CFLAGS C compiler flags
1297 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1298 nonstandard directory
<lib dir
>
1299 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1300 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1301 you have headers
in a nonstandard directory
<include dir
>
1302 CXX C
++ compiler
command
1303 CXXFLAGS C
++ compiler flags
1304 STOW_ROOT Root
for non-native stow-based installs
1305 STOW_PREFIX Prefix
for stow-based installs
1308 Use these variables to override the choices made by
`configure' or to help
1309 it to find libraries and programs with nonstandard names/locations.
1311 Report bugs to <Andrew Waterman>.
1316 if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" ||
1320 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335 ac_abs_top_builddir=$ac_pwd
1336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337 # for backward compatibility:
1338 ac_top_builddir=$ac_top_build_prefix
1341 .) # We are building in place.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1363 $SHELL "$ac_srcdir/configure" --help=recursive
1365 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367 cd "$ac_pwd" || { ac_status=$?; break; }
1371 test -n "$ac_init_help" && exit $ac_status
1372 if $ac_init_version; then
1374 RISC-V ISA Simulator configure ?
1375 generated by GNU Autoconf 2.68
1377 Copyright (C) 2010 Free Software Foundation, Inc.
1378 This configure script is free software; the Free Software Foundation
1379 gives unlimited permission to copy, distribute and modify it.
1384 ## ------------------------ ##
1385 ## Autoconf initialization. ##
1386 ## ------------------------ ##
1388 # ac_fn_c_try_compile LINENO
1389 # --------------------------
1390 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1391 ac_fn_c_try_compile ()
1393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1394 rm -f conftest.$ac_objext
1395 if { { ac_try="$ac_compile"
1397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1398 *) ac_try_echo
=$ac_try;;
1400 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1401 $as_echo "$ac_try_echo"; } >&5
1402 (eval "$ac_compile") 2>conftest.err
1404 if test -s conftest.err
; then
1405 grep -v '^ *+' conftest.err
>conftest.er1
1406 cat conftest.er1
>&5
1407 mv -f conftest.er1 conftest.err
1409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1410 test $ac_status = 0; } && {
1411 test -z "$ac_c_werror_flag" ||
1412 test ! -s conftest.err
1413 } && test -s conftest.
$ac_objext; then :
1416 $as_echo "$as_me: failed program was:" >&5
1417 sed 's/^/| /' conftest.
$ac_ext >&5
1421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1422 as_fn_set_status
$ac_retval
1424 } # ac_fn_c_try_compile
1426 # ac_fn_cxx_try_compile LINENO
1427 # ----------------------------
1428 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1429 ac_fn_cxx_try_compile
()
1431 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1432 rm -f conftest.
$ac_objext
1433 if { { ac_try
="$ac_compile"
1435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1436 *) ac_try_echo=$ac_try;;
1438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439 $as_echo "$ac_try_echo"; } >&5
1440 (eval "$ac_compile") 2>conftest.err
1442 if test -s conftest.err; then
1443 grep -v '^ *+' conftest.err >conftest.er1
1444 cat conftest.er1 >&5
1445 mv -f conftest.er1 conftest.err
1447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448 test $ac_status = 0; } && {
1449 test -z "$ac_cxx_werror_flag" ||
1450 test ! -s conftest.err
1451 } && test -s conftest.$ac_objext; then :
1454 $as_echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1459 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1460 as_fn_set_status $ac_retval
1462 } # ac_fn_cxx_try_compile
1464 # ac_fn_c_try_cpp LINENO
1465 # ----------------------
1466 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470 if { { ac_try="$ac_cpp conftest.$ac_ext"
1472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1473 *) ac_try_echo
=$ac_try;;
1475 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476 $as_echo "$ac_try_echo"; } >&5
1477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1479 if test -s conftest.err
; then
1480 grep -v '^ *+' conftest.err
>conftest.er1
1481 cat conftest.er1
>&5
1482 mv -f conftest.er1 conftest.err
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } > conftest.i
&& {
1486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1487 test ! -s conftest.err
1491 $as_echo "$as_me: failed program was:" >&5
1492 sed 's/^/| /' conftest.
$ac_ext >&5
1496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1497 as_fn_set_status
$ac_retval
1501 # ac_fn_c_try_run LINENO
1502 # ----------------------
1503 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1504 # that executables *can* be run.
1507 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1508 if { { ac_try
="$ac_link"
1510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_link") 2>&5
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1519 { { case "(($ac_try" in
1520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1521 *) ac_try_echo
=$ac_try;;
1523 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_try") 2>&5
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; }; }; then :
1531 $as_echo "$as_me: program exited with status $ac_status" >&5
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.
$ac_ext >&5
1535 ac_retval
=$ac_status
1537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status
$ac_retval
1543 # ac_fn_c_try_link LINENO
1544 # -----------------------
1545 # Try to link conftest.$ac_ext, and return whether this succeeded.
1548 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1549 rm -f conftest.
$ac_objext conftest
$ac_exeext
1550 if { { ac_try
="$ac_link"
1552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_link") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest$ac_exeext && {
1569 test "$cross_compiling" = yes ||
1570 $as_test_x conftest$ac_exeext
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1580 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1581 # interfere with the next link command; also delete a directory that is
1582 # left behind by Apple's compiler. We do this before executing the actions.
1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1587 } # ac_fn_c_try_link
1588 cat >config.log <<_ACEOF
1589 This file contains any messages produced by compilers while
1590 running configure, to aid debugging if configure makes a mistake.
1592 It was created by RISC-V ISA Simulator $as_me ?, which was
1593 generated by GNU Autoconf 2.68. Invocation command line was
1605 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1606 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1607 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1608 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1609 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1611 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1612 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1614 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1615 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1616 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1617 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1618 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1619 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1620 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 $as_echo "PATH: $as_dir"
1645 # Keep a trace of the command line.
1646 # Strip out --no-create and --no-recursion so they do not pile up.
1647 # Strip out --silent because we don't want to record it for future runs.
1648 # Also quote any args containing shell meta-characters.
1649 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_must_keep_next=false
1659 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1661 | -silent | --silent | --silen | --sile | --sil)
1664 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1667 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1669 as_fn_append ac_configure_args1 " '$ac_arg'"
1670 if test $ac_must_keep_next = true; then
1671 ac_must_keep_next=false # Got value, back to normal.
1674 *=* | --config-cache | -C | -disable-* | --disable-* \
1675 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1676 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1677 | -with-* | --with-* | -without-* | --without-* | --x)
1678 case "$ac_configure_args0 " in
1679 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 -* ) ac_must_keep_next=true ;;
1685 as_fn_append ac_configure_args " '$ac_arg'"
1690 { ac_configure_args0=; unset ac_configure_args0;}
1691 { ac_configure_args1=; unset ac_configure_args1;}
1693 # When interrupted or exit'd, cleanup temporary files, and complete
1694 # config.log. We remove comments because anyway the quotes in there
1695 # would cause problems or look ugly.
1696 # WARNING: Use '\'' to represent an apostrophe within the trap.
1697 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1698 trap 'exit_status=$?
1699 # Save into config.log some information that might help in debugging.
1703 $as_echo "## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##"
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1710 eval ac_val=\$$ac_var
1714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1718 _ | IFS | as_nl) ;; #(
1719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1720 *) { eval $ac_var=; unset $ac_var;} ;;
1725 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1726 *${as_nl}ac_space=\ *)
1728 "s/'\''/'\''\\\\'\'''\''/g;
1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 $as_echo "## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##"
1743 for ac_var in $ac_subst_vars
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 $as_echo "$ac_var='\''$ac_val'\''"
1753 if test -n "$ac_subst_files"; then
1754 $as_echo "## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##"
1758 for ac_var in $ac_subst_files
1760 eval ac_val=\$$ac_var
1762 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 $as_echo "$ac_var='\''$ac_val'\''"
1769 if test -s confdefs.h; then
1770 $as_echo "## ----------- ##
1777 test "$ac_signal" != 0 &&
1778 $as_echo "$as_me: caught signal $ac_signal"
1779 $as_echo "$as_me: exit $exit_status"
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 $as_echo "/* confdefs.h */" > confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_URL "$PACKAGE_URL"
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer an explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 # We do not want a PATH search for config.site.
1828 case $CONFIG_SITE in #((
1829 -*) ac_site_file1=./$CONFIG_SITE;;
1830 */*) ac_site_file1=$CONFIG_SITE;;
1831 *) ac_site_file1=./$CONFIG_SITE;;
1833 elif test "x$prefix" != xNONE; then
1834 ac_site_file1=$prefix/share/config.site
1835 ac_site_file2=$prefix/etc/config.site
1837 ac_site_file1=$ac_default_prefix/share/config.site
1838 ac_site_file2=$ac_default_prefix/etc/config.site
1840 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1842 test "x$ac_site_file" = xNONE && continue
1843 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1845 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1848 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1850 as_fn_error $? "failed to load site
script $ac_site_file
1851 See \
`config.log' for more details" "$LINENO" 5; }
1855 if test -r "$cache_file"; then
1856 # Some versions of bash will fail to source /dev/null (special files
1857 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1858 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1860 $as_echo "$as_me: loading cache $cache_file" >&6;}
1862 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863 *) . "./$cache_file";;
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1868 $as_echo "$as_me: creating cache $cache_file" >&6;}
1872 # Check that the precious variables saved in the cache have kept the same
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877 eval ac_new_set=\$ac_env_${ac_var}_set
1878 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879 eval ac_new_val=\$ac_env_${ac_var}_value
1880 case $ac_old_set,$ac_new_set in
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1883 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1887 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1891 if test "x$ac_old_val" != "x$ac_new_val"; then
1892 # differences in whitespace do not lead to failure.
1893 ac_old_val_w=`echo x
$ac_old_val`
1894 ac_new_val_w=`echo x
$ac_new_val`
1895 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1897 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1898 ac_cache_corrupted=:
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1901 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1902 eval $ac_var=\$ac_old_val
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1905 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1907 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1913 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1922 if $ac_cache_corrupted; then
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1926 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1927 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1929 ## -------------------- ##
1930 ## Main body of script. ##
1931 ## -------------------- ##
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 for ac_dir in scripts "$srcdir"/scripts; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1975 $as_echo_n "checking build system type... " >&6; }
1976 if ${ac_cv_build+:} false; then :
1977 $as_echo_n "(cached) " >&6
1979 ac_build_alias=$build_alias
1980 test "x$ac_build_alias" = x &&
1981 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1982 test "x$ac_build_alias" = x &&
1983 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1984 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1985 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1989 $as_echo "$ac_cv_build" >&6; }
1990 case $ac_cv_build in
1992 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2009 $as_echo_n "checking host system type... " >&6; }
2010 if ${ac_cv_host+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 if test "x$host_alias" = x; then
2014 ac_cv_host=$ac_cv_build
2016 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2017 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2022 $as_echo "$ac_cv_host" >&6; }
2025 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2028 ac_save_IFS=$IFS; IFS='-'
2034 # Remember, the first character of IFS is used to create $*,
2035 # except with old shells:
2038 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2042 #-------------------------------------------------------------------------
2043 # Checks for programs
2044 #-------------------------------------------------------------------------
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2055 $as_echo_n "checking for $ac_word... " >&6; }
2056 if ${ac_cv_prog_CC+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2082 $as_echo "$CC" >&6; }
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2085 $as_echo "no" >&6; }
2090 if test -z "$ac_cv_prog_CC"; then
2092 # Extract the first word of "gcc", so it can be a program name with args.
2093 set dummy gcc; ac_word=$2
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2095 $as_echo_n "checking for $ac_word... " >&6; }
2096 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2097 $as_echo_n "(cached) " >&6
2099 if test -n "$ac_ct_CC"; then
2100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_prog_ac_ct_CC="gcc"
2110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2122 $as_echo "$ac_ct_CC" >&6; }
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2125 $as_echo "no" >&6; }
2128 if test "x$ac_ct_CC" = x; then
2131 case $cross_compiling:$ac_tool_warned in
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2135 ac_tool_warned=yes ;;
2143 if test -z "$CC"; then
2144 if test -n "$ac_tool_prefix"; then
2145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2146 set dummy ${ac_tool_prefix}cc; ac_word=$2
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if ${ac_cv_prog_CC+:} false; then :
2150 $as_echo_n "(cached) " >&6
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_CC="${ac_tool_prefix}cc"
2163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 if test -n "$CC"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175 $as_echo "$CC" >&6; }
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178 $as_echo "no" >&6; }
2184 if test -z "$CC"; then
2185 # Extract the first word of "cc", so it can be a program name with args.
2186 set dummy cc; ac_word=$2
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2188 $as_echo_n "checking for $ac_word... " >&6; }
2189 if ${ac_cv_prog_CC+:} false; then :
2190 $as_echo_n "(cached) " >&6
2192 if test -n "$CC"; then
2193 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2204 ac_prog_rejected=yes
2208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 if test $ac_prog_rejected = yes; then
2216 # We found a bogon in the path, so make sure we never use it.
2217 set dummy $ac_cv_prog_CC
2219 if test $# != 0; then
2220 # We chose a different compiler from the bogus one.
2221 # However, it has the same basename, so the bogon will be chosen
2222 # first if we set CC to just the basename; use the full file name.
2224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2235 $as_echo "no" >&6; }
2240 if test -z "$CC"; then
2241 if test -n "$ac_tool_prefix"; then
2242 for ac_prog in cl.exe
2244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2247 $as_echo_n "checking for $ac_word... " >&6; }
2248 if ${ac_cv_prog_CC+:} false; then :
2249 $as_echo_n "(cached) " >&6
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 if test -n "$CC"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2274 $as_echo "$CC" >&6; }
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2277 $as_echo "no" >&6; }
2281 test -n "$CC" && break
2284 if test -z "$CC"; then
2286 for ac_prog in cl.exe
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy $ac_prog; ac_word=$2
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2293 $as_echo_n "(cached) " >&6
2295 if test -n "$ac_ct_CC"; then
2296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_ac_ct_CC="$ac_prog"
2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316 if test -n "$ac_ct_CC"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2318 $as_echo "$ac_ct_CC" >&6; }
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2321 $as_echo "no" >&6; }
2325 test -n "$ac_ct_CC" && break
2328 if test "x$ac_ct_CC" = x; then
2331 case $cross_compiling:$ac_tool_warned in
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2335 ac_tool_warned=yes ;;
2344 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2347 See \
`config.log' for more details" "$LINENO" 5; }
2349 # Provide some information about the compiler.
2350 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2353 for ac_option in --version -v -V -qversion; do
2354 { { ac_try="$ac_compiler $ac_option >&5"
2356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2357 *) ac_try_echo
=$ac_try;;
2359 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2363 if test -s conftest.err
; then
2365 ... rest of stderr output deleted ...
2366 10q' conftest.err
>conftest.er1
2367 cat conftest.er1
>&5
2369 rm -f conftest.er1 conftest.err
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; }
2374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2385 ac_clean_files_save
=$ac_clean_files
2386 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2391 $as_echo_n "checking whether the C compiler works... " >&6; }
2392 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 # The possible output files:
2395 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2398 for ac_file
in $ac_files
2401 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2402 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2407 if { { ac_try
="$ac_link_default"
2409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link_default") 2>&5
2416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2417 test $ac_status = 0; }; then :
2418 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2419 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2420 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2421 # so that the user can short-circuit this test for compilers unknown to
2423 for ac_file in $ac_files ''
2425 test -f "$ac_file" || continue
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2430 # We found the default executable, but exeext='' is most
2434 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # We set ac_cv_exeext here because the later test for it is not
2439 # safe: cross compilers may not add the suffix if given an `-o'
2440 # argument, so we may need to know it at that point already.
2441 # Even if this section looks crufty: it has the advantage of
2448 test "$ac_cv_exeext" = no && ac_cv_exeext=
2453 if test -z "$ac_file"; then :
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's
/^
/|
/' conftest.$ac_ext >&5
2459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2461 as_fn_error 77 "C compiler cannot create executables
2462 See \`config.log
' for more details" "$LINENO" 5; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2468 $as_echo_n "checking for C compiler default output file name... " >&6; }
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2470 $as_echo "$ac_file" >&6; }
2471 ac_exeext=$ac_cv_exeext
2473 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2474 ac_clean_files=$ac_clean_files_save
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2476 $as_echo_n "checking for suffix of executables... " >&6; }
2477 if { { ac_try="$ac_link"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484 (eval "$ac_link") 2>&5
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; }; then :
2488 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2489 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2490 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2492 for ac_file
in conftest.exe conftest conftest.
*; do
2493 test -f "$ac_file" ||
continue
2495 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2496 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2504 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2505 See \`config.log' for more details" "$LINENO" 5; }
2507 rm -f conftest conftest
$ac_cv_exeext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2509 $as_echo "$ac_cv_exeext" >&6; }
2511 rm -f conftest.
$ac_ext
2512 EXEEXT
=$ac_cv_exeext
2514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2520 FILE *f = fopen ("conftest.out", "w");
2521 return ferror (f) || fclose (f) != 0;
2527 ac_clean_files
="$ac_clean_files conftest.out"
2528 # Check that the compiler produces executables we can run. If not, either
2529 # the compiler is broken, or we cross compile.
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2531 $as_echo_n "checking whether we are cross compiling... " >&6; }
2532 if test "$cross_compiling" != yes; then
2533 { { ac_try
="$ac_link"
2535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_link") 2>&5
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; }
2544 if { ac_try='./conftest$ac_cv_exeext'
2545 { { case "(($ac_try" in
2546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2547 *) ac_try_echo
=$ac_try;;
2549 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551 (eval "$ac_try") 2>&5
2553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554 test $ac_status = 0; }; }; then
2557 if test "$cross_compiling" = maybe
; then
2560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $?
"cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details" "$LINENO" 5; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2569 $as_echo "$cross_compiling" >&6; }
2571 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2572 ac_clean_files
=$ac_clean_files_save
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2574 $as_echo_n "checking for suffix of object files... " >&6; }
2575 if ${ac_cv_objext+:} false
; then :
2576 $as_echo_n "(cached) " >&6
2578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2589 rm -f conftest.o conftest.obj
2590 if { { ac_try
="$ac_compile"
2592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2596 $as_echo "$ac_try_echo"; } >&5
2597 (eval "$ac_compile") 2>&5
2599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2600 test $ac_status = 0; }; then :
2601 for ac_file in conftest.o conftest.obj conftest.*; do
2602 test -f "$ac_file" || continue;
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 $as_echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2616 See \
`config.log' for more details" "$LINENO" 5; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2621 $as_echo "$ac_cv_objext" >&6; }
2622 OBJEXT=$ac_cv_objext
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2625 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2626 if ${ac_cv_c_compiler_gnu+:} false; then :
2627 $as_echo_n "(cached) " >&6
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2643 if ac_fn_c_try_compile "$LINENO"; then :
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2653 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2654 if test $ac_compiler_gnu = yes; then
2659 ac_test_CFLAGS=${CFLAGS+set}
2660 ac_save_CFLAGS=$CFLAGS
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2662 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2663 if ${ac_cv_prog_cc_g+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 ac_save_c_werror_flag=$ac_c_werror_flag
2667 ac_c_werror_flag=yes
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2681 if ac_fn_c_try_compile "$LINENO"; then :
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2696 if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_c_werror_flag=$ac_save_c_werror_flag
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2712 if ac_fn_c_try_compile "$LINENO"; then :
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_c_werror_flag=$ac_save_c_werror_flag
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2723 $as_echo "$ac_cv_prog_cc_g" >&6; }
2724 if test "$ac_test_CFLAGS" = set; then
2725 CFLAGS=$ac_save_CFLAGS
2726 elif test $ac_cv_prog_cc_g = yes; then
2727 if test "$GCC" = yes; then
2733 if test "$GCC" = yes; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2740 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2741 if ${ac_cv_prog_cc_c89+:} false; then :
2742 $as_echo_n "(cached) " >&6
2744 ac_cv_prog_cc_c89=no
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2750 #include <sys/types.h>
2751 #include <sys/stat.h>
2752 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2753 struct buf { int x; };
2754 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2755 static char *e (p, i)
2761 static char *f (char * (*g) (char **, int), char **p, ...)
2766 s = g (p, va_arg (v,int));
2771 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2772 function prototypes and stuff, but not '\xHH' hex character constants.
2773 These don't provoke an error unfortunately, instead are silently treated
2774 as 'x'. The following induces an error, until -std is added to get
2775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2776 array size at least. It's necessary to write '\x00'==0 to get something
2777 that's true only with -std. */
2778 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2781 inside strings and character constants. */
2783 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2785 int test (int i, double x);
2786 struct s1 {int (*f) (int a);};
2787 struct s2 {int (*f) (double a);};
2788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2799 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2800 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2802 CC="$ac_save_CC $ac_arg"
2803 if ac_fn_c_try_compile "$LINENO"; then :
2804 ac_cv_prog_cc_c89=$ac_arg
2806 rm -f core conftest.err conftest.$ac_objext
2807 test "x$ac_cv_prog_cc_c89" != "xno" && break
2809 rm -f conftest.$ac_ext
2814 case "x$ac_cv_prog_cc_c89" in
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2817 $as_echo "none needed" >&6; } ;;
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2820 $as_echo "unsupported" >&6; } ;;
2822 CC="$CC $ac_cv_prog_cc_c89"
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2824 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2826 if test "x$ac_cv_prog_cc_c89" != xno; then :
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 ac_cpp='$CXXCPP $CPPFLAGS'
2838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2841 if test -z "$CXX"; then
2842 if test -n "$CCC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CXX+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CXX"; then
2856 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CXX"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2878 $as_echo "$CXX" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2885 test -n "$CXX" && break
2888 if test -z "$CXX"; then
2890 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$ac_ct_CXX"; then
2900 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CXX="$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2920 if test -n "$ac_ct_CXX"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2922 $as_echo "$ac_ct_CXX" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$ac_ct_CXX" && break
2932 if test "x$ac_ct_CXX" = x; then
2935 case $cross_compiling:$ac_tool_warned in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2947 # Provide some information about the compiler.
2948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2951 for ac_option in --version -v -V -qversion; do
2952 { { ac_try="$ac_compiler $ac_option >&5"
2954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2955 *) ac_try_echo
=$ac_try;;
2957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961 if test -s conftest.err
; then
2963 ... rest of stderr output deleted ...
2964 10q' conftest.err
>conftest.er1
2965 cat conftest.er1
>&5
2967 rm -f conftest.er1 conftest.err
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2973 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2974 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2975 $as_echo_n "(cached) " >&6
2977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2991 if ac_fn_cxx_try_compile
"$LINENO"; then :
2996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2997 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3001 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3002 if test $ac_compiler_gnu = yes; then
3007 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3008 ac_save_CXXFLAGS
=$CXXFLAGS
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3010 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3011 if ${ac_cv_prog_cxx_g+:} false
; then :
3012 $as_echo_n "(cached) " >&6
3014 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3015 ac_cxx_werror_flag
=yes
3018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3029 if ac_fn_cxx_try_compile
"$LINENO"; then :
3030 ac_cv_prog_cxx_g
=yes
3033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3044 if ac_fn_cxx_try_compile
"$LINENO"; then :
3047 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3060 if ac_fn_cxx_try_compile
"$LINENO"; then :
3061 ac_cv_prog_cxx_g
=yes
3063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3068 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3071 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3072 if test "$ac_test_CXXFLAGS" = set; then
3073 CXXFLAGS
=$ac_save_CXXFLAGS
3074 elif test $ac_cv_prog_cxx_g = yes; then
3075 if test "$GXX" = yes; then
3081 if test "$GXX" = yes; then
3088 ac_cpp
='$CPP $CPPFLAGS'
3089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3095 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_AR+:} false
; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$AR"; then
3102 ac_cv_prog_AR
="$AR" # Let the user override the test.
3104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir
=.
3109 for ac_exec_ext
in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$AR"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3124 $as_echo "$AR" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3132 if test -z "$ac_cv_prog_AR"; then
3134 # Extract the first word of "ar", so it can be a program name with args.
3135 set dummy
ar; ac_word
=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$ac_ct_AR"; then
3142 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir
=.
3149 for ac_exec_ext
in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_ac_ct_AR
="ar"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3162 if test -n "$ac_ct_AR"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3164 $as_echo "$ac_ct_AR" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3170 if test "x$ac_ct_AR" = x
; then
3173 case $cross_compiling:$ac_tool_warned in
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned
=yes ;;
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_RANLIB+:} false
; then :
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$RANLIB"; then
3194 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 RANLIB
=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3216 $as_echo "$RANLIB" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3224 if test -z "$ac_cv_prog_RANLIB"; then
3225 ac_ct_RANLIB
=$RANLIB
3226 # Extract the first word of "ranlib", so it can be a program name with args.
3227 set dummy ranlib
; ac_word
=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$ac_ct_RANLIB"; then
3234 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3254 if test -n "$ac_ct_RANLIB"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3256 $as_echo "$ac_ct_RANLIB" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3262 if test "x$ac_ct_RANLIB" = x
; then
3265 case $cross_compiling:$ac_tool_warned in
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269 ac_tool_warned
=yes ;;
3271 RANLIB
=$ac_ct_RANLIB
3274 RANLIB
="$ac_cv_prog_RANLIB"
3278 #-------------------------------------------------------------------------
3279 # MCPPBS specific program checks
3280 #-------------------------------------------------------------------------
3281 # These macros check to see if we can do a stow-based install and also
3282 # check for an isa simulator suitable for running the unit test programs
3285 # Find a good install program. We prefer a C program (faster),
3286 # so one script is as good as another. But avoid the broken or
3287 # incompatible versions:
3288 # SysV /etc/install, /usr/sbin/install
3289 # SunOS /usr/etc/install
3290 # IRIX /sbin/install
3292 # AmigaOS /C/install, which installs bootblocks on floppy discs
3293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3296 # OS/2's system install, which has a completely different semantic
3297 # ./install, which can be erroneously created by make from ./install.sh.
3298 # Reject install programs that cannot install multiple files.
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3300 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3301 if test -z "$INSTALL"; then
3302 if ${ac_cv_path_install+:} false
; then :
3303 $as_echo_n "(cached) " >&6
3305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir
=.
3310 # Account for people who put trailing slashes in PATH elements.
3311 case $as_dir/ in #((
3312 .
/ | .
// |
/[cC
]/* | \
3313 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3314 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3317 # OSF1 and SCO ODT 3.0 have their own names for install.
3318 # Don't use installbsd from OSF since it installs stuff as root
3320 for ac_prog
in ginstall scoinst
install; do
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3323 if test $ac_prog = install &&
3324 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3325 # AIX install. It has an incompatible calling convention.
3327 elif test $ac_prog = install &&
3328 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3329 # program-specific install script used by HP pwplus--don't use.
3332 rm -rf conftest.one conftest.two conftest.dir
3333 echo one
> conftest.one
3334 echo two
> conftest.two
3336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3337 test -s conftest.one
&& test -s conftest.two
&&
3338 test -s conftest.dir
/conftest.one
&&
3339 test -s conftest.dir
/conftest.two
3341 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3354 rm -rf conftest.one conftest.two conftest.dir
3357 if test "${ac_cv_path_install+set}" = set; then
3358 INSTALL
=$ac_cv_path_install
3360 # As a last resort, use the slow shell script. Don't cache a
3361 # value for INSTALL within a source directory, because that will
3362 # break other packages using the cache if that directory is
3363 # removed, or if the value is a relative name.
3364 INSTALL
=$ac_install_sh
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3368 $as_echo "$INSTALL" >&6; }
3370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3371 # It thinks the first close brace ends the variable substitution.
3372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3376 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3380 # Configure command line option
3382 # Check whether --enable-stow was given.
3383 if test "${enable_stow+set}" = set; then :
3384 enableval
=$enable_stow; enable_stow
="yes"
3392 # Environment variables
3397 # Check for install script
3401 # Deterimine if native build and set prefix appropriately
3403 if test ${enable_stow} = "yes" ; then :
3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3408 set dummy
$ac_prog; ac_word
=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_stow+:} false
; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$stow"; then
3415 ac_cv_prog_stow
="$stow" # Let the user override the test.
3417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir
=.
3422 for ac_exec_ext
in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_stow
="$ac_prog"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 stow
=$ac_cv_prog_stow
3435 if test -n "$stow"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3437 $as_echo "$stow" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 test -n "$stow" && break
3446 test -n "$stow" || stow
="no"
3448 if test ${stow} = "no" ; then :
3450 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3454 # Check if native or non-native build
3456 if test "${build}" = "${host}" ; then :
3459 # build == host so this is a native build. Make sure --prefix not
3460 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3462 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3464 prefix
="${STOW_PREFIX}"
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3466 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3468 $as_echo "$as_me: prefix=${prefix}" >&6;}
3476 # build != host so this is a non-native build. Make sure --prefix
3477 # not set and $STOW_ROOT is set, then set
3478 # prefix=$STOW_ROOT/${host_alias}.
3480 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3482 prefix
="${STOW_ROOT}/${host_alias}"
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3484 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3486 $as_echo "$as_me: prefix=${prefix}" >&6;}
3498 if test "${build}" != "${host}" ; then :
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog
in isa-run run
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_RUN+:} false
; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$RUN"; then
3511 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$RUN"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3533 $as_echo "$RUN" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$RUN" && break
3543 if test -z "$RUN"; then
3545 for ac_prog
in isa-run run
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy
$ac_prog; ac_word
=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_RUN"; then
3555 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3575 if test -n "$ac_ct_RUN"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3577 $as_echo "$ac_ct_RUN" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_RUN" && break
3587 if test "x$ac_ct_RUN" = x
; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned
=yes ;;
3600 if test ${RUN} = "no" ; then :
3602 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3615 #-------------------------------------------------------------------------
3616 # Checks for header files
3617 #-------------------------------------------------------------------------
3621 ac_cpp
='$CPP $CPPFLAGS'
3622 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3626 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3631 if test -z "$CPP"; then
3632 if ${ac_cv_prog_CPP+:} false
; then :
3633 $as_echo_n "(cached) " >&6
3635 # Double quotes because CPP needs to be expanded
3636 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3639 for ac_c_preproc_warn_flag
in '' yes
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3650 # include <limits.h>
3652 # include <assert.h>
3656 if ac_fn_c_try_cpp
"$LINENO"; then :
3659 # Broken: fails on valid input.
3662 rm -f conftest.err conftest.i conftest.
$ac_ext
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668 #include <ac_nonexistent.h>
3670 if ac_fn_c_try_cpp
"$LINENO"; then :
3671 # Broken: success on invalid input.
3674 # Passes both tests.
3678 rm -f conftest.err conftest.i conftest.
$ac_ext
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.i conftest.err conftest.
$ac_ext
3683 if $ac_preproc_ok; then :
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3696 $as_echo "$CPP" >&6; }
3698 for ac_c_preproc_warn_flag
in '' yes
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3709 # include <limits.h>
3711 # include <assert.h>
3715 if ac_fn_c_try_cpp
"$LINENO"; then :
3718 # Broken: fails on valid input.
3721 rm -f conftest.err conftest.i conftest.
$ac_ext
3723 # OK, works on sane cases. Now check whether nonexistent headers
3724 # can be detected and how.
3725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <ac_nonexistent.h>
3729 if ac_fn_c_try_cpp
"$LINENO"; then :
3730 # Broken: success on invalid input.
3733 # Passes both tests.
3737 rm -f conftest.err conftest.i conftest.
$ac_ext
3740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3741 rm -f conftest.i conftest.err conftest.
$ac_ext
3742 if $ac_preproc_ok; then :
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details" "$LINENO" 5; }
3752 ac_cpp
='$CPP $CPPFLAGS'
3753 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3759 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3760 if ${ac_cv_path_GREP+:} false
; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -z "$GREP"; then
3764 ac_path_GREP_found
=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3767 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3770 test -z "$as_dir" && as_dir
=.
3771 for ac_prog
in grep ggrep
; do
3772 for ac_exec_ext
in '' $ac_executable_extensions; do
3773 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3774 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3775 # Check for GNU ac_path_GREP and select it if it is found.
3776 # Check for GNU $ac_path_GREP
3777 case `"$ac_path_GREP" --version 2>&1` in
3779 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3782 $as_echo_n 0123456789 >"conftest.in"
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 $as_echo 'GREP' >> "conftest.nl"
3789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3790 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3791 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_GREP
="$ac_path_GREP"
3795 ac_path_GREP_max
=$ac_count
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3800 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3803 $ac_path_GREP_found && break 3
3808 if test -z "$ac_cv_path_GREP"; then
3809 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3812 ac_cv_path_GREP
=$GREP
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3817 $as_echo "$ac_cv_path_GREP" >&6; }
3818 GREP
="$ac_cv_path_GREP"
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3822 $as_echo_n "checking for egrep... " >&6; }
3823 if ${ac_cv_path_EGREP+:} false
; then :
3824 $as_echo_n "(cached) " >&6
3826 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3827 then ac_cv_path_EGREP
="$GREP -E"
3829 if test -z "$EGREP"; then
3830 ac_path_EGREP_found
=false
3831 # Loop through the user's path and test for each of PROGNAME-LIST
3832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3833 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3836 test -z "$as_dir" && as_dir
=.
3837 for ac_prog
in egrep; do
3838 for ac_exec_ext
in '' $ac_executable_extensions; do
3839 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3840 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3841 # Check for GNU ac_path_EGREP and select it if it is found.
3842 # Check for GNU $ac_path_EGREP
3843 case `"$ac_path_EGREP" --version 2>&1` in
3845 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3848 $as_echo_n 0123456789 >"conftest.in"
3851 cat "conftest.in" "conftest.in" >"conftest.tmp"
3852 mv "conftest.tmp" "conftest.in"
3853 cp "conftest.in" "conftest.nl"
3854 $as_echo 'EGREP' >> "conftest.nl"
3855 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3856 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3857 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3858 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3859 # Best one so far, save it but keep looking for a better one
3860 ac_cv_path_EGREP
="$ac_path_EGREP"
3861 ac_path_EGREP_max
=$ac_count
3863 # 10*(2^10) chars as input seems more than enough
3864 test $ac_count -gt 10 && break
3866 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3869 $ac_path_EGREP_found && break 3
3874 if test -z "$ac_cv_path_EGREP"; then
3875 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3878 ac_cv_path_EGREP
=$EGREP
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3884 $as_echo "$ac_cv_path_EGREP" >&6; }
3885 EGREP
="$ac_cv_path_EGREP"
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3889 $as_echo_n "checking for ANSI C header files... " >&6; }
3890 if ${ac_cv_header_stdc+:} false
; then :
3891 $as_echo_n "(cached) " >&6
3893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3908 if ac_fn_c_try_compile
"$LINENO"; then :
3909 ac_cv_header_stdc
=yes
3911 ac_cv_header_stdc
=no
3913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3915 if test $ac_cv_header_stdc = yes; then
3916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "memchr" >/dev
/null
2>&1; then :
3926 ac_cv_header_stdc
=no
3932 if test $ac_cv_header_stdc = yes; then
3933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "free" >/dev
/null
2>&1; then :
3943 ac_cv_header_stdc
=no
3949 if test $ac_cv_header_stdc = yes; then
3950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3951 if test "$cross_compiling" = yes; then :
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3958 #if ((' ' & 0x0FF) == 0x020)
3959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 # define ISLOWER(c) \
3963 (('a' <= (c) && (c) <= 'i') \
3964 || ('j' <= (c) && (c) <= 'r') \
3965 || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3974 for (i = 0; i < 256; i++)
3975 if (XOR (islower (i), ISLOWER (i))
3976 || toupper (i) != TOUPPER (i))
3981 if ac_fn_c_try_run
"$LINENO"; then :
3984 ac_cv_header_stdc
=no
3986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3993 $as_echo "$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3996 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4001 #-------------------------------------------------------------------------
4002 # Default compiler flags
4003 #-------------------------------------------------------------------------
4005 CFLAGS
="-Wall -O2 -Wno-unused"
4007 CXXFLAGS
="-Wall -O2 -std=c++0x"
4010 #-------------------------------------------------------------------------
4011 # MCPPBS subproject list
4012 #-------------------------------------------------------------------------
4013 # Order list so that subprojects only depend on those listed earlier.
4014 # The '*' suffix indicates an optional subproject. The '**' suffix
4015 # indicates an optional subproject which is also the name of a group.
4019 # Add command line argument to enable all optional subprojects
4021 # Check whether --enable-optional-subprojects was given.
4022 if test "${enable_optional_subprojects+set}" = set; then :
4023 enableval
=$enable_optional_subprojects;
4027 # Loop through the subprojects given in the macro argument
4031 # Determine if this is a required or an optional subproject
4035 # Determine if there is a group with the same name
4039 # Create variations of the subproject name suitable for use as a CPP
4040 # enabled define, a shell enabled variable, and a shell function
4052 # Add subproject to our running list
4054 subprojects
="$subprojects riscv"
4056 # Process the subproject appropriately. If enabled add it to the
4057 # $enabled_subprojects running shell variable, set a
4058 # SUBPROJECT_ENABLED C define, and include the appropriate
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4063 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4064 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4066 enable_riscv_sproj
="yes"
4067 subprojects_enabled
="$subprojects_enabled riscv"
4069 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4072 # Check whether --with-fesvr was given.
4073 if test "${with_fesvr+set}" = set; then :
4074 withval
=$with_fesvr;
4075 LDFLAGS
="-L$withval/lib $LDFLAGS"
4076 CFLAGS
="-I$withval/include $CFLAGS"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4083 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4084 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4085 $as_echo_n "(cached) " >&6
4087 ac_check_lib_save_LIBS
=$LIBS
4088 LIBS
="-lfesvr $LIBS"
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4092 /* Override any GCC internal prototype to avoid an error.
4093 Use char because int might match the return type of a GCC
4094 builtin and then its argument prototype would still apply. */
4098 char libfesvr_is_present ();
4102 return libfesvr_is_present ();
4107 if ac_fn_c_try_link
"$LINENO"; then :
4108 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4110 ac_cv_lib_fesvr_libfesvr_is_present
=no
4112 rm -f core conftest.err conftest.
$ac_objext \
4113 conftest
$ac_exeext conftest.
$ac_ext
4114 LIBS
=$ac_check_lib_save_LIBS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4117 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4118 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4119 cat >>confdefs.h
<<_ACEOF
4120 #define HAVE_LIBFESVR 1
4123 LIBS
="-lfesvr $LIBS"
4126 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4131 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4132 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4133 $as_echo_n "(cached) " >&6
4135 ac_check_lib_save_LIBS
=$LIBS
4136 LIBS
="-lpthread $LIBS"
4137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4140 /* Override any GCC internal prototype to avoid an error.
4141 Use char because int might match the return type of a GCC
4142 builtin and then its argument prototype would still apply. */
4146 char pthread_create ();
4150 return pthread_create ();
4155 if ac_fn_c_try_link
"$LINENO"; then :
4156 ac_cv_lib_pthread_pthread_create
=yes
4158 ac_cv_lib_pthread_pthread_create
=no
4160 rm -f core conftest.err conftest.
$ac_objext \
4161 conftest
$ac_exeext conftest.
$ac_ext
4162 LIBS
=$ac_check_lib_save_LIBS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4165 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4166 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4167 cat >>confdefs.h
<<_ACEOF
4168 #define HAVE_LIBPTHREAD 1
4171 LIBS
="-lpthread $LIBS"
4174 as_fn_error $?
"libpthread is required" "$LINENO" 5
4178 # Check whether --enable-fpu was given.
4179 if test "${enable_fpu+set}" = set; then :
4180 enableval
=$enable_fpu;
4183 if test "x$enable_fpu" != "xno"; then :
4186 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4191 # Check whether --enable-64bit was given.
4192 if test "${enable_64bit+set}" = set; then :
4193 enableval
=$enable_64bit;
4196 if test "x$enable_64bit" != "xno"; then :
4199 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4208 # Determine if this is a required or an optional subproject
4212 # Determine if there is a group with the same name
4216 # Create variations of the subproject name suitable for use as a CPP
4217 # enabled define, a shell enabled variable, and a shell function
4229 # Add subproject to our running list
4231 subprojects
="$subprojects softfloat"
4233 # Process the subproject appropriately. If enabled add it to the
4234 # $enabled_subprojects running shell variable, set a
4235 # SUBPROJECT_ENABLED C define, and include the appropriate
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4240 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4241 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4243 enable_softfloat_sproj
="yes"
4244 subprojects_enabled
="$subprojects_enabled softfloat"
4246 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4253 # Determine if this is a required or an optional subproject
4257 # Determine if there is a group with the same name
4261 # Create variations of the subproject name suitable for use as a CPP
4262 # enabled define, a shell enabled variable, and a shell function
4274 # Add subproject to our running list
4276 subprojects
="$subprojects softfloat_riscv"
4278 # Process the subproject appropriately. If enabled add it to the
4279 # $enabled_subprojects running shell variable, set a
4280 # SUBPROJECT_ENABLED C define, and include the appropriate
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat_riscv" >&5
4285 $as_echo "$as_me: configuring default subproject : softfloat_riscv" >&6;}
4286 ac_config_files
="$ac_config_files softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in"
4288 enable_softfloat_riscv_sproj
="yes"
4289 subprojects_enabled
="$subprojects_enabled softfloat_riscv"
4291 $as_echo "#define SOFTFLOAT_RISCV_ENABLED /**/" >>confdefs.h
4298 # Output make variables
4305 #-------------------------------------------------------------------------
4306 # MCPPBS subproject groups
4307 #-------------------------------------------------------------------------
4308 # If a group has the same name as a subproject then you must add the
4309 # '**' suffix in the subproject list above. The list of subprojects in a
4310 # group should be ordered so that subprojets only depend on those listed
4311 # earlier. Here is an example:
4313 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4316 #-------------------------------------------------------------------------
4318 #-------------------------------------------------------------------------
4320 ac_config_headers
="$ac_config_headers config.h"
4322 ac_config_files
="$ac_config_files Makefile"
4324 cat >confcache
<<\_ACEOF
4325 # This file is a shell script that caches the results of configure
4326 # tests run on this system so they can be shared between configure
4327 # scripts and configure runs, see configure's option --config-cache.
4328 # It is not useful on other systems. If it contains results you don't
4329 # want to keep, you may remove or edit it.
4331 # config.status only pays attention to the cache file if you give it
4332 # the --recheck option to rerun configure.
4334 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4335 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4340 # The following way of writing the cache mishandles newlines in values,
4341 # but we know of no workaround that is simple, portable, and efficient.
4342 # So, we kill variables containing newlines.
4343 # Ultrix sh set writes to stderr and can't be redirected directly,
4344 # and sets the high bit in the cache file unless we assign to the vars.
4346 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4347 eval ac_val
=\$
$ac_var
4351 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4352 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4355 _ | IFS | as_nl
) ;; #(
4356 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4357 *) { eval $ac_var=; unset $ac_var;} ;;
4363 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4364 *${as_nl}ac_space
=\
*)
4365 # `set' does not quote correctly, so add quotes: double-quote
4366 # substitution turns \\\\ into \\, and sed turns \\ into \.
4369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4372 # `set' quotes correctly as required by POSIX, so do not add quotes.
4373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4384 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4386 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4387 if test -w "$cache_file"; then
4388 if test "x$cache_file" != "x/dev/null"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4390 $as_echo "$as_me: updating cache $cache_file" >&6;}
4391 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4392 cat confcache
>"$cache_file"
4394 case $cache_file in #(
4396 mv -f confcache
"$cache_file"$$
&&
4397 mv -f "$cache_file"$$
"$cache_file" ;; #(
4399 mv -f confcache
"$cache_file" ;;
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4405 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4410 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4411 # Let make expand exec_prefix.
4412 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4414 DEFS
=-DHAVE_CONFIG_H
4419 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4420 # 1. Remove the extension, and $U if already installed.
4421 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4422 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4423 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4424 # will be set to the directory where LIBOBJS objects are built.
4425 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4426 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4430 LTLIBOBJS
=$ac_ltlibobjs
4434 : "${CONFIG_STATUS=./config.status}"
4436 ac_clean_files_save
=$ac_clean_files
4437 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4443 # Generated by $as_me.
4444 # Run this file to recreate the current configuration.
4445 # Compiler output produced by configure, useful for debugging
4446 # configure, is in config.log if it exists.
4452 SHELL=\${CONFIG_SHELL-$SHELL}
4455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4456 ## -------------------- ##
4457 ## M4sh Initialization. ##
4458 ## -------------------- ##
4460 # Be more Bourne compatible
4461 DUALCASE
=1; export DUALCASE
# for MKS sh
4462 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4466 # is contrary to our usage. Disable this feature.
4467 alias -g '${1+"$@"}'='"$@"'
4468 setopt NO_GLOB_SUBST
4470 case `(set -o) 2>/dev/null` in #(
4482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4483 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4486 # Prefer a ksh shell builtin over an external printf program on Solaris,
4487 # but without wasting forks for bash or zsh.
4488 if test -z "$BASH_VERSION$ZSH_VERSION" \
4489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4490 as_echo='print
-r --'
4491 as_echo_n='print
-rn --'
4492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4493 as_echo='printf %s
\n'
4494 as_echo_n='printf %s
'
4496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4497 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4498 as_echo_n='/usr
/ucb
/echo -n'
4500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4501 as_echo_n_body='eval
4505 expr "X$arg" : "X\\(.*\\)$as_nl";
4506 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4508 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4510 export as_echo_n_body
4511 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4514 as_echo='sh
-c $as_echo_body as_echo
'
4517 # The user is always right.
4518 if test "${PATH_SEPARATOR+set}" != set; then
4520 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4521 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4528 # We need space, tab and new line, in precisely that order. Quoting is
4529 # there to prevent editors from complaining about space-tab.
4530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4531 # splitting by setting IFS to empty value.)
4534 # Find who we are. Look in the path if we contain no directory separator.
4537 *[\\/]* ) as_myself=$0 ;;
4538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4549 # We did not find ourselves, most probably we were run as `sh COMMAND'
4550 # in which case we are not to be found in the path.
4551 if test "x$as_myself" = x
; then
4554 if test ! -f "$as_myself"; then
4555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4559 # Unset variables that we do not need and which cause bugs (e.g. in
4560 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4561 # suppresses any "Segmentation fault" message there. '((' could
4562 # trigger a bug in pdksh 5.2.14.
4563 for as_var
in BASH_ENV ENV MAIL MAILPATH
4564 do eval test x\
${$as_var+set} = xset \
4565 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4578 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4581 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4582 # ----------------------------------------
4583 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4584 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4585 # script with STATUS, using 1 if that was 0.
4588 as_status
=$1; test $as_status -eq 0 && as_status
=1
4590 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4593 $as_echo "$as_me: error: $2" >&2
4594 as_fn_exit
$as_status
4598 # as_fn_set_status STATUS
4599 # -----------------------
4600 # Set $? to STATUS, without forking.
4604 } # as_fn_set_status
4608 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4618 # Portably unset VAR.
4621 { eval $1=; unset $1;}
4623 as_unset
=as_fn_unset
4624 # as_fn_append VAR VALUE
4625 # ----------------------
4626 # Append the text in VALUE to the end of the definition contained in VAR. Take
4627 # advantage of any shell optimizations that allow amortized linear growth over
4628 # repeated appends, instead of the typical quadratic growth present in naive
4630 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4631 eval 'as_fn_append ()
4642 # as_fn_arith ARG...
4643 # ------------------
4644 # Perform arithmetic evaluation on the ARGs, and store the result in the
4645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4646 # must be portable across $(()) and expr.
4647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4648 eval 'as_fn_arith ()
4655 as_val
=`expr "$@" || test $? -eq 1`
4660 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4661 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4667 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4668 as_basename
=basename
4673 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4679 as_me
=`$as_basename -- "$0" ||
4680 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4681 X"$0" : 'X\(//\)$' \| \
4682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4684 sed '/^.*\/\([^/][^/]*\)\/*$/{
4698 # Avoid depending upon Character Ranges.
4699 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4700 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4701 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4702 as_cr_digits
='0123456789'
4703 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4705 ECHO_C
= ECHO_N
= ECHO_T
=
4706 case `echo -n x` in #(((((
4708 case `echo 'xy\c'` in
4709 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4711 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4718 rm -f conf$$ conf$$.exe conf$$.
file
4719 if test -d conf$$.dir
; then
4720 rm -f conf$$.dir
/conf$$.
file
4723 mkdir conf$$.dir
2>/dev
/null
4725 if (echo >conf$$.
file) 2>/dev
/null
; then
4726 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4728 # ... but there are two gotchas:
4729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4731 # In both cases, we have to default to `cp -p'.
4732 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4734 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4742 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4743 rmdir conf$$.dir
2>/dev
/null
4748 # Create "$as_dir" as a directory, including parents if necessary.
4753 -*) as_dir
=.
/$as_dir;;
4755 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4759 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4760 *) as_qdir
=$as_dir;;
4762 as_dirs
="'$as_qdir' $as_dirs"
4763 as_dir
=`$as_dirname -- "$as_dir" ||
4764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4765 X"$as_dir" : 'X\(//\)[^/]' \| \
4766 X"$as_dir" : 'X\(//\)$' \| \
4767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4768 $as_echo X"$as_dir" |
4769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4786 test -d "$as_dir" && break
4788 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4789 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4793 if mkdir
-p .
2>/dev
/null
; then
4794 as_mkdir_p
='mkdir -p "$as_dir"'
4796 test -d .
/-p && rmdir .
/-p
4800 if test -x / >/dev
/null
2>&1; then
4803 if ls -dL / >/dev
/null
2>&1; then
4810 if test -d "$1"; then
4816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4817 ???[sx]*):;;*)false;;esac;fi
4821 as_executable_p
=$as_test_x
4823 # Sed expression to map a string onto a valid CPP name.
4824 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4826 # Sed expression to map a string onto a valid variable name.
4827 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4831 ## ----------------------------------- ##
4832 ## Main body of $CONFIG_STATUS script. ##
4833 ## ----------------------------------- ##
4835 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
4837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4838 # Save the log message, to keep $0 and so on meaningful, and to
4839 # report actual input values of CONFIG_FILES etc. instead of their
4840 # values after options handling.
4842 This file was extended by RISC-V ISA Simulator $as_me ?, which was
4843 generated by GNU Autoconf 2.68. Invocation command line was
4845 CONFIG_FILES = $CONFIG_FILES
4846 CONFIG_HEADERS = $CONFIG_HEADERS
4847 CONFIG_LINKS = $CONFIG_LINKS
4848 CONFIG_COMMANDS = $CONFIG_COMMANDS
4851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4856 case $ac_config_files in *"
4857 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
4860 case $ac_config_headers in *"
4861 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
4865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4866 # Files that config.status was made for.
4867 config_files="$ac_config_files"
4868 config_headers="$ac_config_headers"
4872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4874 \`$as_me' instantiates files and other configuration actions
4875 from templates according to the current configuration. Unless the files
4876 and actions are specified as TAGs, all are instantiated by default.
4878 Usage: $0 [OPTION]... [TAG]...
4880 -h, --help print this help, then exit
4881 -V, --version print version number and configuration settings, then exit
4882 --config print configuration, then exit
4883 -q, --quiet, --silent
4884 do not print progress messages
4885 -d, --debug don't remove temporary files
4886 --recheck update $as_me by reconfiguring in the same conditions
4887 --file=FILE[:TEMPLATE]
4888 instantiate the configuration file FILE
4889 --header=FILE[:TEMPLATE]
4890 instantiate the configuration header FILE
4892 Configuration files:
4895 Configuration headers:
4898 Report bugs to <Andrew Waterman>."
4901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4902 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4904 RISC-V ISA Simulator config.status ?
4905 configured by $0, generated by GNU Autoconf 2.68,
4906 with options \\"\$ac_cs_config\\"
4908 Copyright (C) 2010 Free Software Foundation, Inc.
4909 This config.status script is free software; the Free Software Foundation
4910 gives unlimited permission to copy, distribute and modify it."
4915 test -n "\$AWK" || AWK=awk
4918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
4919 # The default lists apply if the user does not specify any file.
4925 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4926 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
4930 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
4942 # Handling of the options.
4943 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4945 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
4946 $as_echo "$ac_cs_version"; exit ;;
4947 --config |
--confi |
--conf |
--con |
--co |
--c )
4948 $as_echo "$ac_cs_config"; exit ;;
4949 --debug |
--debu |
--deb |
--de |
--d |
-d )
4951 --file |
--fil |
--fi |
--f )
4954 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4955 '') as_fn_error $?
"missing file argument" ;;
4957 as_fn_append CONFIG_FILES
" '$ac_optarg'"
4958 ac_need_defaults
=false
;;
4959 --header |
--heade |
--head |
--hea )
4962 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4964 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
4965 ac_need_defaults
=false
;;
4967 # Conflict between --help and --header
4968 as_fn_error $?
"ambiguous option: \`$1'
4969 Try \`$0 --help' for more information.";;
4970 --help |
--hel |
-h )
4971 $as_echo "$ac_cs_usage"; exit ;;
4972 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4973 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4977 -*) as_fn_error $?
"unrecognized option: \`$1'
4978 Try \`$0 --help' for more information." ;;
4980 *) as_fn_append ac_config_targets
" $1"
4981 ac_need_defaults
=false
;;
4987 ac_configure_extra_args
=
4989 if $ac_cs_silent; then
4991 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4996 if \$ac_cs_recheck; then
4997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5000 CONFIG_SHELL='$SHELL'
5006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5011 ## Running $as_me. ##
5017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5022 # Handling of arguments.
5023 for ac_config_target
in $ac_config_targets
5025 case $ac_config_target in
5026 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5027 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5028 "softfloat_riscv.mk") CONFIG_FILES
="$CONFIG_FILES softfloat_riscv.mk:softfloat_riscv/softfloat_riscv.mk.in" ;;
5029 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5030 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5032 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5037 # If the user did not use the arguments to specify the items to instantiate,
5038 # then the envvar interface is used. Set only those that are not.
5039 # We use the long form for the default assignment because of an extremely
5040 # bizarre bug on SunOS 4.1.3.
5041 if $ac_need_defaults; then
5042 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5043 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5046 # Have a temporary directory for convenience. Make it in the build tree
5047 # simply because there is no reason against having it here, and in addition,
5048 # creating and moving files from /tmp can sometimes cause problems.
5049 # Hook for its removal unless debugging.
5050 # Note that there is a small window in which the directory will not be cleaned:
5051 # after its creation but before its name has been assigned to `$tmp'.
5055 trap 'exit_status=$?
5057 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5059 trap 'as_fn_exit 1' 1 2 13 15
5061 # Create a (secure) tmp directory for tmp files.
5064 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5068 tmp
=.
/conf$$
-$RANDOM
5069 (umask 077 && mkdir
"$tmp")
5070 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5073 # Set up the scripts for CONFIG_FILES section.
5074 # No need to generate them if there are no CONFIG_FILES.
5075 # This happens for instance with `./config.status config.h'.
5076 if test -n "$CONFIG_FILES"; then
5079 ac_cr
=`echo X | tr X '\015'`
5080 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5081 # But we know of no other shell where ac_cr would be empty at this
5082 # point, so we can use a bashism as a fallback.
5083 if test "x$ac_cr" = x
; then
5084 eval ac_cr
=\$
\'\\r
\'
5086 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5087 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5093 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5098 echo "cat >conf$$subs.awk <<_ACEOF" &&
5099 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5102 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5103 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5105 for ac_last_try in false false false false false :; do
5106 . ./conf$$subs.sh ||
5107 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5109 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5110 if test $ac_delim_n = $ac_delim_num; then
5112 elif $ac_last_try; then
5113 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5115 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5121 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5125 s/^/S["/; s
/!.
*/"]=/
5135 s/\(.\{148\}\)..*/\1/
5137 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5142 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5149 s/\(.\{148\}\)..*/\1/
5151 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5155 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5160 ' <conf$$subs.awk | sed '
5165 ' >>$CONFIG_STATUS || ac_write_fail=1
5166 rm -f conf$$subs.awk
5167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5169 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5170 for (key in S) S_is_set[key] = 1
5176 nfields = split(line, field, "@
")
5178 len = length(field[1])
5179 for (i = 2; i < nfields; i++) {
5181 keylen = length(key)
5182 if (S_is_set[key]) {
5184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5185 len += length(value) + length(field[++i])
5196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5197 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5198 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5201 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5202 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5205 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5206 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5207 # trailing colons and then remove the whole line if VPATH becomes empty
5208 # (actually we leave an empty line to preserve line numbers).
5209 if test "x
$srcdir" = x.; then
5210 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5229 fi # test -n "$CONFIG_FILES"
5231 # Set up the scripts for CONFIG_HEADERS section.
5232 # No need to generate them if there are no CONFIG_HEADERS.
5233 # This happens for instance with `./config.status Makefile'.
5234 if test -n "$CONFIG_HEADERS"; then
5235 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5239 # Transform confdefs.h into an awk script `defines.awk', embedded as
5240 # here-document in config.status, that substitutes the proper values into
5241 # config.h.in to produce config.h.
5243 # Create a delimiter string that does not exist in confdefs.h, to ease
5244 # handling of long lines.
5246 for ac_last_try in false false :; do
5247 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5248 if test -z "$ac_tt"; then
5250 elif $ac_last_try; then
5251 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5253 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5257 # For the awk script, D is an array of macro values keyed by name,
5258 # likewise P contains macro parameters if any. Preserve backslash
5259 # newline sequences.
5261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5263 s/.\{148\}/&'"$ac_delim"'/g
5266 s/^[ ]*#[ ]*define[ ][ ]*/ /
5273 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5275 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5280 D["\
1"]=" \
3\\\\\\n
"\\/p
5282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5287 s/.\{148\}/&'"$ac_delim"'/g
5292 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5295 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5297 ' <confdefs.h | sed '
5298 s/'"$ac_delim"'/"\\\
5299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5302 for (key in D) D_is_set[key] = 1
5305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5307 split(line, arg, " ")
5308 if (arg[1] == "#") {
5312 defundef
= substr
(arg
[1], 2)
5315 split(mac1
, mac2
, "(") #)
5317 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5318 if (D_is_set
[macro
]) {
5319 # Preserve the white space surrounding the "#".
5320 print prefix
"define", macro P
[macro
] D
[macro
]
5323 # Replace #undef with comments. This is necessary, for example,
5324 # in the case of _POSIX_SOURCE, which is predefined and required
5325 # on some systems where configure will not decide to define it.
5326 if (defundef
== "undef") {
5327 print
"/*", prefix defundef
, macro
, "*/"
5335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5336 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5337 fi # test -n "$CONFIG_HEADERS"
5340 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5345 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5347 case $ac_mode$ac_tag in
5349 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5350 :[FH
]-) ac_tag
=-:-;;
5351 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5368 -) ac_f
="$ac_tmp/stdin";;
5369 *) # Look for the file first in the build tree, then in the source tree
5370 # (if the path is not absolute). The absolute path cannot be DOS-style,
5371 # because $ac_f cannot contain `:'.
5375 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5377 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5379 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5380 as_fn_append ac_file_inputs
" '$ac_f'"
5383 # Let's still pretend it is `configure' which instantiates (i.e., don't
5384 # use $as_me), people would be surprised to read:
5385 # /* config.h. Generated by config.status. */
5386 configure_input
='Generated from '`
5387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5389 if test x
"$ac_file" != x-
; then
5390 configure_input
="$ac_file. $configure_input"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5392 $as_echo "$as_me: creating $ac_file" >&6;}
5394 # Neutralize special characters interpreted by sed in replacement strings.
5395 case $configure_input in #(
5396 *\
&* |
*\|
* |
*\\* )
5397 ac_sed_conf_input
=`$as_echo "$configure_input" |
5398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5399 *) ac_sed_conf_input
=$configure_input;;
5403 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5404 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5409 ac_dir
=`$as_dirname -- "$ac_file" ||
5410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5411 X"$ac_file" : 'X\(//\)[^/]' \| \
5412 X"$ac_file" : 'X\(//\)$' \| \
5413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5414 $as_echo X"$ac_file" |
5415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5432 as_dir
="$ac_dir"; as_fn_mkdir_p
5436 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5438 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5439 # A ".." for each directory in $ac_dir_suffix.
5440 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5441 case $ac_top_builddir_sub in
5442 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5443 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5446 ac_abs_top_builddir
=$ac_pwd
5447 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5448 # for backward compatibility:
5449 ac_top_builddir
=$ac_top_build_prefix
5452 .
) # We are building in place.
5454 ac_top_srcdir
=$ac_top_builddir_sub
5455 ac_abs_top_srcdir
=$ac_pwd ;;
5456 [\\/]* | ?
:[\\/]* ) # Absolute name.
5457 ac_srcdir
=$srcdir$ac_dir_suffix;
5458 ac_top_srcdir
=$srcdir
5459 ac_abs_top_srcdir
=$srcdir ;;
5461 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5462 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5463 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5465 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5475 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5476 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5481 # If the template does not know about datarootdir, expand it.
5482 # FIXME: This hack should be removed a few years after 2.60.
5483 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5494 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5495 *datarootdir
*) ac_datarootdir_seen
=yes;;
5496 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5498 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5501 ac_datarootdir_hack='
5502 s&@datadir@&$datadir&g
5503 s&@docdir@&$docdir&g
5504 s&@infodir@&$infodir&g
5505 s&@localedir@&$localedir&g
5506 s&@mandir@&$mandir&g
5507 s&\\\${datarootdir}&$datarootdir&g' ;;
5511 # Neutralize VPATH when `$srcdir' = `.'.
5512 # Shell code in configure.ac might set extrasub.
5513 # FIXME: do we really want to maintain this feature?
5514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5515 ac_sed_extra="$ac_vpsub
5518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5520 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5521 s|@configure_input@|
$ac_sed_conf_input|
;t t
5522 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5523 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5524 s
&@srcdir@
&$ac_srcdir&;t t
5525 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5526 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5527 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5528 s
&@builddir@
&$ac_builddir&;t t
5529 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5530 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5531 s
&@INSTALL@
&$ac_INSTALL&;t t
5532 $ac_datarootdir_hack
5534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5535 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5537 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5540 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5542 which seems to be undefined. Please make sure it is defined" >&5
5543 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5544 which seems to be undefined. Please make sure it is defined" >&2;}
5546 rm -f "$ac_tmp/stdin"
5548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5557 if test x"$ac_file" != x-; then
5559 $as_echo "/* $configure_input */" \
5560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5561 } >"$ac_tmp/config.h" \
5562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5563 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5565 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5568 mv "$ac_tmp/config.h" "$ac_file" \
5569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5572 $as_echo "/* $configure_input */" \
5573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5574 || as_fn_error $? "could not create -" "$LINENO" 5
5586 ac_clean_files=$ac_clean_files_save
5588 test $ac_write_fail = 0 ||
5589 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5592 # configure is writing to config.log, and then calls config.status.
5593 # config.status does its own redirection, appending to config.log.
5594 # Unfortunately, on DOS this fails, as config.log is still kept open
5595 # by configure, so config.status won't be able to
write to it
; its
5596 # output is simply discarded. So we exec the FD to /dev/null,
5597 # effectively closing config.log, so it can be properly (re)opened and
5598 # appended to by config.status. When coming back to configure, we
5599 # need to make the FD available again.
5600 if test "$no_create" != yes; then
5602 ac_config_status_args
=
5603 test "$silent" = yes &&
5604 ac_config_status_args
="$ac_config_status_args --quiet"
5606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5609 # would make configure fail if this is the last instruction.
5610 $ac_cs_success || as_fn_exit
1
5612 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5614 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}