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
655 ac_precious_vars
='build_alias
671 # Initialize some variables set by options.
673 ac_init_version
=false
674 ac_unrecognized_opts
=
676 # The variables have the same names as the options, with
677 # dashes changed to underlines.
685 program_transform_name
=s
,x
,x
,
693 # Installation directory options.
694 # These are left unexpanded so users can "make install exec_prefix=/foo"
695 # and all the variables that are supposed to be based on exec_prefix
696 # by default will actually change.
697 # Use braces instead of parens because sh, perl, etc. also accept them.
698 # (The list follows the same order as the GNU Coding Standards.)
699 bindir
='${exec_prefix}/bin'
700 sbindir
='${exec_prefix}/sbin'
701 libexecdir
='${exec_prefix}/libexec'
702 datarootdir
='${prefix}/share'
703 datadir
='${datarootdir}'
704 sysconfdir
='${prefix}/etc'
705 sharedstatedir
='${prefix}/com'
706 localstatedir
='${prefix}/var'
707 includedir
='${prefix}/include'
708 oldincludedir
='/usr/include'
709 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
710 infodir
='${datarootdir}/info'
715 libdir
='${exec_prefix}/lib'
716 localedir
='${datarootdir}/locale'
717 mandir
='${datarootdir}/man'
723 # If the previous option needs an argument, assign it.
724 if test -n "$ac_prev"; then
725 eval $ac_prev=\
$ac_option
731 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
736 # Accept the important Cygnus configure options, so we can diagnose typos.
738 case $ac_dashdash$ac_option in
742 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
744 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
747 -build |
--build |
--buil |
--bui |
--bu)
748 ac_prev
=build_alias
;;
749 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
750 build_alias
=$ac_optarg ;;
752 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
753 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
754 ac_prev
=cache_file
;;
755 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
756 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
757 cache_file
=$ac_optarg ;;
760 cache_file
=config.cache
;;
762 -datadir |
--datadir |
--datadi |
--datad)
764 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
765 datadir
=$ac_optarg ;;
767 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
768 |
--dataroo |
--dataro |
--datar)
769 ac_prev
=datarootdir
;;
770 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
771 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
772 datarootdir
=$ac_optarg ;;
774 -disable-* |
--disable-*)
775 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
776 # Reject names that are not valid shell variable names.
777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
778 as_fn_error $?
"invalid feature name: $ac_useropt"
779 ac_useropt_orig
=$ac_useropt
780 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
781 case $ac_user_opts in
785 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
786 ac_unrecognized_sep
=', ';;
788 eval enable_
$ac_useropt=no
;;
790 -docdir |
--docdir |
--docdi |
--doc |
--do)
792 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
795 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
797 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
800 -enable-* |
--enable-*)
801 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
804 as_fn_error $?
"invalid feature name: $ac_useropt"
805 ac_useropt_orig
=$ac_useropt
806 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
807 case $ac_user_opts in
811 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
812 ac_unrecognized_sep
=', ';;
814 eval enable_
$ac_useropt=\
$ac_optarg ;;
816 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
817 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
818 |
--exec |
--exe |
--ex)
819 ac_prev
=exec_prefix
;;
820 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
821 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
822 |
--exec=* |
--exe=* |
--ex=*)
823 exec_prefix
=$ac_optarg ;;
825 -gas |
--gas |
--ga |
--g)
826 # Obsolete; use --with-gas.
829 -help |
--help |
--hel |
--he |
-h)
831 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
832 ac_init_help
=recursive
;;
833 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
834 ac_init_help
=short
;;
836 -host |
--host |
--hos |
--ho)
837 ac_prev
=host_alias
;;
838 -host=* |
--host=* |
--hos=* |
--ho=*)
839 host_alias
=$ac_optarg ;;
841 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
843 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
845 htmldir
=$ac_optarg ;;
847 -includedir |
--includedir |
--includedi |
--included |
--include \
848 |
--includ |
--inclu |
--incl |
--inc)
849 ac_prev
=includedir
;;
850 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
851 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
852 includedir
=$ac_optarg ;;
854 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
856 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
857 infodir
=$ac_optarg ;;
859 -libdir |
--libdir |
--libdi |
--libd)
861 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
864 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
865 |
--libexe |
--libex |
--libe)
866 ac_prev
=libexecdir
;;
867 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
868 |
--libexe=* |
--libex=* |
--libe=*)
869 libexecdir
=$ac_optarg ;;
871 -localedir |
--localedir |
--localedi |
--localed |
--locale)
873 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
874 localedir
=$ac_optarg ;;
876 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
877 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
878 ac_prev
=localstatedir
;;
879 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
880 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
881 localstatedir
=$ac_optarg ;;
883 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
885 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
889 # Obsolete; use --without-fp.
892 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
893 |
--no-cr |
--no-c |
-n)
896 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
897 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
900 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
901 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
902 |
--oldin |
--oldi |
--old |
--ol |
--o)
903 ac_prev
=oldincludedir
;;
904 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
905 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
906 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
907 oldincludedir
=$ac_optarg ;;
909 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
911 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
914 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
915 |
--program-pre |
--program-pr |
--program-p)
916 ac_prev
=program_prefix
;;
917 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
918 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
919 program_prefix
=$ac_optarg ;;
921 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
922 |
--program-suf |
--program-su |
--program-s)
923 ac_prev
=program_suffix
;;
924 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
925 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
926 program_suffix
=$ac_optarg ;;
928 -program-transform-name |
--program-transform-name \
929 |
--program-transform-nam |
--program-transform-na \
930 |
--program-transform-n |
--program-transform- \
931 |
--program-transform |
--program-transfor \
932 |
--program-transfo |
--program-transf \
933 |
--program-trans |
--program-tran \
934 |
--progr-tra |
--program-tr |
--program-t)
935 ac_prev
=program_transform_name
;;
936 -program-transform-name=* |
--program-transform-name=* \
937 |
--program-transform-nam=* |
--program-transform-na=* \
938 |
--program-transform-n=* |
--program-transform-=* \
939 |
--program-transform=* |
--program-transfor=* \
940 |
--program-transfo=* |
--program-transf=* \
941 |
--program-trans=* |
--program-tran=* \
942 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
943 program_transform_name
=$ac_optarg ;;
945 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
947 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
950 -psdir |
--psdir |
--psdi |
--psd |
--ps)
952 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
955 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
956 |
-silent |
--silent |
--silen |
--sile |
--sil)
959 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
961 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
963 sbindir
=$ac_optarg ;;
965 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
966 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
967 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
969 ac_prev
=sharedstatedir
;;
970 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
971 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
972 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
974 sharedstatedir
=$ac_optarg ;;
976 -site |
--site |
--sit)
978 -site=* |
--site=* |
--sit=*)
981 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
983 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
986 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
987 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
988 ac_prev
=sysconfdir
;;
989 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
990 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
991 sysconfdir
=$ac_optarg ;;
993 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
994 ac_prev
=target_alias
;;
995 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
996 target_alias
=$ac_optarg ;;
998 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1001 -version |
--version |
--versio |
--versi |
--vers |
-V)
1002 ac_init_version
=: ;;
1005 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1008 as_fn_error $?
"invalid package name: $ac_useropt"
1009 ac_useropt_orig
=$ac_useropt
1010 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1015 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1016 ac_unrecognized_sep
=', ';;
1018 eval with_
$ac_useropt=\
$ac_optarg ;;
1020 -without-* |
--without-*)
1021 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1024 as_fn_error $?
"invalid package name: $ac_useropt"
1025 ac_useropt_orig
=$ac_useropt
1026 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1031 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1032 ac_unrecognized_sep
=', ';;
1034 eval with_
$ac_useropt=no
;;
1037 # Obsolete; use --with-x.
1040 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1041 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1042 ac_prev
=x_includes
;;
1043 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1044 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1045 x_includes
=$ac_optarg ;;
1047 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1048 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1049 ac_prev
=x_libraries
;;
1050 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1051 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1052 x_libraries
=$ac_optarg ;;
1054 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1055 Try \`$0 --help' for more information"
1059 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 case $ac_envvar in #(
1062 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1063 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1065 eval $ac_envvar=\
$ac_optarg
1066 export $ac_envvar ;;
1069 # FIXME: should be removed in autoconf 3.0.
1070 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1071 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1073 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1079 if test -n "$ac_prev"; then
1080 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1081 as_fn_error $?
"missing argument to $ac_option"
1084 if test -n "$ac_unrecognized_opts"; then
1085 case $enable_option_checking in
1087 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1088 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1092 # Check all directory arguments for consistency.
1093 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1094 datadir sysconfdir sharedstatedir localstatedir includedir \
1095 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1096 libdir localedir mandir
1098 eval ac_val
=\$
$ac_var
1099 # Remove trailing slashes.
1102 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1103 eval $ac_var=\
$ac_val;;
1105 # Be sure to have absolute directory names.
1107 [\\/$
]* | ?
:[\\/]* ) continue;;
1108 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1110 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1113 # There might be people who depend on the old broken behavior: `$host'
1114 # used to hold the argument of --host etc.
1115 # FIXME: To remove some day.
1118 target
=$target_alias
1120 # FIXME: To remove some day.
1121 if test "x$host_alias" != x
; then
1122 if test "x$build_alias" = x
; then
1123 cross_compiling
=maybe
1124 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1125 If a cross compiler is detected then cross compile mode will be used" >&2
1126 elif test "x$build_alias" != "x$host_alias"; then
1132 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1134 test "$silent" = yes && exec 6>/dev
/null
1137 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1138 ac_ls_di
=`ls -di .` &&
1139 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1140 as_fn_error $?
"working directory cannot be determined"
1141 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142 as_fn_error $?
"pwd does not report name of working directory"
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted
=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir
=`$as_dirname -- "$as_myself" ||
1150 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$as_myself" : 'X\(//\)[^/]' \| \
1152 X"$as_myself" : 'X\(//\)$' \| \
1153 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1154 $as_echo X"$as_myself" |
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1177 ac_srcdir_defaulted
=no
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1181 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1183 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1187 # When building in place, set srcdir=.
1188 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191 # Remove unnecessary trailing slashes from srcdir.
1192 # Double slashes in file names in object file debugging info
1193 # mess up M-x gdb in Emacs.
1195 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 for ac_var
in $ac_precious_vars; do
1198 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1199 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1200 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1201 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1205 # Report the --help message.
1207 if test "$ac_init_help" = "long"; then
1208 # Omit some internal or obsolete options to make the list less imposing.
1209 # This message is too long to be a string in the A/UX 3.1 sh.
1211 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1213 Usage: $0 [OPTION]... [VAR=VALUE]...
1215 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216 VAR=VALUE. See below for descriptions of some of the useful variables.
1218 Defaults for the options are specified in brackets.
1221 -h, --help display this help and exit
1222 --help=short display options specific to this package
1223 --help=recursive display the short help of all the included packages
1224 -V, --version display version information and exit
1225 -q, --quiet, --silent do not print \`checking ...' messages
1226 --cache-file=FILE cache test results in FILE [disabled]
1227 -C, --config-cache alias for \`--cache-file=config.cache'
1228 -n, --no-create do not create output files
1229 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1231 Installation directories:
1232 --prefix=PREFIX install architecture-independent files in PREFIX
1233 [$ac_default_prefix]
1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1237 By default, \`make install' will install all the files in
1238 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1239 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240 for instance \`--prefix=\$HOME'.
1242 For better control, use the options below.
1244 Fine tuning of the installation directories:
1245 --bindir=DIR user executables [EPREFIX/bin]
1246 --sbindir=DIR system admin executables [EPREFIX/sbin]
1247 --libexecdir=DIR program executables [EPREFIX/libexec]
1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1251 --libdir=DIR object code libraries [EPREFIX/lib]
1252 --includedir=DIR C header files [PREFIX/include]
1253 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1256 --infodir=DIR info documentation [DATAROOTDIR/info]
1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1258 --mandir=DIR man documentation [DATAROOTDIR/man]
1259 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1260 --htmldir=DIR html documentation [DOCDIR]
1261 --dvidir=DIR dvi documentation [DOCDIR]
1262 --pdfdir=DIR pdf documentation [DOCDIR]
1263 --psdir=DIR ps documentation [DOCDIR]
1269 --build=BUILD configure
for building on BUILD
[guessed
]
1270 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1274 if test -n "$ac_init_help"; then
1275 case $ac_init_help in
1276 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1281 --disable-option-checking ignore unrecognized
--enable/--with options
1282 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1283 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1284 --enable-stow Enable stow-based
install
1285 --enable-optional-subprojects
1286 Enable all optional subprojects
1287 --disable-fpu Disable floating-point
1288 --disable-64bit Disable
64-bit mode
1289 --enable-commitlog Enable commit log generation
1290 --enable-histogram Enable PC histogram generation
1293 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1294 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1295 --with-fesvr path to your fesvr installation
if not
in a standard
1298 Some influential environment variables
:
1299 CC C compiler
command
1300 CFLAGS C compiler flags
1301 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1302 nonstandard directory
<lib dir
>
1303 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1304 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1305 you have headers
in a nonstandard directory
<include dir
>
1306 CXX C
++ compiler
command
1307 CXXFLAGS C
++ compiler flags
1308 STOW_ROOT Root
for non-native stow-based installs
1309 STOW_PREFIX Prefix
for stow-based installs
1312 Use these variables to override the choices made by
`configure' or to help
1313 it to find libraries and programs with nonstandard names/locations.
1315 Report bugs to <Andrew Waterman>.
1320 if test "$ac_init_help" = "recursive"; then
1321 # If there are subdirs, report their specific --help.
1322 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1323 test -d "$ac_dir" ||
1324 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1332 # A ".." for each directory in $ac_dir_suffix.
1333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1334 case $ac_top_builddir_sub in
1335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1339 ac_abs_top_builddir=$ac_pwd
1340 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1341 # for backward compatibility:
1342 ac_top_builddir=$ac_top_build_prefix
1345 .) # We are building in place.
1347 ac_top_srcdir=$ac_top_builddir_sub
1348 ac_abs_top_srcdir=$ac_pwd ;;
1349 [\\/]* | ?:[\\/]* ) # Absolute name.
1350 ac_srcdir=$srcdir$ac_dir_suffix;
1351 ac_top_srcdir=$srcdir
1352 ac_abs_top_srcdir=$srcdir ;;
1354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1355 ac_top_srcdir=$ac_top_build_prefix$srcdir
1356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1360 cd "$ac_dir" || { ac_status=$?; continue; }
1361 # Check for guested configure.
1362 if test -f "$ac_srcdir/configure.gnu"; then
1364 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1365 elif test -f "$ac_srcdir/configure"; then
1367 $SHELL "$ac_srcdir/configure" --help=recursive
1369 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1371 cd "$ac_pwd" || { ac_status=$?; break; }
1375 test -n "$ac_init_help" && exit $ac_status
1376 if $ac_init_version; then
1378 RISC-V ISA Simulator configure ?
1379 generated by GNU Autoconf 2.68
1381 Copyright (C) 2010 Free Software Foundation, Inc.
1382 This configure script is free software; the Free Software Foundation
1383 gives unlimited permission to copy, distribute and modify it.
1388 ## ------------------------ ##
1389 ## Autoconf initialization. ##
1390 ## ------------------------ ##
1392 # ac_fn_c_try_compile LINENO
1393 # --------------------------
1394 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1395 ac_fn_c_try_compile ()
1397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1398 rm -f conftest.$ac_objext
1399 if { { ac_try="$ac_compile"
1401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1402 *) ac_try_echo
=$ac_try;;
1404 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1405 $as_echo "$ac_try_echo"; } >&5
1406 (eval "$ac_compile") 2>conftest.err
1408 if test -s conftest.err
; then
1409 grep -v '^ *+' conftest.err
>conftest.er1
1410 cat conftest.er1
>&5
1411 mv -f conftest.er1 conftest.err
1413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1414 test $ac_status = 0; } && {
1415 test -z "$ac_c_werror_flag" ||
1416 test ! -s conftest.err
1417 } && test -s conftest.
$ac_objext; then :
1420 $as_echo "$as_me: failed program was:" >&5
1421 sed 's/^/| /' conftest.
$ac_ext >&5
1425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1426 as_fn_set_status
$ac_retval
1428 } # ac_fn_c_try_compile
1430 # ac_fn_cxx_try_compile LINENO
1431 # ----------------------------
1432 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1433 ac_fn_cxx_try_compile
()
1435 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1436 rm -f conftest.
$ac_objext
1437 if { { ac_try
="$ac_compile"
1439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443 $as_echo "$ac_try_echo"; } >&5
1444 (eval "$ac_compile") 2>conftest.err
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } && {
1453 test -z "$ac_cxx_werror_flag" ||
1454 test ! -s conftest.err
1455 } && test -s conftest.$ac_objext; then :
1458 $as_echo "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1466 } # ac_fn_cxx_try_compile
1468 # ac_fn_c_try_cpp LINENO
1469 # ----------------------
1470 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_cpp conftest.$ac_ext"
1476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1477 *) ac_try_echo
=$ac_try;;
1479 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1483 if test -s conftest.err
; then
1484 grep -v '^ *+' conftest.err
>conftest.er1
1485 cat conftest.er1
>&5
1486 mv -f conftest.er1 conftest.err
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } > conftest.i
&& {
1490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.
$ac_ext >&5
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status
$ac_retval
1505 # ac_fn_c_try_run LINENO
1506 # ----------------------
1507 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1508 # that executables *can* be run.
1511 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1512 if { { ac_try
="$ac_link"
1514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_link") 2>&5
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1523 { { case "(($ac_try" in
1524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1525 *) ac_try_echo
=$ac_try;;
1527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_try") 2>&5
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; }; }; then :
1535 $as_echo "$as_me: program exited with status $ac_status" >&5
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.
$ac_ext >&5
1539 ac_retval
=$ac_status
1541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status
$ac_retval
1547 # ac_fn_c_try_link LINENO
1548 # -----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded.
1552 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1553 rm -f conftest.
$ac_objext conftest
$ac_exeext
1554 if { { ac_try
="$ac_link"
1556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>conftest.err
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest$ac_exeext && {
1573 test "$cross_compiling" = yes ||
1574 $as_test_x conftest$ac_exeext
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1585 # interfere with the next link command; also delete a directory that is
1586 # left behind by Apple's compiler. We do this before executing the actions.
1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_link
1592 cat >config.log <<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by RISC-V ISA Simulator $as_me ?, which was
1597 generated by GNU Autoconf 2.68. Invocation command line was
1609 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1610 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1611 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1612 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1613 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1615 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1616 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1618 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1619 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1620 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1621 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1622 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1623 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1624 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir=.
1633 $as_echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next=false
1663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1668 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1673 as_fn_append ac_configure_args1 " '$ac_arg'"
1674 if test $ac_must_keep_next = true; then
1675 ac_must_keep_next=false # Got value, back to normal.
1678 *=* | --config-cache | -C | -disable-* | --disable-* \
1679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1681 | -with-* | --with-* | -without-* | --without-* | --x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next=true ;;
1689 as_fn_append ac_configure_args " '$ac_arg'"
1694 { ac_configure_args0=; unset ac_configure_args0;}
1695 { ac_configure_args1=; unset ac_configure_args1;}
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1707 $as_echo "## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##"
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1714 eval ac_val=\$$ac_var
1718 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1722 _ | IFS | as_nl) ;; #(
1723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1724 *) { eval $ac_var=; unset $ac_var;} ;;
1729 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743 $as_echo "## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##"
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 $as_echo "$ac_var='\''$ac_val'\''"
1757 if test -n "$ac_subst_files"; then
1758 $as_echo "## ------------------- ##
1759 ## File substitutions. ##
1760 ## ------------------- ##"
1762 for ac_var in $ac_subst_files
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 $as_echo "$ac_var='\''$ac_val'\''"
1773 if test -s confdefs.h; then
1774 $as_echo "## ----------- ##
1781 test "$ac_signal" != 0 &&
1782 $as_echo "$as_me: caught signal $ac_signal"
1783 $as_echo "$as_me: exit $exit_status"
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1797 $as_echo "/* confdefs.h */" > confdefs.h
1799 # Predefined preprocessor variables.
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_URL "$PACKAGE_URL"
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer an explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 # We do not want a PATH search for config.site.
1832 case $CONFIG_SITE in #((
1833 -*) ac_site_file1=./$CONFIG_SITE;;
1834 */*) ac_site_file1=$CONFIG_SITE;;
1835 *) ac_site_file1=./$CONFIG_SITE;;
1837 elif test "x$prefix" != xNONE; then
1838 ac_site_file1=$prefix/share/config.site
1839 ac_site_file2=$prefix/etc/config.site
1841 ac_site_file1=$ac_default_prefix/share/config.site
1842 ac_site_file2=$ac_default_prefix/etc/config.site
1844 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1846 test "x$ac_site_file" = xNONE && continue
1847 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1849 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1850 sed 's/^/| /' "$ac_site_file" >&5
1852 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1854 as_fn_error $? "failed to load site
script $ac_site_file
1855 See \
`config.log' for more details" "$LINENO" 5; }
1859 if test -r "$cache_file"; then
1860 # Some versions of bash will fail to source /dev/null (special files
1861 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1862 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1864 $as_echo "$as_me: loading cache $cache_file" >&6;}
1866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867 *) . "./$cache_file";;
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1872 $as_echo "$as_me: creating cache $cache_file" >&6;}
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted=false
1879 for ac_var in $ac_precious_vars; do
1880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881 eval ac_new_set=\$ac_env_${ac_var}_set
1882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883 eval ac_new_val=\$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1887 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted=: ;;
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1891 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 # differences in whitespace do not lead to failure.
1897 ac_old_val_w=`echo x
$ac_old_val`
1898 ac_new_val_w=`echo x
$ac_new_val`
1899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1902 ac_cache_corrupted=:
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1906 eval $ac_var=\$ac_old_val
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1909 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1918 *) ac_arg=$ac_var=$ac_new_val ;;
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1926 if $ac_cache_corrupted; then
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1930 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1933 ## -------------------- ##
1934 ## Main body of script. ##
1935 ## -------------------- ##
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 for ac_dir in scripts "$srcdir"/scripts; do
1947 if test -f "$ac_dir/install-sh"; then
1949 ac_install_sh="$ac_aux_dir/install-sh -c"
1951 elif test -f "$ac_dir/install.sh"; then
1953 ac_install_sh="$ac_aux_dir/install.sh -c"
1955 elif test -f "$ac_dir/shtool"; then
1957 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 if test -z "$ac_aux_dir"; then
1962 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1974 # Make sure we can run config.sub.
1975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1976 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1979 $as_echo_n "checking build system type... " >&6; }
1980 if ${ac_cv_build+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 ac_build_alias=$build_alias
1984 test "x$ac_build_alias" = x &&
1985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1986 test "x$ac_build_alias" = x &&
1987 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1993 $as_echo "$ac_cv_build" >&6; }
1994 case $ac_cv_build in
1996 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1999 ac_save_IFS=$IFS; IFS='-'
2005 # Remember, the first character of IFS is used to create $*,
2006 # except with old shells:
2009 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2013 $as_echo_n "checking host system type... " >&6; }
2014 if ${ac_cv_host+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 if test "x$host_alias" = x; then
2018 ac_cv_host=$ac_cv_build
2020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2021 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2026 $as_echo "$ac_cv_host" >&6; }
2029 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2032 ac_save_IFS=$IFS; IFS='-'
2038 # Remember, the first character of IFS is used to create $*,
2039 # except with old shells:
2042 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2046 #-------------------------------------------------------------------------
2047 # Checks for programs
2048 #-------------------------------------------------------------------------
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2059 $as_echo_n "checking for $ac_word... " >&6; }
2060 if ${ac_cv_prog_CC+:} false; then :
2061 $as_echo_n "(cached) " >&6
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2073 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 if test -n "$CC"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2086 $as_echo "$CC" >&6; }
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2089 $as_echo "no" >&6; }
2094 if test -z "$ac_cv_prog_CC"; then
2096 # Extract the first word of "gcc", so it can be a program name with args.
2097 set dummy gcc; ac_word=$2
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2099 $as_echo_n "checking for $ac_word... " >&6; }
2100 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2101 $as_echo_n "(cached) " >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_ac_ct_CC="gcc"
2114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2126 $as_echo "$ac_ct_CC" >&6; }
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129 $as_echo "no" >&6; }
2132 if test "x$ac_ct_CC" = x; then
2135 case $cross_compiling:$ac_tool_warned in
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2139 ac_tool_warned=yes ;;
2147 if test -z "$CC"; then
2148 if test -n "$ac_tool_prefix"; then
2149 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2150 set dummy ${ac_tool_prefix}cc; ac_word=$2
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if ${ac_cv_prog_CC+:} false; then :
2154 $as_echo_n "(cached) " >&6
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 ac_cv_prog_CC="${ac_tool_prefix}cc"
2167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 if test -n "$CC"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2179 $as_echo "$CC" >&6; }
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2182 $as_echo "no" >&6; }
2188 if test -z "$CC"; then
2189 # Extract the first word of "cc", so it can be a program name with args.
2190 set dummy cc; ac_word=$2
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if ${ac_cv_prog_CC+:} false; then :
2194 $as_echo_n "(cached) " >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2208 ac_prog_rejected=yes
2212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test $ac_prog_rejected = yes; then
2220 # We found a bogon in the path, so make sure we never use it.
2221 set dummy $ac_cv_prog_CC
2223 if test $# != 0; then
2224 # We chose a different compiler from the bogus one.
2225 # However, it has the same basename, so the bogon will be chosen
2226 # first if we set CC to just the basename; use the full file name.
2228 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2234 if test -n "$CC"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2236 $as_echo "$CC" >&6; }
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2239 $as_echo "no" >&6; }
2244 if test -z "$CC"; then
2245 if test -n "$ac_tool_prefix"; then
2246 for ac_prog in cl.exe
2248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2251 $as_echo_n "checking for $ac_word... " >&6; }
2252 if ${ac_cv_prog_CC+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 if test -n "$CC"; then
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2278 $as_echo "$CC" >&6; }
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2281 $as_echo "no" >&6; }
2285 test -n "$CC" && break
2288 if test -z "$CC"; then
2290 for ac_prog in cl.exe
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2295 $as_echo_n "checking for $ac_word... " >&6; }
2296 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2297 $as_echo_n "(cached) " >&6
2299 if test -n "$ac_ct_CC"; then
2300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2309 ac_cv_prog_ac_ct_CC="$ac_prog"
2310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2320 if test -n "$ac_ct_CC"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2322 $as_echo "$ac_ct_CC" >&6; }
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2325 $as_echo "no" >&6; }
2329 test -n "$ac_ct_CC" && break
2332 if test "x$ac_ct_CC" = x; then
2335 case $cross_compiling:$ac_tool_warned in
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2339 ac_tool_warned=yes ;;
2348 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2351 See \
`config.log' for more details" "$LINENO" 5; }
2353 # Provide some information about the compiler.
2354 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2357 for ac_option in --version -v -V -qversion; do
2358 { { ac_try="$ac_compiler $ac_option >&5"
2360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2361 *) ac_try_echo
=$ac_try;;
2363 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2367 if test -s conftest.err
; then
2369 ... rest of stderr output deleted ...
2370 10q' conftest.err
>conftest.er1
2371 cat conftest.er1
>&5
2373 rm -f conftest.er1 conftest.err
2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2375 test $ac_status = 0; }
2378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2389 ac_clean_files_save
=$ac_clean_files
2390 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2391 # Try to create an executable without -o first, disregard a.out.
2392 # It will help us diagnose broken compilers, and finding out an intuition
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2395 $as_echo_n "checking whether the C compiler works... " >&6; }
2396 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 # The possible output files:
2399 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2402 for ac_file
in $ac_files
2405 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2406 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2411 if { { ac_try
="$ac_link_default"
2413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link_default") 2>&5
2420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421 test $ac_status = 0; }; then :
2422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2423 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2425 # so that the user can short-circuit this test for compilers unknown to
2427 for ac_file in $ac_files ''
2429 test -f "$ac_file" || continue
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2434 # We found the default executable, but exeext='' is most
2438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442 # We set ac_cv_exeext here because the later test for it is not
2443 # safe: cross compilers may not add the suffix if given an `-o'
2444 # argument, so we may need to know it at that point already.
2445 # Even if this section looks crufty: it has the advantage of
2452 test "$ac_cv_exeext" = no && ac_cv_exeext=
2457 if test -z "$ac_file"; then :
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2460 $as_echo "$as_me: failed program was:" >&5
2461 sed 's
/^
/|
/' conftest.$ac_ext >&5
2463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2465 as_fn_error 77 "C compiler cannot create executables
2466 See \`config.log
' for more details" "$LINENO" 5; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2469 $as_echo "yes" >&6; }
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2472 $as_echo_n "checking for C compiler default output file name... " >&6; }
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2474 $as_echo "$ac_file" >&6; }
2475 ac_exeext=$ac_cv_exeext
2477 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2480 $as_echo_n "checking for suffix of executables... " >&6; }
2481 if { { ac_try="$ac_link"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_link") 2>&5
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491 test $ac_status = 0; }; then :
2492 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2496 for ac_file
in conftest.exe conftest conftest.
*; do
2497 test -f "$ac_file" ||
continue
2499 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2500 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details" "$LINENO" 5; }
2511 rm -f conftest conftest
$ac_cv_exeext
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2513 $as_echo "$ac_cv_exeext" >&6; }
2515 rm -f conftest.
$ac_ext
2516 EXEEXT
=$ac_cv_exeext
2518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2524 FILE *f = fopen ("conftest.out", "w");
2525 return ferror (f) || fclose (f) != 0;
2531 ac_clean_files
="$ac_clean_files conftest.out"
2532 # Check that the compiler produces executables we can run. If not, either
2533 # the compiler is broken, or we cross compile.
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2535 $as_echo_n "checking whether we are cross compiling... " >&6; }
2536 if test "$cross_compiling" != yes; then
2537 { { ac_try
="$ac_link"
2539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_link") 2>&5
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2547 test $ac_status = 0; }
2548 if { ac_try='./conftest$ac_cv_exeext'
2549 { { case "(($ac_try" in
2550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2551 *) ac_try_echo
=$ac_try;;
2553 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554 $as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_try") 2>&5
2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558 test $ac_status = 0; }; }; then
2561 if test "$cross_compiling" = maybe
; then
2564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error $?
"cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details" "$LINENO" 5; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2573 $as_echo "$cross_compiling" >&6; }
2575 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2576 ac_clean_files
=$ac_clean_files_save
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2578 $as_echo_n "checking for suffix of object files... " >&6; }
2579 if ${ac_cv_objext+:} false
; then :
2580 $as_echo_n "(cached) " >&6
2582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2593 rm -f conftest.o conftest.obj
2594 if { { ac_try
="$ac_compile"
2596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2600 $as_echo "$ac_try_echo"; } >&5
2601 (eval "$ac_compile") 2>&5
2603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604 test $ac_status = 0; }; then :
2605 for ac_file in conftest.o conftest.obj conftest.*; do
2606 test -f "$ac_file" || continue;
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2614 $as_echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2620 See \
`config.log' for more details" "$LINENO" 5; }
2622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2625 $as_echo "$ac_cv_objext" >&6; }
2626 OBJEXT=$ac_cv_objext
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2629 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2630 if ${ac_cv_c_compiler_gnu+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2647 if ac_fn_c_try_compile "$LINENO"; then :
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2658 if test $ac_compiler_gnu = yes; then
2663 ac_test_CFLAGS=${CFLAGS+set}
2664 ac_save_CFLAGS=$CFLAGS
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2667 if ${ac_cv_prog_cc_g+:} false; then :
2668 $as_echo_n "(cached) " >&6
2670 ac_save_c_werror_flag=$ac_c_werror_flag
2671 ac_c_werror_flag=yes
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2685 if ac_fn_c_try_compile "$LINENO"; then :
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2700 if ac_fn_c_try_compile "$LINENO"; then :
2703 ac_c_werror_flag=$ac_save_c_werror_flag
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_c_werror_flag=$ac_save_c_werror_flag
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2727 $as_echo "$ac_cv_prog_cc_g" >&6; }
2728 if test "$ac_test_CFLAGS" = set; then
2729 CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731 if test "$GCC" = yes; then
2737 if test "$GCC" = yes; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2745 if ${ac_cv_prog_cc_c89+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_cv_prog_cc_c89=no
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2754 #include <sys/types.h>
2755 #include <sys/stat.h>
2756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2757 struct buf { int x; };
2758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2759 static char *e (p, i)
2765 static char *f (char * (*g) (char **, int), char **p, ...)
2770 s = g (p, va_arg (v,int));
2775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2776 function prototypes and stuff, but not '\xHH' hex character constants.
2777 These don't provoke an error unfortunately, instead are silently treated
2778 as 'x'. The following induces an error, until -std is added to get
2779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2780 array size at least. It's necessary to write '\x00'==0 to get something
2781 that's true only with -std. */
2782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2785 inside strings and character constants. */
2787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2789 int test (int i, double x);
2790 struct s1 {int (*f) (int a);};
2791 struct s2 {int (*f) (double a);};
2792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2806 CC="$ac_save_CC $ac_arg"
2807 if ac_fn_c_try_compile "$LINENO"; then :
2808 ac_cv_prog_cc_c89=$ac_arg
2810 rm -f core conftest.err conftest.$ac_objext
2811 test "x$ac_cv_prog_cc_c89" != "xno" && break
2813 rm -f conftest.$ac_ext
2818 case "x$ac_cv_prog_cc_c89" in
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2821 $as_echo "none needed" >&6; } ;;
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2824 $as_echo "unsupported" >&6; } ;;
2826 CC="$CC $ac_cv_prog_cc_c89"
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2830 if test "x$ac_cv_prog_cc_c89" != xno; then :
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 ac_cpp='$CXXCPP $CPPFLAGS'
2842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2845 if test -z "$CXX"; then
2846 if test -n "$CCC"; then
2849 if test -n "$ac_tool_prefix"; then
2850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CXX+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CXX"; then
2860 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CXX"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2882 $as_echo "$CXX" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2889 test -n "$CXX" && break
2892 if test -z "$CXX"; then
2894 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2901 $as_echo_n "(cached) " >&6
2903 if test -n "$ac_ct_CXX"; then
2904 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_CXX="$ac_prog"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2924 if test -n "$ac_ct_CXX"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2926 $as_echo "$ac_ct_CXX" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2933 test -n "$ac_ct_CXX" && break
2936 if test "x$ac_ct_CXX" = x; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2951 # Provide some information about the compiler.
2952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2955 for ac_option in --version -v -V -qversion; do
2956 { { ac_try="$ac_compiler $ac_option >&5"
2958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2959 *) ac_try_echo
=$ac_try;;
2961 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2965 if test -s conftest.err
; then
2967 ... rest of stderr output deleted ...
2968 10q' conftest.err
>conftest.er1
2969 cat conftest.er1
>&5
2971 rm -f conftest.er1 conftest.err
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2977 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2978 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
2979 $as_echo_n "(cached) " >&6
2981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2995 if ac_fn_cxx_try_compile
"$LINENO"; then :
3000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3001 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3005 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3006 if test $ac_compiler_gnu = yes; then
3011 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3012 ac_save_CXXFLAGS
=$CXXFLAGS
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3014 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3015 if ${ac_cv_prog_cxx_g+:} false
; then :
3016 $as_echo_n "(cached) " >&6
3018 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3019 ac_cxx_werror_flag
=yes
3022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3033 if ac_fn_cxx_try_compile
"$LINENO"; then :
3034 ac_cv_prog_cxx_g
=yes
3037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3048 if ac_fn_cxx_try_compile
"$LINENO"; then :
3051 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3064 if ac_fn_cxx_try_compile
"$LINENO"; then :
3065 ac_cv_prog_cxx_g
=yes
3067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3072 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3075 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3076 if test "$ac_test_CXXFLAGS" = set; then
3077 CXXFLAGS
=$ac_save_CXXFLAGS
3078 elif test $ac_cv_prog_cxx_g = yes; then
3079 if test "$GXX" = yes; then
3085 if test "$GXX" = yes; then
3092 ac_cpp
='$CPP $CPPFLAGS'
3093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3099 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_AR+:} false
; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$AR"; then
3106 ac_cv_prog_AR
="$AR" # Let the user override the test.
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_exec_ext
in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$AR"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3128 $as_echo "$AR" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3136 if test -z "$ac_cv_prog_AR"; then
3138 # Extract the first word of "ar", so it can be a program name with args.
3139 set dummy
ar; ac_word
=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$ac_ct_AR"; then
3146 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_ac_ct_AR
="ar"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3166 if test -n "$ac_ct_AR"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3168 $as_echo "$ac_ct_AR" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3174 if test "x$ac_ct_AR" = x
; then
3177 case $cross_compiling:$ac_tool_warned in
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned
=yes ;;
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3191 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_RANLIB+:} false
; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$RANLIB"; then
3198 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir
=.
3205 for ac_exec_ext
in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 RANLIB
=$ac_cv_prog_RANLIB
3218 if test -n "$RANLIB"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3220 $as_echo "$RANLIB" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$ac_cv_prog_RANLIB"; then
3229 ac_ct_RANLIB
=$RANLIB
3230 # Extract the first word of "ranlib", so it can be a program name with args.
3231 set dummy ranlib
; ac_word
=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$ac_ct_RANLIB"; then
3238 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3258 if test -n "$ac_ct_RANLIB"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3260 $as_echo "$ac_ct_RANLIB" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3266 if test "x$ac_ct_RANLIB" = x
; then
3269 case $cross_compiling:$ac_tool_warned in
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned
=yes ;;
3275 RANLIB
=$ac_ct_RANLIB
3278 RANLIB
="$ac_cv_prog_RANLIB"
3282 #-------------------------------------------------------------------------
3283 # MCPPBS specific program checks
3284 #-------------------------------------------------------------------------
3285 # These macros check to see if we can do a stow-based install and also
3286 # check for an isa simulator suitable for running the unit test programs
3289 # Find a good install program. We prefer a C program (faster),
3290 # so one script is as good as another. But avoid the broken or
3291 # incompatible versions:
3292 # SysV /etc/install, /usr/sbin/install
3293 # SunOS /usr/etc/install
3294 # IRIX /sbin/install
3296 # AmigaOS /C/install, which installs bootblocks on floppy discs
3297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3300 # OS/2's system install, which has a completely different semantic
3301 # ./install, which can be erroneously created by make from ./install.sh.
3302 # Reject install programs that cannot install multiple files.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3304 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3305 if test -z "$INSTALL"; then
3306 if ${ac_cv_path_install+:} false
; then :
3307 $as_echo_n "(cached) " >&6
3309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir
=.
3314 # Account for people who put trailing slashes in PATH elements.
3315 case $as_dir/ in #((
3316 .
/ | .
// |
/[cC
]/* | \
3317 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3318 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3321 # OSF1 and SCO ODT 3.0 have their own names for install.
3322 # Don't use installbsd from OSF since it installs stuff as root
3324 for ac_prog
in ginstall scoinst
install; do
3325 for ac_exec_ext
in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3327 if test $ac_prog = install &&
3328 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3329 # AIX install. It has an incompatible calling convention.
3331 elif test $ac_prog = install &&
3332 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3333 # program-specific install script used by HP pwplus--don't use.
3336 rm -rf conftest.one conftest.two conftest.dir
3337 echo one
> conftest.one
3338 echo two
> conftest.two
3340 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3341 test -s conftest.one
&& test -s conftest.two
&&
3342 test -s conftest.dir
/conftest.one
&&
3343 test -s conftest.dir
/conftest.two
3345 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3358 rm -rf conftest.one conftest.two conftest.dir
3361 if test "${ac_cv_path_install+set}" = set; then
3362 INSTALL
=$ac_cv_path_install
3364 # As a last resort, use the slow shell script. Don't cache a
3365 # value for INSTALL within a source directory, because that will
3366 # break other packages using the cache if that directory is
3367 # removed, or if the value is a relative name.
3368 INSTALL
=$ac_install_sh
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3372 $as_echo "$INSTALL" >&6; }
3374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3375 # It thinks the first close brace ends the variable substitution.
3376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3380 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3384 # Configure command line option
3386 # Check whether --enable-stow was given.
3387 if test "${enable_stow+set}" = set; then :
3388 enableval
=$enable_stow; enable_stow
="yes"
3396 # Environment variables
3401 # Check for install script
3405 # Deterimine if native build and set prefix appropriately
3407 if test ${enable_stow} = "yes" ; then :
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy
$ac_prog; ac_word
=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_stow+:} false
; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$stow"; then
3419 ac_cv_prog_stow
="$stow" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_stow
="$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 stow
=$ac_cv_prog_stow
3439 if test -n "$stow"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
3441 $as_echo "$stow" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$stow" && break
3450 test -n "$stow" || stow
="no"
3452 if test ${stow} = "no" ; then :
3454 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
3458 # Check if native or non-native build
3460 if test "${build}" = "${host}" ; then :
3463 # build == host so this is a native build. Make sure --prefix not
3464 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
3466 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
3468 prefix
="${STOW_PREFIX}"
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
3470 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3472 $as_echo "$as_me: prefix=${prefix}" >&6;}
3480 # build != host so this is a non-native build. Make sure --prefix
3481 # not set and $STOW_ROOT is set, then set
3482 # prefix=$STOW_ROOT/${host_alias}.
3484 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
3486 prefix
="${STOW_ROOT}/${host_alias}"
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
3488 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
3490 $as_echo "$as_me: prefix=${prefix}" >&6;}
3502 if test "${build}" != "${host}" ; then :
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog
in isa-run run
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_RUN+:} false
; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$RUN"; then
3515 ac_cv_prog_RUN
="$RUN" # Let the user override the test.
3517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir
=.
3522 for ac_exec_ext
in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_RUN
="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 if test -n "$RUN"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUN" >&5
3537 $as_echo "$RUN" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$RUN" && break
3547 if test -z "$RUN"; then
3549 for ac_prog
in isa-run run
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy
$ac_prog; ac_word
=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_ac_ct_RUN+:} false
; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$ac_ct_RUN"; then
3559 ac_cv_prog_ac_ct_RUN
="$ac_ct_RUN" # Let the user override the test.
3561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir
=.
3566 for ac_exec_ext
in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_RUN
="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 ac_ct_RUN
=$ac_cv_prog_ac_ct_RUN
3579 if test -n "$ac_ct_RUN"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RUN" >&5
3581 $as_echo "$ac_ct_RUN" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$ac_ct_RUN" && break
3591 if test "x$ac_ct_RUN" = x
; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned
=yes ;;
3604 if test ${RUN} = "no" ; then :
3606 as_fn_error $?
"Cannot find simulator for target ${target_alias}" "$LINENO" 5
3619 #-------------------------------------------------------------------------
3620 # Checks for header files
3621 #-------------------------------------------------------------------------
3625 ac_cpp
='$CPP $CPPFLAGS'
3626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3635 if test -z "$CPP"; then
3636 if ${ac_cv_prog_CPP+:} false
; then :
3637 $as_echo_n "(cached) " >&6
3639 # Double quotes because CPP needs to be expanded
3640 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3643 for ac_c_preproc_warn_flag
in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3654 # include <limits.h>
3656 # include <assert.h>
3660 if ac_fn_c_try_cpp
"$LINENO"; then :
3663 # Broken: fails on valid input.
3666 rm -f conftest.err conftest.i conftest.
$ac_ext
3668 # OK, works on sane cases. Now check whether nonexistent headers
3669 # can be detected and how.
3670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672 #include <ac_nonexistent.h>
3674 if ac_fn_c_try_cpp
"$LINENO"; then :
3675 # Broken: success on invalid input.
3678 # Passes both tests.
3682 rm -f conftest.err conftest.i conftest.
$ac_ext
3685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3686 rm -f conftest.i conftest.err conftest.
$ac_ext
3687 if $ac_preproc_ok; then :
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3700 $as_echo "$CPP" >&6; }
3702 for ac_c_preproc_warn_flag
in '' yes
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3713 # include <limits.h>
3715 # include <assert.h>
3719 if ac_fn_c_try_cpp
"$LINENO"; then :
3722 # Broken: fails on valid input.
3725 rm -f conftest.err conftest.i conftest.
$ac_ext
3727 # OK, works on sane cases. Now check whether nonexistent headers
3728 # can be detected and how.
3729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3733 if ac_fn_c_try_cpp
"$LINENO"; then :
3734 # Broken: success on invalid input.
3737 # Passes both tests.
3741 rm -f conftest.err conftest.i conftest.
$ac_ext
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.i conftest.err conftest.
$ac_ext
3746 if $ac_preproc_ok; then :
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details" "$LINENO" 5; }
3756 ac_cpp
='$CPP $CPPFLAGS'
3757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3764 if ${ac_cv_path_GREP+:} false
; then :
3765 $as_echo_n "(cached) " >&6
3767 if test -z "$GREP"; then
3768 ac_path_GREP_found
=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3771 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3774 test -z "$as_dir" && as_dir
=.
3775 for ac_prog
in grep ggrep
; do
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3779 # Check for GNU ac_path_GREP and select it if it is found.
3780 # Check for GNU $ac_path_GREP
3781 case `"$ac_path_GREP" --version 2>&1` in
3783 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3786 $as_echo_n 0123456789 >"conftest.in"
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo 'GREP' >> "conftest.nl"
3793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3794 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3795 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_GREP
="$ac_path_GREP"
3799 ac_path_GREP_max
=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3804 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3807 $ac_path_GREP_found && break 3
3812 if test -z "$ac_cv_path_GREP"; then
3813 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3816 ac_cv_path_GREP
=$GREP
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3821 $as_echo "$ac_cv_path_GREP" >&6; }
3822 GREP
="$ac_cv_path_GREP"
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3826 $as_echo_n "checking for egrep... " >&6; }
3827 if ${ac_cv_path_EGREP+:} false
; then :
3828 $as_echo_n "(cached) " >&6
3830 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3831 then ac_cv_path_EGREP
="$GREP -E"
3833 if test -z "$EGREP"; then
3834 ac_path_EGREP_found
=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3837 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3840 test -z "$as_dir" && as_dir
=.
3841 for ac_prog
in egrep; do
3842 for ac_exec_ext
in '' $ac_executable_extensions; do
3843 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3849 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3852 $as_echo_n 0123456789 >"conftest.in"
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 $as_echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3860 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3861 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP
="$ac_path_EGREP"
3865 ac_path_EGREP_max
=$ac_count
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3870 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3873 $ac_path_EGREP_found && break 3
3878 if test -z "$ac_cv_path_EGREP"; then
3879 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3882 ac_cv_path_EGREP
=$EGREP
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3888 $as_echo "$ac_cv_path_EGREP" >&6; }
3889 EGREP
="$ac_cv_path_EGREP"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3893 $as_echo_n "checking for ANSI C header files... " >&6; }
3894 if ${ac_cv_header_stdc+:} false
; then :
3895 $as_echo_n "(cached) " >&6
3897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3912 if ac_fn_c_try_compile
"$LINENO"; then :
3913 ac_cv_header_stdc
=yes
3915 ac_cv_header_stdc
=no
3917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "memchr" >/dev
/null
2>&1; then :
3930 ac_cv_header_stdc
=no
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "free" >/dev
/null
2>&1; then :
3947 ac_cv_header_stdc
=no
3953 if test $ac_cv_header_stdc = yes; then
3954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3955 if test "$cross_compiling" = yes; then :
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3962 #if ((' ' & 0x0FF) == 0x020)
3963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3966 # define ISLOWER(c) \
3967 (('a' <= (c) && (c) <= 'i') \
3968 || ('j' <= (c) && (c) <= 'r') \
3969 || ('s' <= (c) && (c) <= 'z'))
3970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3978 for (i = 0; i < 256; i++)
3979 if (XOR (islower (i), ISLOWER (i))
3980 || toupper (i) != TOUPPER (i))
3985 if ac_fn_c_try_run
"$LINENO"; then :
3988 ac_cv_header_stdc
=no
3990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3997 $as_echo "$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
4000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4005 #-------------------------------------------------------------------------
4006 # Default compiler flags
4007 #-------------------------------------------------------------------------
4009 CFLAGS
="-Wall -Wno-unused -O2"
4011 CXXFLAGS
="-Wall -Wno-unused -O2 -std=c++11"
4014 #-------------------------------------------------------------------------
4015 # MCPPBS subproject list
4016 #-------------------------------------------------------------------------
4017 # Order list so that subprojects only depend on those listed earlier.
4018 # The '*' suffix indicates an optional subproject. The '**' suffix
4019 # indicates an optional subproject which is also the name of a group.
4023 # Add command line argument to enable all optional subprojects
4025 # Check whether --enable-optional-subprojects was given.
4026 if test "${enable_optional_subprojects+set}" = set; then :
4027 enableval
=$enable_optional_subprojects;
4031 # Loop through the subprojects given in the macro argument
4035 # Determine if this is a required or an optional subproject
4039 # Determine if there is a group with the same name
4043 # Create variations of the subproject name suitable for use as a CPP
4044 # enabled define, a shell enabled variable, and a shell function
4056 # Add subproject to our running list
4058 subprojects
="$subprojects riscv"
4060 # Process the subproject appropriately. If enabled add it to the
4061 # $enabled_subprojects running shell variable, set a
4062 # SUBPROJECT_ENABLED C define, and include the appropriate
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4067 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4068 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4070 enable_riscv_sproj
="yes"
4071 subprojects_enabled
="$subprojects_enabled riscv"
4073 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4076 # Check whether --with-fesvr was given.
4077 if test "${with_fesvr+set}" = set; then :
4078 withval
=$with_fesvr;
4079 LDFLAGS
="-L$withval/lib $LDFLAGS"
4080 CPPFLAGS
="-I$withval/include $CPPFLAGS"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4087 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4088 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 ac_check_lib_save_LIBS
=$LIBS
4092 LIBS
="-lfesvr -pthread $LIBS"
4093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4096 /* Override any GCC internal prototype to avoid an error.
4097 Use char because int might match the return type of a GCC
4098 builtin and then its argument prototype would still apply. */
4102 char libfesvr_is_present ();
4106 return libfesvr_is_present ();
4111 if ac_fn_c_try_link
"$LINENO"; then :
4112 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4114 ac_cv_lib_fesvr_libfesvr_is_present
=no
4116 rm -f core conftest.err conftest.
$ac_objext \
4117 conftest
$ac_exeext conftest.
$ac_ext
4118 LIBS
=$ac_check_lib_save_LIBS
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4121 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4122 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4123 cat >>confdefs.h
<<_ACEOF
4124 #define HAVE_LIBFESVR 1
4127 LIBS
="-lfesvr $LIBS"
4130 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4135 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4136 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4137 $as_echo_n "(cached) " >&6
4139 ac_check_lib_save_LIBS
=$LIBS
4140 LIBS
="-lpthread $LIBS"
4141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4144 /* Override any GCC internal prototype to avoid an error.
4145 Use char because int might match the return type of a GCC
4146 builtin and then its argument prototype would still apply. */
4150 char pthread_create ();
4154 return pthread_create ();
4159 if ac_fn_c_try_link
"$LINENO"; then :
4160 ac_cv_lib_pthread_pthread_create
=yes
4162 ac_cv_lib_pthread_pthread_create
=no
4164 rm -f core conftest.err conftest.
$ac_objext \
4165 conftest
$ac_exeext conftest.
$ac_ext
4166 LIBS
=$ac_check_lib_save_LIBS
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4169 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4170 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4171 cat >>confdefs.h
<<_ACEOF
4172 #define HAVE_LIBPTHREAD 1
4175 LIBS
="-lpthread $LIBS"
4178 as_fn_error $?
"libpthread is required" "$LINENO" 5
4182 # Check whether --enable-fpu was given.
4183 if test "${enable_fpu+set}" = set; then :
4184 enableval
=$enable_fpu;
4187 if test "x$enable_fpu" != "xno"; then :
4190 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4195 # Check whether --enable-64bit was given.
4196 if test "${enable_64bit+set}" = set; then :
4197 enableval
=$enable_64bit;
4200 if test "x$enable_64bit" != "xno"; then :
4203 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4208 # Check whether --enable-commitlog was given.
4209 if test "${enable_commitlog+set}" = set; then :
4210 enableval
=$enable_commitlog;
4213 if test "x$enable_commitlog" = "xyes"; then :
4216 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4221 # Check whether --enable-histogram was given.
4222 if test "${enable_histogram+set}" = set; then :
4223 enableval
=$enable_histogram;
4226 if test "x$enable_histogram" = "xyes"; then :
4229 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4238 # Determine if this is a required or an optional subproject
4242 # Determine if there is a group with the same name
4246 # Create variations of the subproject name suitable for use as a CPP
4247 # enabled define, a shell enabled variable, and a shell function
4259 # Add subproject to our running list
4261 subprojects
="$subprojects hwacha"
4263 # Process the subproject appropriately. If enabled add it to the
4264 # $enabled_subprojects running shell variable, set a
4265 # SUBPROJECT_ENABLED C define, and include the appropriate
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4270 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4271 ac_config_files
="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4273 enable_hwacha_sproj
="yes"
4274 subprojects_enabled
="$subprojects_enabled hwacha"
4276 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4283 # Determine if this is a required or an optional subproject
4287 # Determine if there is a group with the same name
4291 # Create variations of the subproject name suitable for use as a CPP
4292 # enabled define, a shell enabled variable, and a shell function
4304 # Add subproject to our running list
4306 subprojects
="$subprojects dummy_rocc"
4308 # Process the subproject appropriately. If enabled add it to the
4309 # $enabled_subprojects running shell variable, set a
4310 # SUBPROJECT_ENABLED C define, and include the appropriate
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4315 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4316 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4318 enable_dummy_rocc_sproj
="yes"
4319 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4321 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4328 # Determine if this is a required or an optional subproject
4332 # Determine if there is a group with the same name
4336 # Create variations of the subproject name suitable for use as a CPP
4337 # enabled define, a shell enabled variable, and a shell function
4349 # Add subproject to our running list
4351 subprojects
="$subprojects softfloat"
4353 # Process the subproject appropriately. If enabled add it to the
4354 # $enabled_subprojects running shell variable, set a
4355 # SUBPROJECT_ENABLED C define, and include the appropriate
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4360 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4361 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4363 enable_softfloat_sproj
="yes"
4364 subprojects_enabled
="$subprojects_enabled softfloat"
4366 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4373 # Determine if this is a required or an optional subproject
4377 # Determine if there is a group with the same name
4381 # Create variations of the subproject name suitable for use as a CPP
4382 # enabled define, a shell enabled variable, and a shell function
4394 # Add subproject to our running list
4396 subprojects
="$subprojects spike"
4398 # Process the subproject appropriately. If enabled add it to the
4399 # $enabled_subprojects running shell variable, set a
4400 # SUBPROJECT_ENABLED C define, and include the appropriate
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike" >&5
4405 $as_echo "$as_me: configuring default subproject : spike" >&6;}
4406 ac_config_files
="$ac_config_files spike.mk:spike/spike.mk.in"
4408 enable_spike_sproj
="yes"
4409 subprojects_enabled
="$subprojects_enabled spike"
4411 $as_echo "#define SPIKE_ENABLED /**/" >>confdefs.h
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4415 if ${ac_cv_lib_dl_dlopen+:} false
; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_check_lib_save_LIBS
=$LIBS
4420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 /* Override any GCC internal prototype to avoid an error.
4424 Use char because int might match the return type of a GCC
4425 builtin and then its argument prototype would still apply. */
4438 if ac_fn_c_try_link
"$LINENO"; then :
4439 ac_cv_lib_dl_dlopen
=yes
4441 ac_cv_lib_dl_dlopen
=no
4443 rm -f core conftest.err conftest.
$ac_objext \
4444 conftest
$ac_exeext conftest.
$ac_ext
4445 LIBS
=$ac_check_lib_save_LIBS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4449 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
4450 cat >>confdefs.h
<<_ACEOF
4451 #define HAVE_LIBDL 1
4457 as_fn_error $?
"libdl is required" "$LINENO" 5
4465 # Output make variables
4472 #-------------------------------------------------------------------------
4473 # MCPPBS subproject groups
4474 #-------------------------------------------------------------------------
4475 # If a group has the same name as a subproject then you must add the
4476 # '**' suffix in the subproject list above. The list of subprojects in a
4477 # group should be ordered so that subprojets only depend on those listed
4478 # earlier. Here is an example:
4480 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4483 #-------------------------------------------------------------------------
4485 #-------------------------------------------------------------------------
4487 ac_config_headers
="$ac_config_headers config.h"
4489 ac_config_files
="$ac_config_files Makefile"
4491 cat >confcache
<<\_ACEOF
4492 # This file is a shell script that caches the results of configure
4493 # tests run on this system so they can be shared between configure
4494 # scripts and configure runs, see configure's option --config-cache.
4495 # It is not useful on other systems. If it contains results you don't
4496 # want to keep, you may remove or edit it.
4498 # config.status only pays attention to the cache file if you give it
4499 # the --recheck option to rerun configure.
4501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4507 # The following way of writing the cache mishandles newlines in values,
4508 # but we know of no workaround that is simple, portable, and efficient.
4509 # So, we kill variables containing newlines.
4510 # Ultrix sh set writes to stderr and can't be redirected directly,
4511 # and sets the high bit in the cache file unless we assign to the vars.
4513 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4514 eval ac_val
=\$
$ac_var
4518 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4519 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4522 _ | IFS | as_nl
) ;; #(
4523 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4524 *) { eval $ac_var=; unset $ac_var;} ;;
4530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4531 *${as_nl}ac_space
=\
*)
4532 # `set' does not quote correctly, so add quotes: double-quote
4533 # substitution turns \\\\ into \\, and sed turns \\ into \.
4536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4539 # `set' quotes correctly as required by POSIX, so do not add quotes.
4540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4553 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4554 if test -w "$cache_file"; then
4555 if test "x$cache_file" != "x/dev/null"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4557 $as_echo "$as_me: updating cache $cache_file" >&6;}
4558 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4559 cat confcache
>"$cache_file"
4561 case $cache_file in #(
4563 mv -f confcache
"$cache_file"$$
&&
4564 mv -f "$cache_file"$$
"$cache_file" ;; #(
4566 mv -f confcache
"$cache_file" ;;
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4577 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4578 # Let make expand exec_prefix.
4579 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4581 DEFS
=-DHAVE_CONFIG_H
4586 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4587 # 1. Remove the extension, and $U if already installed.
4588 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4589 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4591 # will be set to the directory where LIBOBJS objects are built.
4592 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4593 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4597 LTLIBOBJS
=$ac_ltlibobjs
4601 : "${CONFIG_STATUS=./config.status}"
4603 ac_clean_files_save
=$ac_clean_files
4604 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4610 # Generated by $as_me.
4611 # Run this file to recreate the current configuration.
4612 # Compiler output produced by configure, useful for debugging
4613 # configure, is in config.log if it exists.
4619 SHELL=\${CONFIG_SHELL-$SHELL}
4622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4623 ## -------------------- ##
4624 ## M4sh Initialization. ##
4625 ## -------------------- ##
4627 # Be more Bourne compatible
4628 DUALCASE
=1; export DUALCASE
# for MKS sh
4629 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4633 # is contrary to our usage. Disable this feature.
4634 alias -g '${1+"$@"}'='"$@"'
4635 setopt NO_GLOB_SUBST
4637 case `(set -o) 2>/dev/null` in #(
4649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4650 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4653 # Prefer a ksh shell builtin over an external printf program on Solaris,
4654 # but without wasting forks for bash or zsh.
4655 if test -z "$BASH_VERSION$ZSH_VERSION" \
4656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4657 as_echo='print
-r --'
4658 as_echo_n='print
-rn --'
4659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4660 as_echo='printf %s
\n'
4661 as_echo_n='printf %s
'
4663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4664 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4665 as_echo_n='/usr
/ucb
/echo -n'
4667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4668 as_echo_n_body='eval
4672 expr "X$arg" : "X\\(.*\\)$as_nl";
4673 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4675 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4677 export as_echo_n_body
4678 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4681 as_echo='sh
-c $as_echo_body as_echo
'
4684 # The user is always right.
4685 if test "${PATH_SEPARATOR+set}" != set; then
4687 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4688 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4695 # We need space, tab and new line, in precisely that order. Quoting is
4696 # there to prevent editors from complaining about space-tab.
4697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4698 # splitting by setting IFS to empty value.)
4701 # Find who we are. Look in the path if we contain no directory separator.
4704 *[\\/]* ) as_myself=$0 ;;
4705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4716 # We did not find ourselves, most probably we were run as `sh COMMAND'
4717 # in which case we are not to be found in the path.
4718 if test "x$as_myself" = x
; then
4721 if test ! -f "$as_myself"; then
4722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4726 # Unset variables that we do not need and which cause bugs (e.g. in
4727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4728 # suppresses any "Segmentation fault" message there. '((' could
4729 # trigger a bug in pdksh 5.2.14.
4730 for as_var
in BASH_ENV ENV MAIL MAILPATH
4731 do eval test x\
${$as_var+set} = xset \
4732 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4745 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4749 # ----------------------------------------
4750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4752 # script with STATUS, using 1 if that was 0.
4755 as_status
=$1; test $as_status -eq 0 && as_status
=1
4757 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4760 $as_echo "$as_me: error: $2" >&2
4761 as_fn_exit
$as_status
4765 # as_fn_set_status STATUS
4766 # -----------------------
4767 # Set $? to STATUS, without forking.
4771 } # as_fn_set_status
4775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4785 # Portably unset VAR.
4788 { eval $1=; unset $1;}
4790 as_unset
=as_fn_unset
4791 # as_fn_append VAR VALUE
4792 # ----------------------
4793 # Append the text in VALUE to the end of the definition contained in VAR. Take
4794 # advantage of any shell optimizations that allow amortized linear growth over
4795 # repeated appends, instead of the typical quadratic growth present in naive
4797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4798 eval 'as_fn_append ()
4809 # as_fn_arith ARG...
4810 # ------------------
4811 # Perform arithmetic evaluation on the ARGs, and store the result in the
4812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4813 # must be portable across $(()) and expr.
4814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4815 eval 'as_fn_arith ()
4822 as_val
=`expr "$@" || test $? -eq 1`
4827 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4828 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4834 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4835 as_basename
=basename
4840 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4846 as_me
=`$as_basename -- "$0" ||
4847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4848 X"$0" : 'X\(//\)$' \| \
4849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4851 sed '/^.*\/\([^/][^/]*\)\/*$/{
4865 # Avoid depending upon Character Ranges.
4866 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4867 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4868 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4869 as_cr_digits
='0123456789'
4870 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4872 ECHO_C
= ECHO_N
= ECHO_T
=
4873 case `echo -n x` in #(((((
4875 case `echo 'xy\c'` in
4876 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4878 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4885 rm -f conf$$ conf$$.exe conf$$.
file
4886 if test -d conf$$.dir
; then
4887 rm -f conf$$.dir
/conf$$.
file
4890 mkdir conf$$.dir
2>/dev
/null
4892 if (echo >conf$$.
file) 2>/dev
/null
; then
4893 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4895 # ... but there are two gotchas:
4896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4898 # In both cases, we have to default to `cp -p'.
4899 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4901 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4909 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4910 rmdir conf$$.dir
2>/dev
/null
4915 # Create "$as_dir" as a directory, including parents if necessary.
4920 -*) as_dir
=.
/$as_dir;;
4922 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4926 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4927 *) as_qdir
=$as_dir;;
4929 as_dirs
="'$as_qdir' $as_dirs"
4930 as_dir
=`$as_dirname -- "$as_dir" ||
4931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4932 X"$as_dir" : 'X\(//\)[^/]' \| \
4933 X"$as_dir" : 'X\(//\)$' \| \
4934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4935 $as_echo X"$as_dir" |
4936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4953 test -d "$as_dir" && break
4955 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
4956 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
4960 if mkdir
-p .
2>/dev
/null
; then
4961 as_mkdir_p
='mkdir -p "$as_dir"'
4963 test -d .
/-p && rmdir .
/-p
4967 if test -x / >/dev
/null
2>&1; then
4970 if ls -dL / >/dev
/null
2>&1; then
4977 if test -d "$1"; then
4983 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4984 ???[sx]*):;;*)false;;esac;fi
4988 as_executable_p
=$as_test_x
4990 # Sed expression to map a string onto a valid CPP name.
4991 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4993 # Sed expression to map a string onto a valid variable name.
4994 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4998 ## ----------------------------------- ##
4999 ## Main body of $CONFIG_STATUS script. ##
5000 ## ----------------------------------- ##
5002 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5005 # Save the log message, to keep $0 and so on meaningful, and to
5006 # report actual input values of CONFIG_FILES etc. instead of their
5007 # values after options handling.
5009 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5010 generated by GNU Autoconf 2.68. Invocation command line was
5012 CONFIG_FILES = $CONFIG_FILES
5013 CONFIG_HEADERS = $CONFIG_HEADERS
5014 CONFIG_LINKS = $CONFIG_LINKS
5015 CONFIG_COMMANDS = $CONFIG_COMMANDS
5018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5023 case $ac_config_files in *"
5024 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5027 case $ac_config_headers in *"
5028 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5033 # Files that config.status was made for.
5034 config_files="$ac_config_files"
5035 config_headers="$ac_config_headers"
5039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5041 \`$as_me' instantiates files and other configuration actions
5042 from templates according to the current configuration. Unless the files
5043 and actions are specified as TAGs, all are instantiated by default.
5045 Usage: $0 [OPTION]... [TAG]...
5047 -h, --help print this help, then exit
5048 -V, --version print version number and configuration settings, then exit
5049 --config print configuration, then exit
5050 -q, --quiet, --silent
5051 do not print progress messages
5052 -d, --debug don't remove temporary files
5053 --recheck update $as_me by reconfiguring in the same conditions
5054 --file=FILE[:TEMPLATE]
5055 instantiate the configuration file FILE
5056 --header=FILE[:TEMPLATE]
5057 instantiate the configuration header FILE
5059 Configuration files:
5062 Configuration headers:
5065 Report bugs to <Andrew Waterman>."
5068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5069 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5071 RISC-V ISA Simulator config.status ?
5072 configured by $0, generated by GNU Autoconf 2.68,
5073 with options \\"\$ac_cs_config\\"
5075 Copyright (C) 2010 Free Software Foundation, Inc.
5076 This config.status script is free software; the Free Software Foundation
5077 gives unlimited permission to copy, distribute and modify it."
5082 test -n "\$AWK" || AWK=awk
5085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5086 # The default lists apply if the user does not specify any file.
5092 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5093 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5097 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5109 # Handling of the options.
5110 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5112 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5113 $as_echo "$ac_cs_version"; exit ;;
5114 --config |
--confi |
--conf |
--con |
--co |
--c )
5115 $as_echo "$ac_cs_config"; exit ;;
5116 --debug |
--debu |
--deb |
--de |
--d |
-d )
5118 --file |
--fil |
--fi |
--f )
5121 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5122 '') as_fn_error $?
"missing file argument" ;;
5124 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5125 ac_need_defaults
=false
;;
5126 --header |
--heade |
--head |
--hea )
5129 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5131 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5132 ac_need_defaults
=false
;;
5134 # Conflict between --help and --header
5135 as_fn_error $?
"ambiguous option: \`$1'
5136 Try \`$0 --help' for more information.";;
5137 --help |
--hel |
-h )
5138 $as_echo "$ac_cs_usage"; exit ;;
5139 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5140 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5144 -*) as_fn_error $?
"unrecognized option: \`$1'
5145 Try \`$0 --help' for more information." ;;
5147 *) as_fn_append ac_config_targets
" $1"
5148 ac_need_defaults
=false
;;
5154 ac_configure_extra_args
=
5156 if $ac_cs_silent; then
5158 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5163 if \$ac_cs_recheck; then
5164 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5167 CONFIG_SHELL='$SHELL'
5173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5178 ## Running $as_me. ##
5184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5189 # Handling of arguments.
5190 for ac_config_target
in $ac_config_targets
5192 case $ac_config_target in
5193 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5194 "hwacha.mk") CONFIG_FILES
="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5195 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5196 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5197 "spike.mk") CONFIG_FILES
="$CONFIG_FILES spike.mk:spike/spike.mk.in" ;;
5198 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5199 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5201 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5206 # If the user did not use the arguments to specify the items to instantiate,
5207 # then the envvar interface is used. Set only those that are not.
5208 # We use the long form for the default assignment because of an extremely
5209 # bizarre bug on SunOS 4.1.3.
5210 if $ac_need_defaults; then
5211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5215 # Have a temporary directory for convenience. Make it in the build tree
5216 # simply because there is no reason against having it here, and in addition,
5217 # creating and moving files from /tmp can sometimes cause problems.
5218 # Hook for its removal unless debugging.
5219 # Note that there is a small window in which the directory will not be cleaned:
5220 # after its creation but before its name has been assigned to `$tmp'.
5224 trap 'exit_status=$?
5226 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5228 trap 'as_fn_exit 1' 1 2 13 15
5230 # Create a (secure) tmp directory for tmp files.
5233 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5237 tmp
=.
/conf$$
-$RANDOM
5238 (umask 077 && mkdir
"$tmp")
5239 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5242 # Set up the scripts for CONFIG_FILES section.
5243 # No need to generate them if there are no CONFIG_FILES.
5244 # This happens for instance with `./config.status config.h'.
5245 if test -n "$CONFIG_FILES"; then
5248 ac_cr
=`echo X | tr X '\015'`
5249 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5250 # But we know of no other shell where ac_cr would be empty at this
5251 # point, so we can use a bashism as a fallback.
5252 if test "x$ac_cr" = x
; then
5253 eval ac_cr
=\$
\'\\r
\'
5255 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5256 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5262 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5267 echo "cat >conf$$subs.awk <<_ACEOF" &&
5268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5271 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5272 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5274 for ac_last_try in false false false false false :; do
5275 . ./conf$$subs.sh ||
5276 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5278 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5279 if test $ac_delim_n = $ac_delim_num; then
5281 elif $ac_last_try; then
5282 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5284 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5290 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5294 s/^/S["/; s
/!.
*/"]=/
5304 s/\(.\{148\}\)..*/\1/
5306 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5311 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5318 s/\(.\{148\}\)..*/\1/
5320 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5324 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5329 ' <conf$$subs.awk | sed '
5334 ' >>$CONFIG_STATUS || ac_write_fail=1
5335 rm -f conf$$subs.awk
5336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5338 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5339 for (key in S) S_is_set[key] = 1
5345 nfields = split(line, field, "@
")
5347 len = length(field[1])
5348 for (i = 2; i < nfields; i++) {
5350 keylen = length(key)
5351 if (S_is_set[key]) {
5353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5354 len += length(value) + length(field[++i])
5365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5366 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5367 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5370 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5371 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5374 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5375 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5376 # trailing colons and then remove the whole line if VPATH becomes empty
5377 # (actually we leave an empty line to preserve line numbers).
5378 if test "x
$srcdir" = x.; then
5379 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5398 fi # test -n "$CONFIG_FILES"
5400 # Set up the scripts for CONFIG_HEADERS section.
5401 # No need to generate them if there are no CONFIG_HEADERS.
5402 # This happens for instance with `./config.status Makefile'.
5403 if test -n "$CONFIG_HEADERS"; then
5404 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5408 # Transform confdefs.h into an awk script `defines.awk', embedded as
5409 # here-document in config.status, that substitutes the proper values into
5410 # config.h.in to produce config.h.
5412 # Create a delimiter string that does not exist in confdefs.h, to ease
5413 # handling of long lines.
5415 for ac_last_try in false false :; do
5416 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5417 if test -z "$ac_tt"; then
5419 elif $ac_last_try; then
5420 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5422 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5426 # For the awk script, D is an array of macro values keyed by name,
5427 # likewise P contains macro parameters if any. Preserve backslash
5428 # newline sequences.
5430 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5432 s/.\{148\}/&'"$ac_delim"'/g
5435 s/^[ ]*#[ ]*define[ ][ ]*/ /
5442 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5444 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5449 D["\
1"]=" \
3\\\\\\n
"\\/p
5451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5456 s/.\{148\}/&'"$ac_delim"'/g
5461 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5464 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5466 ' <confdefs.h | sed '
5467 s/'"$ac_delim"'/"\\\
5468 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5471 for (key in D) D_is_set[key] = 1
5474 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5476 split(line, arg, " ")
5477 if (arg[1] == "#") {
5481 defundef
= substr
(arg
[1], 2)
5484 split(mac1
, mac2
, "(") #)
5486 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5487 if (D_is_set
[macro
]) {
5488 # Preserve the white space surrounding the "#".
5489 print prefix
"define", macro P
[macro
] D
[macro
]
5492 # Replace #undef with comments. This is necessary, for example,
5493 # in the case of _POSIX_SOURCE, which is predefined and required
5494 # on some systems where configure will not decide to define it.
5495 if (defundef
== "undef") {
5496 print
"/*", prefix defundef
, macro
, "*/"
5504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5505 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5506 fi # test -n "$CONFIG_HEADERS"
5509 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5514 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5516 case $ac_mode$ac_tag in
5518 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5519 :[FH
]-) ac_tag
=-:-;;
5520 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5537 -) ac_f
="$ac_tmp/stdin";;
5538 *) # Look for the file first in the build tree, then in the source tree
5539 # (if the path is not absolute). The absolute path cannot be DOS-style,
5540 # because $ac_f cannot contain `:'.
5544 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5546 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5548 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5549 as_fn_append ac_file_inputs
" '$ac_f'"
5552 # Let's still pretend it is `configure' which instantiates (i.e., don't
5553 # use $as_me), people would be surprised to read:
5554 # /* config.h. Generated by config.status. */
5555 configure_input
='Generated from '`
5556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5558 if test x
"$ac_file" != x-
; then
5559 configure_input
="$ac_file. $configure_input"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5561 $as_echo "$as_me: creating $ac_file" >&6;}
5563 # Neutralize special characters interpreted by sed in replacement strings.
5564 case $configure_input in #(
5565 *\
&* |
*\|
* |
*\\* )
5566 ac_sed_conf_input
=`$as_echo "$configure_input" |
5567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5568 *) ac_sed_conf_input
=$configure_input;;
5572 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5573 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5578 ac_dir
=`$as_dirname -- "$ac_file" ||
5579 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5580 X"$ac_file" : 'X\(//\)[^/]' \| \
5581 X"$ac_file" : 'X\(//\)$' \| \
5582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5583 $as_echo X"$ac_file" |
5584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5601 as_dir
="$ac_dir"; as_fn_mkdir_p
5605 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5607 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5608 # A ".." for each directory in $ac_dir_suffix.
5609 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5610 case $ac_top_builddir_sub in
5611 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5612 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5615 ac_abs_top_builddir
=$ac_pwd
5616 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5617 # for backward compatibility:
5618 ac_top_builddir
=$ac_top_build_prefix
5621 .
) # We are building in place.
5623 ac_top_srcdir
=$ac_top_builddir_sub
5624 ac_abs_top_srcdir
=$ac_pwd ;;
5625 [\\/]* | ?
:[\\/]* ) # Absolute name.
5626 ac_srcdir
=$srcdir$ac_dir_suffix;
5627 ac_top_srcdir
=$srcdir
5628 ac_abs_top_srcdir
=$srcdir ;;
5630 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5631 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5632 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5634 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5644 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5645 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5650 # If the template does not know about datarootdir, expand it.
5651 # FIXME: This hack should be removed a few years after 2.60.
5652 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5663 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5664 *datarootdir
*) ac_datarootdir_seen
=yes;;
5665 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5667 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5670 ac_datarootdir_hack='
5671 s&@datadir@&$datadir&g
5672 s&@docdir@&$docdir&g
5673 s&@infodir@&$infodir&g
5674 s&@localedir@&$localedir&g
5675 s&@mandir@&$mandir&g
5676 s&\\\${datarootdir}&$datarootdir&g' ;;
5680 # Neutralize VPATH when `$srcdir' = `.'.
5681 # Shell code in configure.ac might set extrasub.
5682 # FIXME: do we really want to maintain this feature?
5683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5684 ac_sed_extra="$ac_vpsub
5687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5689 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5690 s|@configure_input@|
$ac_sed_conf_input|
;t t
5691 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5692 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5693 s
&@srcdir@
&$ac_srcdir&;t t
5694 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5695 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5696 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5697 s
&@builddir@
&$ac_builddir&;t t
5698 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5699 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5700 s
&@INSTALL@
&$ac_INSTALL&;t t
5701 $ac_datarootdir_hack
5703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5704 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5707 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5709 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5711 which seems to be undefined. Please make sure it is defined" >&5
5712 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5713 which seems to be undefined. Please make sure it is defined" >&2;}
5715 rm -f "$ac_tmp/stdin"
5717 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5718 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5726 if test x"$ac_file" != x-; then
5728 $as_echo "/* $configure_input */" \
5729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5730 } >"$ac_tmp/config.h" \
5731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5732 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5734 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5737 mv "$ac_tmp/config.h" "$ac_file" \
5738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5741 $as_echo "/* $configure_input */" \
5742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5743 || as_fn_error $? "could not create -" "$LINENO" 5
5755 ac_clean_files=$ac_clean_files_save
5757 test $ac_write_fail = 0 ||
5758 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5761 # configure is writing to config.log, and then calls config.status.
5762 # config.status does its own redirection, appending to config.log.
5763 # Unfortunately, on DOS this fails, as config.log is still kept open
5764 # by configure, so config.status won't be able to
write to it
; its
5765 # output is simply discarded. So we exec the FD to /dev/null,
5766 # effectively closing config.log, so it can be properly (re)opened and
5767 # appended to by config.status. When coming back to configure, we
5768 # need to make the FD available again.
5769 if test "$no_create" != yes; then
5771 ac_config_status_args
=
5772 test "$silent" = yes &&
5773 ac_config_status_args
="$ac_config_status_args --quiet"
5775 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5777 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5778 # would make configure fail if this is the last instruction.
5779 $ac_cs_success || as_fn_exit
1
5781 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5783 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}