2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RISC-V ISA Simulator ?.
5 # Report bugs to <Andrew Waterman>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Waterman
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='RISC-V ISA Simulator'
582 PACKAGE_TARNAME
='spike'
584 PACKAGE_STRING
='RISC-V ISA Simulator ?'
585 PACKAGE_BUGREPORT
='Andrew Waterman'
588 ac_unique_file
="riscv/common.h"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
687 program_transform_name
700 enable_option_checking
702 enable_optional_subprojects
709 ac_precious_vars
='build_alias
725 # Initialize some variables set by options.
727 ac_init_version
=false
728 ac_unrecognized_opts
=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
739 program_transform_name
=s
,x
,x
,
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir
='${exec_prefix}/bin'
754 sbindir
='${exec_prefix}/sbin'
755 libexecdir
='${exec_prefix}/libexec'
756 datarootdir
='${prefix}/share'
757 datadir
='${datarootdir}'
758 sysconfdir
='${prefix}/etc'
759 sharedstatedir
='${prefix}/com'
760 localstatedir
='${prefix}/var'
761 runstatedir
='${localstatedir}/run'
762 includedir
='${prefix}/include'
763 oldincludedir
='/usr/include'
764 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
765 infodir
='${datarootdir}/info'
770 libdir
='${exec_prefix}/lib'
771 localedir
='${datarootdir}/locale'
772 mandir
='${datarootdir}/man'
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
780 eval $ac_prev=\
$ac_option
786 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 # Accept the important Cygnus configure options, so we can diagnose typos.
793 case $ac_dashdash$ac_option in
797 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
799 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
802 -build |
--build |
--buil |
--bui |
--bu)
803 ac_prev
=build_alias
;;
804 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
805 build_alias
=$ac_optarg ;;
807 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
808 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
809 ac_prev
=cache_file
;;
810 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
811 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
812 cache_file
=$ac_optarg ;;
815 cache_file
=config.cache
;;
817 -datadir |
--datadir |
--datadi |
--datad)
819 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
820 datadir
=$ac_optarg ;;
822 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
823 |
--dataroo |
--dataro |
--datar)
824 ac_prev
=datarootdir
;;
825 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
826 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
827 datarootdir
=$ac_optarg ;;
829 -disable-* |
--disable-*)
830 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
833 as_fn_error $?
"invalid feature name: $ac_useropt"
834 ac_useropt_orig
=$ac_useropt
835 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
840 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep
=', ';;
843 eval enable_
$ac_useropt=no
;;
845 -docdir |
--docdir |
--docdi |
--doc |
--do)
847 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
850 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
852 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
855 -enable-* |
--enable-*)
856 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
859 as_fn_error $?
"invalid feature name: $ac_useropt"
860 ac_useropt_orig
=$ac_useropt
861 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
866 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
867 ac_unrecognized_sep
=', ';;
869 eval enable_
$ac_useropt=\
$ac_optarg ;;
871 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
872 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
873 |
--exec |
--exe |
--ex)
874 ac_prev
=exec_prefix
;;
875 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
876 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
877 |
--exec=* |
--exe=* |
--ex=*)
878 exec_prefix
=$ac_optarg ;;
880 -gas |
--gas |
--ga |
--g)
881 # Obsolete; use --with-gas.
884 -help |
--help |
--hel |
--he |
-h)
886 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
887 ac_init_help
=recursive
;;
888 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
889 ac_init_help
=short
;;
891 -host |
--host |
--hos |
--ho)
892 ac_prev
=host_alias
;;
893 -host=* |
--host=* |
--hos=* |
--ho=*)
894 host_alias
=$ac_optarg ;;
896 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
898 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
900 htmldir
=$ac_optarg ;;
902 -includedir |
--includedir |
--includedi |
--included |
--include \
903 |
--includ |
--inclu |
--incl |
--inc)
904 ac_prev
=includedir
;;
905 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
906 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
907 includedir
=$ac_optarg ;;
909 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
911 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
912 infodir
=$ac_optarg ;;
914 -libdir |
--libdir |
--libdi |
--libd)
916 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
919 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
920 |
--libexe |
--libex |
--libe)
921 ac_prev
=libexecdir
;;
922 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
923 |
--libexe=* |
--libex=* |
--libe=*)
924 libexecdir
=$ac_optarg ;;
926 -localedir |
--localedir |
--localedi |
--localed |
--locale)
928 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
929 localedir
=$ac_optarg ;;
931 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
932 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
933 ac_prev
=localstatedir
;;
934 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
935 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
936 localstatedir
=$ac_optarg ;;
938 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
940 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
944 # Obsolete; use --without-fp.
947 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
948 |
--no-cr |
--no-c |
-n)
951 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
952 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
955 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
956 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
957 |
--oldin |
--oldi |
--old |
--ol |
--o)
958 ac_prev
=oldincludedir
;;
959 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
960 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
961 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
962 oldincludedir
=$ac_optarg ;;
964 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
966 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
969 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
970 |
--program-pre |
--program-pr |
--program-p)
971 ac_prev
=program_prefix
;;
972 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
973 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
974 program_prefix
=$ac_optarg ;;
976 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
977 |
--program-suf |
--program-su |
--program-s)
978 ac_prev
=program_suffix
;;
979 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
980 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
981 program_suffix
=$ac_optarg ;;
983 -program-transform-name |
--program-transform-name \
984 |
--program-transform-nam |
--program-transform-na \
985 |
--program-transform-n |
--program-transform- \
986 |
--program-transform |
--program-transfor \
987 |
--program-transfo |
--program-transf \
988 |
--program-trans |
--program-tran \
989 |
--progr-tra |
--program-tr |
--program-t)
990 ac_prev
=program_transform_name
;;
991 -program-transform-name=* |
--program-transform-name=* \
992 |
--program-transform-nam=* |
--program-transform-na=* \
993 |
--program-transform-n=* |
--program-transform-=* \
994 |
--program-transform=* |
--program-transfor=* \
995 |
--program-transfo=* |
--program-transf=* \
996 |
--program-trans=* |
--program-tran=* \
997 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
998 program_transform_name
=$ac_optarg ;;
1000 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1002 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1003 pdfdir
=$ac_optarg ;;
1005 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1007 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1010 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1011 |
-silent |
--silent |
--silen |
--sile |
--sil)
1014 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1015 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1016 |
--run |
--ru |
--r)
1017 ac_prev
=runstatedir
;;
1018 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1019 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1020 |
--run=* |
--ru=* |
--r=*)
1021 runstatedir
=$ac_optarg ;;
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid package name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval with_
$ac_useropt=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error $?
"invalid package name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval with_
$ac_useropt=no
;;
1101 # Obsolete; use --with-x.
1104 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1105 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1106 ac_prev
=x_includes
;;
1107 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1108 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1109 x_includes
=$ac_optarg ;;
1111 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1112 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1113 ac_prev
=x_libraries
;;
1114 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1115 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1116 x_libraries
=$ac_optarg ;;
1118 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information"
1123 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1127 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1129 eval $ac_envvar=\
$ac_optarg
1130 export $ac_envvar ;;
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1143 if test -n "$ac_prev"; then
1144 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error $?
"missing argument to $ac_option"
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1151 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156 # Check all directory arguments for consistency.
1157 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir runstatedir
1162 eval ac_val
=\$
$ac_var
1163 # Remove trailing slashes.
1166 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\
$ac_val;;
1169 # Be sure to have absolute directory names.
1171 [\\/$
]* | ?
:[\\/]* ) continue;;
1172 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1174 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1182 target
=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x
; then
1186 if test "x$build_alias" = x
; then
1187 cross_compiling
=maybe
1188 elif test "x$build_alias" != "x$host_alias"; then
1194 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1196 test "$silent" = yes && exec 6>/dev
/null
1199 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di
=`ls -di .` &&
1201 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1202 as_fn_error $?
"working directory cannot be determined"
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 as_fn_error $?
"pwd does not report name of working directory"
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted
=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir
=`$as_dirname -- "$as_myself" ||
1212 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$as_myself" : 'X\(//\)[^/]' \| \
1214 X"$as_myself" : 'X\(//\)$' \| \
1215 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1216 $as_echo X"$as_myself" |
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1239 ac_srcdir_defaulted
=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1243 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1245 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1249 # When building in place, set srcdir=.
1250 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 # Remove unnecessary trailing slashes from srcdir.
1254 # Double slashes in file names in object file debugging info
1255 # mess up M-x gdb in Emacs.
1257 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259 for ac_var
in $ac_precious_vars; do
1260 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1261 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1262 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1263 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1267 # Report the --help message.
1269 if test "$ac_init_help" = "long"; then
1270 # Omit some internal or obsolete options to make the list less imposing.
1271 # This message is too long to be a string in the A/UX 3.1 sh.
1273 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1275 Usage: $0 [OPTION]... [VAR=VALUE]...
1277 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1278 VAR=VALUE. See below for descriptions of some of the useful variables.
1280 Defaults for the options are specified in brackets.
1283 -h, --help display this help and exit
1284 --help=short display options specific to this package
1285 --help=recursive display the short help of all the included packages
1286 -V, --version display version information and exit
1287 -q, --quiet, --silent do not print \`checking ...' messages
1288 --cache-file=FILE cache test results in FILE [disabled]
1289 -C, --config-cache alias for \`--cache-file=config.cache'
1290 -n, --no-create do not create output files
1291 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293 Installation directories:
1294 --prefix=PREFIX install architecture-independent files in PREFIX
1295 [$ac_default_prefix]
1296 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 By default, \`make install' will install all the files in
1300 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1301 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1302 for instance \`--prefix=\$HOME'.
1304 For better control, use the options below.
1306 Fine tuning of the installation directories:
1307 --bindir=DIR user executables [EPREFIX/bin]
1308 --sbindir=DIR system admin executables [EPREFIX/sbin]
1309 --libexecdir=DIR program executables [EPREFIX/libexec]
1310 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1311 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1312 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1313 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
1332 --build=BUILD configure
for building on BUILD
[guessed
]
1333 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1337 if test -n "$ac_init_help"; then
1338 case $ac_init_help in
1339 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1344 --disable-option-checking ignore unrecognized
--enable/--with options
1345 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1346 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1347 --enable-stow Enable stow-based
install
1348 --enable-optional-subprojects
1349 Enable all optional subprojects
1350 --enable-commitlog Enable commit log generation
1351 --enable-histogram Enable PC histogram generation
1352 --enable-dirty Enable hardware management of PTE accessed and dirty
1356 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1357 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1358 --with-isa=RV64IMAFDC Sets the default RISC-V ISA
1359 --with-fesvr path to your fesvr installation
if not
in a standard
1362 Some influential environment variables
:
1363 CC C compiler
command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1366 nonstandard directory
<lib dir
>
1367 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1368 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1369 you have headers
in a nonstandard directory
<include dir
>
1370 CXX C
++ compiler
command
1371 CXXFLAGS C
++ compiler flags
1372 CXXCPP C
++ preprocessor
1373 STOW_ROOT Root
for non-native stow-based installs
1374 STOW_PREFIX Prefix
for stow-based installs
1376 Use these variables to override the choices made by
`configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1379 Report bugs to <Andrew Waterman>.
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1409 .) # We are building in place.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1442 RISC-V ISA Simulator configure ?
1443 generated by GNU Autoconf 2.69
1445 Copyright (C) 2012 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1452 ## ------------------------ ##
1453 ## Autoconf initialization. ##
1454 ## ------------------------ ##
1456 # ac_fn_c_try_compile LINENO
1457 # --------------------------
1458 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_compile ()
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1466 *) ac_try_echo
=$ac_try;;
1468 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 $as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1472 if test -s conftest.err
; then
1473 grep -v '^ *+' conftest.err
>conftest.er1
1474 cat conftest.er1
>&5
1475 mv -f conftest.er1 conftest.err
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.
$ac_objext; then :
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.
$ac_ext >&5
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490 as_fn_set_status
$ac_retval
1492 } # ac_fn_c_try_compile
1494 # ac_fn_cxx_try_compile LINENO
1495 # ----------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_cxx_try_compile
()
1499 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1500 rm -f conftest.
$ac_objext
1501 if { { ac_try
="$ac_compile"
1503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_cxx_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1530 } # ac_fn_cxx_try_compile
1532 # ac_fn_cxx_try_run LINENO
1533 # ------------------------
1534 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1535 # that executables *can* be run.
1536 ac_fn_cxx_try_run ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if { { ac_try="$ac_link"
1541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1542 *) ac_try_echo
=$ac_try;;
1544 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_link") 2>&5
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1550 { { case "(($ac_try" in
1551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_try") 2>&5
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; }; }; then :
1562 $as_echo "$as_me: program exited with status $ac_status" >&5
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1566 ac_retval=$ac_status
1568 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1572 } # ac_fn_cxx_try_run
1574 # ac_fn_cxx_try_cpp LINENO
1575 # ------------------------
1576 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_cxx_try_cpp ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1583 *) ac_try_echo
=$ac_try;;
1585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 if test -s conftest.err
; then
1590 grep -v '^ *+' conftest.err
>conftest.er1
1591 cat conftest.er1
>&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } > conftest.i
&& {
1596 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1597 test ! -s conftest.err
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.
$ac_ext >&5
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status
$ac_retval
1609 } # ac_fn_cxx_try_cpp
1611 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1612 # ---------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_cxx_check_header_compile
()
1617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if eval \
${$3+:} false
; then :
1621 $as_echo_n "(cached) " >&6
1623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_cxx_try_compile
"$LINENO"; then :
1633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_cxx_check_header_compile
1642 # ac_fn_cxx_try_link LINENO
1643 # -------------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_link
()
1647 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1648 rm -f conftest.
$ac_objext conftest
$ac_exeext
1649 if { { ac_try
="$ac_link"
1651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 test -x conftest$ac_exeext
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_cxx_try_link
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1691 It was created by RISC-V ISA Simulator $as_me ?, which was
1692 generated by GNU Autoconf 2.69. Invocation command line was
1704 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1705 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1706 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1707 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1708 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1710 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1711 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1713 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1714 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1715 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1716 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1717 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1718 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1719 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 $as_echo "PATH: $as_dir"
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_must_keep_next=false
1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1763 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1766 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1768 as_fn_append ac_configure_args1 " '$ac_arg'"
1769 if test $ac_must_keep_next = true; then
1770 ac_must_keep_next=false # Got value, back to normal.
1773 *=* | --config-cache | -C | -disable-* | --disable-* \
1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776 | -with-* | --with-* | -without-* | --without-* | --x)
1777 case "$ac_configure_args0 " in
1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 -* ) ac_must_keep_next=true ;;
1784 as_fn_append ac_configure_args " '$ac_arg'"
1789 { ac_configure_args0=; unset ac_configure_args0;}
1790 { ac_configure_args1=; unset ac_configure_args1;}
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log. We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798 # Save into config.log some information that might help in debugging.
1802 $as_echo "## ---------------- ##
1803 ## Cache variables. ##
1804 ## ---------------- ##"
1806 # The following way of writing the cache mishandles newlines in values,
1808 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1809 eval ac_val=\$$ac_var
1813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1817 _ | IFS | as_nl) ;; #(
1818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819 *) { eval $ac_var=; unset $ac_var;} ;;
1824 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
1827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838 $as_echo "## ----------------- ##
1839 ## Output variables. ##
1840 ## ----------------- ##"
1842 for ac_var in $ac_subst_vars
1844 eval ac_val=\$$ac_var
1846 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -n "$ac_subst_files"; then
1853 $as_echo "## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##"
1857 for ac_var in $ac_subst_files
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 $as_echo "$ac_var='\''$ac_val'\''"
1868 if test -s confdefs.h; then
1869 $as_echo "## ----------- ##
1876 test "$ac_signal" != 0 &&
1877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 $as_echo "/* confdefs.h */" > confdefs.h
1894 # Predefined preprocessor variables.
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_URL "$PACKAGE_URL"
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer an explicitly selected file to automatically selected ones.
1925 if test -n "$CONFIG_SITE"; then
1926 # We do not want a PATH search for config.site.
1927 case $CONFIG_SITE in #((
1928 -*) ac_site_file1=./$CONFIG_SITE;;
1929 */*) ac_site_file1=$CONFIG_SITE;;
1930 *) ac_site_file1=./$CONFIG_SITE;;
1932 elif test "x$prefix" != xNONE; then
1933 ac_site_file1=$prefix/share/config.site
1934 ac_site_file2=$prefix/etc/config.site
1936 ac_site_file1=$ac_default_prefix/share/config.site
1937 ac_site_file2=$ac_default_prefix/etc/config.site
1939 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1941 test "x$ac_site_file" = xNONE && continue
1942 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1944 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1945 sed 's/^/| /' "$ac_site_file" >&5
1947 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 as_fn_error $? "failed to load site
script $ac_site_file
1950 See \
`config.log' for more details" "$LINENO" 5; }
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special files
1956 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1957 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1959 $as_echo "$as_me: loading cache $cache_file" >&6;}
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1967 $as_echo "$as_me: creating cache $cache_file" >&6;}
1971 # Check that the precious variables saved in the cache have kept the same
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1982 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1986 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 # differences in whitespace do not lead to failure.
1992 ac_old_val_w=`echo x
$ac_old_val`
1993 ac_new_val_w=`echo x
$ac_new_val`
1994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1997 ac_cache_corrupted=:
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001 eval $ac_var=\$ac_old_val
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2004 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2009 # Pass precious variables to config.status.
2010 if test "$ac_new_set" = set; then
2012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2013 *) ac_arg=$ac_var=$ac_new_val ;;
2015 case " $ac_configure_args " in
2016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2017 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2021 if $ac_cache_corrupted; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2028 ## -------------------- ##
2029 ## Main body of script. ##
2030 ## -------------------- ##
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 ac_cpp='$CXXCPP $CPPFLAGS'
2041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2047 for ac_dir in scripts "$srcdir"/scripts; do
2048 if test -f "$ac_dir/install-sh"; then
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2052 elif test -f "$ac_dir/install.sh"; then
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2056 elif test -f "$ac_dir/shtool"; then
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 if test -z "$ac_aux_dir"; then
2063 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2066 # These three variables are undocumented and unsupported,
2067 # and are intended to be withdrawn in a future Autoconf release.
2068 # They can cause serious problems if a builder's source tree is in a directory
2069 # whose full name contains unusual characters.
2070 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2071 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2072 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 # Make sure we can run config.sub.
2076 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2077 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2080 $as_echo_n "checking build system type... " >&6; }
2081 if ${ac_cv_build+:} false; then :
2082 $as_echo_n "(cached) " >&6
2084 ac_build_alias=$build_alias
2085 test "x$ac_build_alias" = x &&
2086 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2087 test "x$ac_build_alias" = x &&
2088 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2089 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2090 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2094 $as_echo "$ac_cv_build" >&6; }
2095 case $ac_cv_build in
2097 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2100 ac_save_IFS=$IFS; IFS='-'
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2110 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2114 $as_echo_n "checking host system type... " >&6; }
2115 if ${ac_cv_host+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 if test "x$host_alias" = x; then
2119 ac_cv_host=$ac_cv_build
2121 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2127 $as_echo "$ac_cv_host" >&6; }
2130 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2133 ac_save_IFS=$IFS; IFS='-'
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2143 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2147 #-------------------------------------------------------------------------
2148 # Checks for programs
2149 #-------------------------------------------------------------------------
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2160 $as_echo_n "checking for $ac_word... " >&6; }
2161 if ${ac_cv_prog_CC+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 if test -n "$CC"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2187 $as_echo "$CC" >&6; }
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2190 $as_echo "no" >&6; }
2195 if test -z "$ac_cv_prog_CC"; then
2197 # Extract the first word of "gcc", so it can be a program name with args.
2198 set dummy gcc; ac_word=$2
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2200 $as_echo_n "checking for $ac_word... " >&6; }
2201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2202 $as_echo_n "(cached) " >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC="gcc"
2215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2227 $as_echo "$ac_ct_CC" >&6; }
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2230 $as_echo "no" >&6; }
2233 if test "x$ac_ct_CC" = x; then
2236 case $cross_compiling:$ac_tool_warned in
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2240 ac_tool_warned=yes ;;
2248 if test -z "$CC"; then
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}cc; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255 $as_echo_n "(cached) " >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_CC="${ac_tool_prefix}cc"
2268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2289 if test -z "$CC"; then
2290 # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_CC+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309 ac_prog_rejected=yes
2313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 if test $ac_prog_rejected = yes; then
2321 # We found a bogon in the path, so make sure we never use it.
2322 set dummy $ac_cv_prog_CC
2324 if test $# != 0; then
2325 # We chose a different compiler from the bogus one.
2326 # However, it has the same basename, so the bogon will be chosen
2327 # first if we set CC to just the basename; use the full file name.
2329 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2335 if test -n "$CC"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337 $as_echo "$CC" >&6; }
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2345 if test -z "$CC"; then
2346 if test -n "$ac_tool_prefix"; then
2347 for ac_prog in cl.exe
2349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352 $as_echo_n "checking for $ac_word... " >&6; }
2353 if ${ac_cv_prog_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test -n "$CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 $as_echo "$CC" >&6; }
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 $as_echo "no" >&6; }
2386 test -n "$CC" && break
2389 if test -z "$CC"; then
2391 for ac_prog in cl.exe
2393 # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2398 $as_echo_n "(cached) " >&6
2400 if test -n "$ac_ct_CC"; then
2401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410 ac_cv_prog_ac_ct_CC="$ac_prog"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2423 $as_echo "$ac_ct_CC" >&6; }
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2430 test -n "$ac_ct_CC" && break
2433 if test "x$ac_ct_CC" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2440 ac_tool_warned=yes ;;
2449 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2452 See \
`config.log' for more details" "$LINENO" 5; }
2454 # Provide some information about the compiler.
2455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2458 for ac_option in --version -v -V -qversion; do
2459 { { ac_try="$ac_compiler $ac_option >&5"
2461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2462 *) ac_try_echo
=$ac_try;;
2464 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2468 if test -s conftest.err
; then
2470 ... rest of stderr output deleted ...
2471 10q' conftest.err
>conftest.er1
2472 cat conftest.er1
>&5
2474 rm -f conftest.er1 conftest.err
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; }
2479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2490 ac_clean_files_save
=$ac_clean_files
2491 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2492 # Try to create an executable without -o first, disregard a.out.
2493 # It will help us diagnose broken compilers, and finding out an intuition
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2496 $as_echo_n "checking whether the C compiler works... " >&6; }
2497 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2499 # The possible output files:
2500 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2503 for ac_file
in $ac_files
2506 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2507 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2512 if { { ac_try
="$ac_link_default"
2514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 $as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_link_default") 2>&5
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; }; then :
2523 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2524 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2525 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2526 # so that the user can short-circuit this test for compilers unknown to
2528 for ac_file in $ac_files ''
2530 test -f "$ac_file" || continue
2532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2535 # We found the default executable, but exeext='' is most
2539 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2541 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 # We set ac_cv_exeext here because the later test for it is not
2544 # safe: cross compilers may not add the suffix if given an `-o'
2545 # argument, so we may need to know it at that point already.
2546 # Even if this section looks crufty: it has the advantage of
2553 test "$ac_cv_exeext" = no && ac_cv_exeext=
2558 if test -z "$ac_file"; then :
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
2567 See \`config.log
' for more details" "$LINENO" 5; }
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2573 $as_echo_n "checking for C compiler default output file name... " >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2575 $as_echo "$ac_file" >&6; }
2576 ac_exeext=$ac_cv_exeext
2578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2581 $as_echo_n "checking for suffix of executables... " >&6; }
2582 if { { ac_try="$ac_link"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_link") 2>&5
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; then :
2593 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2594 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2595 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2597 for ac_file
in conftest.exe conftest conftest.
*; do
2598 test -f "$ac_file" ||
continue
2600 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2601 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details" "$LINENO" 5; }
2612 rm -f conftest conftest
$ac_cv_exeext
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2614 $as_echo "$ac_cv_exeext" >&6; }
2616 rm -f conftest.
$ac_ext
2617 EXEEXT
=$ac_cv_exeext
2619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2625 FILE *f = fopen ("conftest.out", "w");
2626 return ferror (f) || fclose (f) != 0;
2632 ac_clean_files
="$ac_clean_files conftest.out"
2633 # Check that the compiler produces executables we can run. If not, either
2634 # the compiler is broken, or we cross compile.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2636 $as_echo_n "checking whether we are cross compiling... " >&6; }
2637 if test "$cross_compiling" != yes; then
2638 { { ac_try
="$ac_link"
2640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>&5
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; }
2649 if { ac_try='./conftest$ac_cv_exeext'
2650 { { case "(($ac_try" in
2651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2652 *) ac_try_echo
=$ac_try;;
2654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655 $as_echo "$ac_try_echo"; } >&5
2656 (eval "$ac_try") 2>&5
2658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659 test $ac_status = 0; }; }; then
2662 if test "$cross_compiling" = maybe
; then
2665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error $?
"cannot run C compiled programs.
2668 If you meant to cross compile, use \`--host'.
2669 See \`config.log' for more details" "$LINENO" 5; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2674 $as_echo "$cross_compiling" >&6; }
2676 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2677 ac_clean_files
=$ac_clean_files_save
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2679 $as_echo_n "checking for suffix of object files... " >&6; }
2680 if ${ac_cv_objext+:} false
; then :
2681 $as_echo_n "(cached) " >&6
2683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2694 rm -f conftest.o conftest.obj
2695 if { { ac_try
="$ac_compile"
2697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_compile") 2>&5
2704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705 test $ac_status = 0; }; then :
2706 for ac_file in conftest.o conftest.obj conftest.*; do
2707 test -f "$ac_file" || continue;
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2721 See \
`config.log' for more details" "$LINENO" 5; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2726 $as_echo "$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2731 if ${ac_cv_c_compiler_gnu+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2748 if ac_fn_c_try_compile "$LINENO"; then :
2753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2759 if test $ac_compiler_gnu = yes; then
2764 ac_test_CFLAGS=${CFLAGS+set}
2765 ac_save_CFLAGS=$CFLAGS
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2768 if ${ac_cv_prog_cc_g+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 ac_save_c_werror_flag=$ac_c_werror_flag
2772 ac_c_werror_flag=yes
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2786 if ac_fn_c_try_compile "$LINENO"; then :
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2801 if ac_fn_c_try_compile "$LINENO"; then :
2804 ac_c_werror_flag=$ac_save_c_werror_flag
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2817 if ac_fn_c_try_compile "$LINENO"; then :
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 ac_c_werror_flag=$ac_save_c_werror_flag
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2828 $as_echo "$ac_cv_prog_cc_g" >&6; }
2829 if test "$ac_test_CFLAGS" = set; then
2830 CFLAGS=$ac_save_CFLAGS
2831 elif test $ac_cv_prog_cc_g = yes; then
2832 if test "$GCC" = yes; then
2838 if test "$GCC" = yes; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2846 if ${ac_cv_prog_cc_c89+:} false; then :
2847 $as_echo_n "(cached) " >&6
2849 ac_cv_prog_cc_c89=no
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2857 struct buf { int x; };
2858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859 static char *e (p, i)
2865 static char *f (char * (*g) (char **, int), char **p, ...)
2870 s = g (p, va_arg (v,int));
2875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2876 function prototypes and stuff, but not '\xHH' hex character constants.
2877 These don't provoke an error unfortunately, instead are silently treated
2878 as 'x'. The following induces an error, until -std is added to get
2879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2880 array size at least. It's necessary to write '\x00'==0 to get something
2881 that's true only with -std. */
2882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2885 inside strings and character constants. */
2887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2889 int test (int i, double x);
2890 struct s1 {int (*f) (int a);};
2891 struct s2 {int (*f) (double a);};
2892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 CC="$ac_save_CC $ac_arg"
2907 if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_cv_prog_cc_c89=$ac_arg
2910 rm -f core conftest.err conftest.$ac_objext
2911 test "x$ac_cv_prog_cc_c89" != "xno" && break
2913 rm -f conftest.$ac_ext
2918 case "x$ac_cv_prog_cc_c89" in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2921 $as_echo "none needed" >&6; } ;;
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2924 $as_echo "unsupported" >&6; } ;;
2926 CC="$CC $ac_cv_prog_cc_c89"
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2930 if test "x$ac_cv_prog_cc_c89" != xno; then :
2935 ac_cpp='$CXXCPP $CPPFLAGS'
2936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2941 ac_cpp='$CXXCPP $CPPFLAGS'
2942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2945 if test -z "$CXX"; then
2946 if test -n "$CCC"; then
2949 if test -n "$ac_tool_prefix"; then
2950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_CXX+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$CXX"; then
2960 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test -n "$CXX"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2982 $as_echo "$CXX" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2989 test -n "$CXX" && break
2992 if test -z "$CXX"; then
2994 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997 set dummy $ac_prog; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_CXX"; then
3004 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_ac_ct_CXX="$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3024 if test -n "$ac_ct_CXX"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3026 $as_echo "$ac_ct_CXX" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3033 test -n "$ac_ct_CXX" && break
3036 if test "x$ac_ct_CXX" = x; then
3039 case $cross_compiling:$ac_tool_warned in
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned=yes ;;
3051 # Provide some information about the compiler.
3052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3055 for ac_option in --version -v -V -qversion; do
3056 { { ac_try="$ac_compiler $ac_option >&5"
3058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3059 *) ac_try_echo
=$ac_try;;
3061 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3065 if test -s conftest.err
; then
3067 ... rest of stderr output deleted ...
3068 10q' conftest.err
>conftest.er1
3069 cat conftest.er1
>&5
3071 rm -f conftest.er1 conftest.err
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3077 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3078 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3079 $as_echo_n "(cached) " >&6
3081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3095 if ac_fn_cxx_try_compile
"$LINENO"; then :
3100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3101 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3105 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3106 if test $ac_compiler_gnu = yes; then
3111 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3112 ac_save_CXXFLAGS
=$CXXFLAGS
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3114 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3115 if ${ac_cv_prog_cxx_g+:} false
; then :
3116 $as_echo_n "(cached) " >&6
3118 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3119 ac_cxx_werror_flag
=yes
3122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3133 if ac_fn_cxx_try_compile
"$LINENO"; then :
3134 ac_cv_prog_cxx_g
=yes
3137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3148 if ac_fn_cxx_try_compile
"$LINENO"; then :
3151 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3164 if ac_fn_cxx_try_compile
"$LINENO"; then :
3165 ac_cv_prog_cxx_g
=yes
3167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3172 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3175 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3176 if test "$ac_test_CXXFLAGS" = set; then
3177 CXXFLAGS
=$ac_save_CXXFLAGS
3178 elif test $ac_cv_prog_cxx_g = yes; then
3179 if test "$GXX" = yes; then
3185 if test "$GXX" = yes; then
3192 ac_cpp
='$CXXCPP $CPPFLAGS'
3193 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3199 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_AR+:} false
; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$AR"; then
3206 ac_cv_prog_AR
="$AR" # Let the user override the test.
3208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir
=.
3213 for ac_exec_ext
in '' $ac_executable_extensions; do
3214 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 if test -n "$AR"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3228 $as_echo "$AR" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3236 if test -z "$ac_cv_prog_AR"; then
3238 # Extract the first word of "ar", so it can be a program name with args.
3239 set dummy
ar; ac_word
=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$ac_ct_AR"; then
3246 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_ac_ct_AR
="ar"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3266 if test -n "$ac_ct_AR"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3268 $as_echo "$ac_ct_AR" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3274 if test "x$ac_ct_AR" = x
; then
3277 case $cross_compiling:$ac_tool_warned in
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned
=yes ;;
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3291 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 $as_echo_n "checking for $ac_word... " >&6; }
3294 if ${ac_cv_prog_RANLIB+:} false
; then :
3295 $as_echo_n "(cached) " >&6
3297 if test -n "$RANLIB"; then
3298 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 RANLIB
=$ac_cv_prog_RANLIB
3318 if test -n "$RANLIB"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3320 $as_echo "$RANLIB" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3328 if test -z "$ac_cv_prog_RANLIB"; then
3329 ac_ct_RANLIB
=$RANLIB
3330 # Extract the first word of "ranlib", so it can be a program name with args.
3331 set dummy ranlib
; ac_word
=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$ac_ct_RANLIB"; then
3338 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir
=.
3345 for ac_exec_ext
in '' $ac_executable_extensions; do
3346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3358 if test -n "$ac_ct_RANLIB"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3360 $as_echo "$ac_ct_RANLIB" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3366 if test "x$ac_ct_RANLIB" = x
; then
3369 case $cross_compiling:$ac_tool_warned in
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned
=yes ;;
3375 RANLIB
=$ac_ct_RANLIB
3378 RANLIB
="$ac_cv_prog_RANLIB"
3384 ac_cpp
='$CXXCPP $CPPFLAGS'
3385 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3389 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3390 if test -z "$CXXCPP"; then
3391 if ${ac_cv_prog_CXXCPP+:} false
; then :
3392 $as_echo_n "(cached) " >&6
3394 # Double quotes because CXXCPP needs to be expanded
3395 for CXXCPP
in "$CXX -E" "/lib/cpp"
3398 for ac_cxx_preproc_warn_flag
in '' yes
3400 # Use a header file that comes with gcc, so configuring glibc
3401 # with a fresh cross-compiler works.
3402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 # <limits.h> exists even on freestanding compilers.
3404 # On the NeXT, cc -E runs the code through the compiler's parser,
3405 # not just through cpp. "Syntax error" is here to catch this case.
3406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3409 # include <limits.h>
3411 # include <assert.h>
3415 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3418 # Broken: fails on valid input.
3421 rm -f conftest.err conftest.i conftest.
$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427 #include <ac_nonexistent.h>
3429 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3430 # Broken: success on invalid input.
3433 # Passes both tests.
3437 rm -f conftest.err conftest.i conftest.
$ac_ext
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.i conftest.err conftest.
$ac_ext
3442 if $ac_preproc_ok; then :
3447 ac_cv_prog_CXXCPP
=$CXXCPP
3450 CXXCPP
=$ac_cv_prog_CXXCPP
3452 ac_cv_prog_CXXCPP
=$CXXCPP
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3455 $as_echo "$CXXCPP" >&6; }
3457 for ac_cxx_preproc_warn_flag
in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3462 # <limits.h> exists even on freestanding compilers.
3463 # On the NeXT, cc -E runs the code through the compiler's parser,
3464 # not just through cpp. "Syntax error" is here to catch this case.
3465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3468 # include <limits.h>
3470 # include <assert.h>
3474 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3477 # Broken: fails on valid input.
3480 rm -f conftest.err conftest.i conftest.
$ac_ext
3482 # OK, works on sane cases. Now check whether nonexistent headers
3483 # can be detected and how.
3484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486 #include <ac_nonexistent.h>
3488 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3489 # Broken: success on invalid input.
3492 # Passes both tests.
3496 rm -f conftest.err conftest.i conftest.
$ac_ext
3499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 rm -f conftest.i conftest.err conftest.
$ac_ext
3501 if $ac_preproc_ok; then :
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
3507 See \`config.log' for more details" "$LINENO" 5; }
3511 ac_cpp
='$CXXCPP $CPPFLAGS'
3512 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3518 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3519 if ${ac_cv_path_GREP+:} false
; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -z "$GREP"; then
3523 ac_path_GREP_found
=false
3524 # Loop through the user's path and test for each of PROGNAME-LIST
3525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3529 test -z "$as_dir" && as_dir
=.
3530 for ac_prog
in grep ggrep
; do
3531 for ac_exec_ext
in '' $ac_executable_extensions; do
3532 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3533 as_fn_executable_p
"$ac_path_GREP" ||
continue
3534 # Check for GNU ac_path_GREP and select it if it is found.
3535 # Check for GNU $ac_path_GREP
3536 case `"$ac_path_GREP" --version 2>&1` in
3538 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3541 $as_echo_n 0123456789 >"conftest.in"
3544 cat "conftest.in" "conftest.in" >"conftest.tmp"
3545 mv "conftest.tmp" "conftest.in"
3546 cp "conftest.in" "conftest.nl"
3547 $as_echo 'GREP' >> "conftest.nl"
3548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3549 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3550 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3552 # Best one so far, save it but keep looking for a better one
3553 ac_cv_path_GREP
="$ac_path_GREP"
3554 ac_path_GREP_max
=$ac_count
3556 # 10*(2^10) chars as input seems more than enough
3557 test $ac_count -gt 10 && break
3559 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3562 $ac_path_GREP_found && break 3
3567 if test -z "$ac_cv_path_GREP"; then
3568 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3571 ac_cv_path_GREP
=$GREP
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3576 $as_echo "$ac_cv_path_GREP" >&6; }
3577 GREP
="$ac_cv_path_GREP"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3581 $as_echo_n "checking for egrep... " >&6; }
3582 if ${ac_cv_path_EGREP+:} false
; then :
3583 $as_echo_n "(cached) " >&6
3585 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3586 then ac_cv_path_EGREP
="$GREP -E"
3588 if test -z "$EGREP"; then
3589 ac_path_EGREP_found
=false
3590 # Loop through the user's path and test for each of PROGNAME-LIST
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3592 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_prog
in egrep; do
3597 for ac_exec_ext
in '' $ac_executable_extensions; do
3598 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3599 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3600 # Check for GNU ac_path_EGREP and select it if it is found.
3601 # Check for GNU $ac_path_EGREP
3602 case `"$ac_path_EGREP" --version 2>&1` in
3604 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3607 $as_echo_n 0123456789 >"conftest.in"
3610 cat "conftest.in" "conftest.in" >"conftest.tmp"
3611 mv "conftest.tmp" "conftest.in"
3612 cp "conftest.in" "conftest.nl"
3613 $as_echo 'EGREP' >> "conftest.nl"
3614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3615 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3616 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3618 # Best one so far, save it but keep looking for a better one
3619 ac_cv_path_EGREP
="$ac_path_EGREP"
3620 ac_path_EGREP_max
=$ac_count
3622 # 10*(2^10) chars as input seems more than enough
3623 test $ac_count -gt 10 && break
3625 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3628 $ac_path_EGREP_found && break 3
3633 if test -z "$ac_cv_path_EGREP"; then
3634 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3637 ac_cv_path_EGREP
=$EGREP
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3643 $as_echo "$ac_cv_path_EGREP" >&6; }
3644 EGREP
="$ac_cv_path_EGREP"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3648 $as_echo_n "checking for ANSI C header files... " >&6; }
3649 if ${ac_cv_header_stdc+:} false
; then :
3650 $as_echo_n "(cached) " >&6
3652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3667 if ac_fn_cxx_try_compile
"$LINENO"; then :
3668 ac_cv_header_stdc
=yes
3670 ac_cv_header_stdc
=no
3672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3674 if test $ac_cv_header_stdc = yes; then
3675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 $EGREP "memchr" >/dev
/null
2>&1; then :
3685 ac_cv_header_stdc
=no
3691 if test $ac_cv_header_stdc = yes; then
3692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 $EGREP "free" >/dev
/null
2>&1; then :
3702 ac_cv_header_stdc
=no
3708 if test $ac_cv_header_stdc = yes; then
3709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3710 if test "$cross_compiling" = yes; then :
3713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3717 #if ((' ' & 0x0FF) == 0x020)
3718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3721 # define ISLOWER(c) \
3722 (('a' <= (c) && (c) <= 'i') \
3723 || ('j' <= (c) && (c) <= 'r') \
3724 || ('s' <= (c) && (c) <= 'z'))
3725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3733 for (i = 0; i < 256; i++)
3734 if (XOR (islower (i), ISLOWER (i))
3735 || toupper (i) != TOUPPER (i))
3740 if ac_fn_cxx_try_run
"$LINENO"; then :
3743 ac_cv_header_stdc
=no
3745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3746 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3752 $as_echo "$ac_cv_header_stdc" >&6; }
3753 if test $ac_cv_header_stdc = yes; then
3755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3760 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3761 inttypes.h stdint.h unistd.h
3763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3764 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3766 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3767 cat >>confdefs.h
<<_ACEOF
3768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3777 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3778 if ${ac_cv_c_bigendian+:} false
; then :
3779 $as_echo_n "(cached) " >&6
3781 ac_cv_c_bigendian
=unknown
3782 # See if we're dealing with a universal compiler.
3783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #ifndef __APPLE_CC__
3786 not a universal capable compiler
3791 if ac_fn_cxx_try_compile
"$LINENO"; then :
3793 # Check for potential -arch flags. It is not universal unless
3794 # there are at least two -arch flags with different values.
3797 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3798 if test -n "$ac_prev"; then
3800 i?
86 | x86_64 | ppc | ppc64
)
3801 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
3804 ac_cv_c_bigendian
=universal
3810 elif test "x$ac_word" = "x-arch"; then
3815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 if test $ac_cv_c_bigendian = unknown
; then
3817 # See if sys/param.h defines the BYTE_ORDER macro.
3818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #include <sys/types.h>
3821 #include <sys/param.h>
3826 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3827 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3836 if ac_fn_cxx_try_compile
"$LINENO"; then :
3837 # It does; now see whether it defined to BIG_ENDIAN or not.
3838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <sys/types.h>
3841 #include <sys/param.h>
3846 #if BYTE_ORDER != BIG_ENDIAN
3854 if ac_fn_cxx_try_compile
"$LINENO"; then :
3855 ac_cv_c_bigendian
=yes
3857 ac_cv_c_bigendian
=no
3859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3863 if test $ac_cv_c_bigendian = unknown
; then
3864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3872 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3880 if ac_fn_cxx_try_compile
"$LINENO"; then :
3881 # It does; now see whether it defined to _BIG_ENDIAN or not.
3882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3897 if ac_fn_cxx_try_compile
"$LINENO"; then :
3898 ac_cv_c_bigendian
=yes
3900 ac_cv_c_bigendian
=no
3902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3906 if test $ac_cv_c_bigendian = unknown
; then
3907 # Compile a test program.
3908 if test "$cross_compiling" = yes; then :
3909 # Try to guess by grepping values from an object file.
3910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 short int ascii_mm[] =
3913 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3914 short int ascii_ii[] =
3915 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3916 int use_ascii (int i) {
3917 return ascii_mm[i] + ascii_ii[i];
3919 short int ebcdic_ii[] =
3920 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3921 short int ebcdic_mm[] =
3922 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3923 int use_ebcdic (int i) {
3924 return ebcdic_mm[i] + ebcdic_ii[i];
3931 return use_ascii (foo) == use_ebcdic (foo);
3936 if ac_fn_cxx_try_compile
"$LINENO"; then :
3937 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3938 ac_cv_c_bigendian
=yes
3940 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3941 if test "$ac_cv_c_bigendian" = unknown
; then
3942 ac_cv_c_bigendian
=no
3944 # finding both strings is unlikely to happen, but who knows?
3945 ac_cv_c_bigendian
=unknown
3949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 $ac_includes_default
3958 /* Are we little or big endian? From Harbison&Steele. */
3962 char c[sizeof (long int)];
3965 return u.c[sizeof (long int) - 1] == 1;
3971 if ac_fn_cxx_try_run
"$LINENO"; then :
3972 ac_cv_c_bigendian
=no
3974 ac_cv_c_bigendian
=yes
3976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3983 $as_echo "$ac_cv_c_bigendian" >&6; }
3984 case $ac_cv_c_bigendian in #(
3986 as_fn_error $?
"Spike requires a little-endian host" "$LINENO" 5;; #(
3991 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3995 as_fn_error $?
"unknown endianness
3996 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4000 #-------------------------------------------------------------------------
4001 # MCPPBS specific program checks
4002 #-------------------------------------------------------------------------
4003 # These macros check to see if we can do a stow-based install and also
4004 # check for an isa simulator suitable for running the unit test programs
4007 # Find a good install program. We prefer a C program (faster),
4008 # so one script is as good as another. But avoid the broken or
4009 # incompatible versions:
4010 # SysV /etc/install, /usr/sbin/install
4011 # SunOS /usr/etc/install
4012 # IRIX /sbin/install
4014 # AmigaOS /C/install, which installs bootblocks on floppy discs
4015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4018 # OS/2's system install, which has a completely different semantic
4019 # ./install, which can be erroneously created by make from ./install.sh.
4020 # Reject install programs that cannot install multiple files.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4022 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4023 if test -z "$INSTALL"; then
4024 if ${ac_cv_path_install+:} false
; then :
4025 $as_echo_n "(cached) " >&6
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 # Account for people who put trailing slashes in PATH elements.
4033 case $as_dir/ in #((
4034 .
/ | .
// |
/[cC
]/* | \
4035 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4036 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4039 # OSF1 and SCO ODT 3.0 have their own names for install.
4040 # Don't use installbsd from OSF since it installs stuff as root
4042 for ac_prog
in ginstall scoinst
install; do
4043 for ac_exec_ext
in '' $ac_executable_extensions; do
4044 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4045 if test $ac_prog = install &&
4046 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4047 # AIX install. It has an incompatible calling convention.
4049 elif test $ac_prog = install &&
4050 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4051 # program-specific install script used by HP pwplus--don't use.
4054 rm -rf conftest.one conftest.two conftest.dir
4055 echo one
> conftest.one
4056 echo two
> conftest.two
4058 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4059 test -s conftest.one
&& test -s conftest.two
&&
4060 test -s conftest.dir
/conftest.one
&&
4061 test -s conftest.dir
/conftest.two
4063 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4076 rm -rf conftest.one conftest.two conftest.dir
4079 if test "${ac_cv_path_install+set}" = set; then
4080 INSTALL
=$ac_cv_path_install
4082 # As a last resort, use the slow shell script. Don't cache a
4083 # value for INSTALL within a source directory, because that will
4084 # break other packages using the cache if that directory is
4085 # removed, or if the value is a relative name.
4086 INSTALL
=$ac_install_sh
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4090 $as_echo "$INSTALL" >&6; }
4092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4093 # It thinks the first close brace ends the variable substitution.
4094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4098 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4102 # Configure command line option
4104 # Check whether --enable-stow was given.
4105 if test "${enable_stow+set}" = set; then :
4106 enableval
=$enable_stow; enable_stow
="yes"
4114 # Environment variables
4119 # Check for install script
4123 # Deterimine if native build and set prefix appropriately
4125 if test ${enable_stow} = "yes" ; then :
4129 # Extract the first word of "$ac_prog", so it can be a program name with args.
4130 set dummy
$ac_prog; ac_word
=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_stow+:} false
; then :
4134 $as_echo_n "(cached) " >&6
4136 if test -n "$stow"; then
4137 ac_cv_prog_stow
="$stow" # Let the user override the test.
4139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4143 test -z "$as_dir" && as_dir
=.
4144 for ac_exec_ext
in '' $ac_executable_extensions; do
4145 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_stow
="$ac_prog"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 stow
=$ac_cv_prog_stow
4157 if test -n "$stow"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
4159 $as_echo "$stow" >&6; }
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4166 test -n "$stow" && break
4168 test -n "$stow" || stow
="no"
4170 if test ${stow} = "no" ; then :
4172 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
4176 # Check if native or non-native build
4178 if test "${build}" = "${host}" ; then :
4181 # build == host so this is a native build. Make sure --prefix not
4182 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
4184 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
4186 prefix
="${STOW_PREFIX}"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
4188 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4190 $as_echo "$as_me: prefix=${prefix}" >&6;}
4198 # build != host so this is a non-native build. Make sure --prefix
4199 # not set and $STOW_ROOT is set, then set
4200 # prefix=$STOW_ROOT/${host_alias}.
4202 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
4204 prefix
="${STOW_ROOT}/${host_alias}"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
4206 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4208 $as_echo "$as_me: prefix=${prefix}" >&6;}
4220 #-------------------------------------------------------------------------
4221 # Checks for header files
4222 #-------------------------------------------------------------------------
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4225 $as_echo_n "checking for ANSI C header files... " >&6; }
4226 if ${ac_cv_header_stdc+:} false
; then :
4227 $as_echo_n "(cached) " >&6
4229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4244 if ac_fn_cxx_try_compile
"$LINENO"; then :
4245 ac_cv_header_stdc
=yes
4247 ac_cv_header_stdc
=no
4249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4251 if test $ac_cv_header_stdc = yes; then
4252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "memchr" >/dev
/null
2>&1; then :
4262 ac_cv_header_stdc
=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 $EGREP "free" >/dev
/null
2>&1; then :
4279 ac_cv_header_stdc
=no
4285 if test $ac_cv_header_stdc = yes; then
4286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4287 if test "$cross_compiling" = yes; then :
4290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4294 #if ((' ' & 0x0FF) == 0x020)
4295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4298 # define ISLOWER(c) \
4299 (('a' <= (c) && (c) <= 'i') \
4300 || ('j' <= (c) && (c) <= 'r') \
4301 || ('s' <= (c) && (c) <= 'z'))
4302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4310 for (i = 0; i < 256; i++)
4311 if (XOR (islower (i), ISLOWER (i))
4312 || toupper (i) != TOUPPER (i))
4317 if ac_fn_cxx_try_run
"$LINENO"; then :
4320 ac_cv_header_stdc
=no
4322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4323 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4329 $as_echo "$ac_cv_header_stdc" >&6; }
4330 if test $ac_cv_header_stdc = yes; then
4332 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4337 #-------------------------------------------------------------------------
4338 # Default compiler flags
4339 #-------------------------------------------------------------------------
4341 CFLAGS
="-Wall -Wno-unused -g -O2"
4343 CXXFLAGS
="-Wall -Wno-unused -g -O2 -std=c++11"
4346 #-------------------------------------------------------------------------
4347 # MCPPBS subproject list
4348 #-------------------------------------------------------------------------
4349 # Order list so that subprojects only depend on those listed earlier.
4350 # The '*' suffix indicates an optional subproject. The '**' suffix
4351 # indicates an optional subproject which is also the name of a group.
4355 # Add command line argument to enable all optional subprojects
4357 # Check whether --enable-optional-subprojects was given.
4358 if test "${enable_optional_subprojects+set}" = set; then :
4359 enableval
=$enable_optional_subprojects;
4363 # Loop through the subprojects given in the macro argument
4367 # Determine if this is a required or an optional subproject
4371 # Determine if there is a group with the same name
4375 # Create variations of the subproject name suitable for use as a CPP
4376 # enabled define, a shell enabled variable, and a shell function
4388 # Add subproject to our running list
4390 subprojects
="$subprojects riscv"
4392 # Process the subproject appropriately. If enabled add it to the
4393 # $enabled_subprojects running shell variable, set a
4394 # SUBPROJECT_ENABLED C define, and include the appropriate
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4399 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4400 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4402 enable_riscv_sproj
="yes"
4403 subprojects_enabled
="$subprojects_enabled riscv"
4405 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4408 ac_cpp
='$CXXCPP $CPPFLAGS'
4409 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4415 # Check whether --with-isa was given.
4416 if test "${with_isa+set}" = set; then :
4418 cat >>confdefs.h
<<_ACEOF
4419 #define DEFAULT_ISA "$withval"
4424 cat >>confdefs.h
<<_ACEOF
4425 #define DEFAULT_ISA "RV64IMAFDC"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4432 $as_echo_n "checking for library containing dlopen... " >&6; }
4433 if ${ac_cv_search_dlopen+:} false
; then :
4434 $as_echo_n "(cached) " >&6
4436 ac_func_search_save_LIBS
=$LIBS
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4440 /* Override any GCC internal prototype to avoid an error.
4441 Use char because int might match the return type of a GCC
4442 builtin and then its argument prototype would still apply. */
4455 for ac_lib
in '' dl dld
; do
4456 if test -z "$ac_lib"; then
4457 ac_res
="none required"
4460 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4462 if ac_fn_cxx_try_link
"$LINENO"; then :
4463 ac_cv_search_dlopen
=$ac_res
4465 rm -f core conftest.err conftest.
$ac_objext \
4467 if ${ac_cv_search_dlopen+:} false
; then :
4471 if ${ac_cv_search_dlopen+:} false
; then :
4474 ac_cv_search_dlopen
=no
4477 LIBS
=$ac_func_search_save_LIBS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4480 $as_echo "$ac_cv_search_dlopen" >&6; }
4481 ac_res
=$ac_cv_search_dlopen
4482 if test "$ac_res" != no
; then :
4483 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4487 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4493 # Check whether --with-fesvr was given.
4494 if test "${with_fesvr+set}" = set; then :
4495 withval
=$with_fesvr;
4496 LDFLAGS
="-L$withval/lib $LDFLAGS"
4497 CPPFLAGS
="-I$withval/include $CPPFLAGS"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4504 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4505 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4506 $as_echo_n "(cached) " >&6
4508 ac_check_lib_save_LIBS
=$LIBS
4509 LIBS
="-lfesvr -pthread $LIBS"
4510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4513 /* Override any GCC internal prototype to avoid an error.
4514 Use char because int might match the return type of a GCC
4515 builtin and then its argument prototype would still apply. */
4519 char libfesvr_is_present ();
4523 return libfesvr_is_present ();
4528 if ac_fn_cxx_try_link
"$LINENO"; then :
4529 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4531 ac_cv_lib_fesvr_libfesvr_is_present
=no
4533 rm -f core conftest.err conftest.
$ac_objext \
4534 conftest
$ac_exeext conftest.
$ac_ext
4535 LIBS
=$ac_check_lib_save_LIBS
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4538 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4539 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4540 cat >>confdefs.h
<<_ACEOF
4541 #define HAVE_LIBFESVR 1
4544 LIBS
="-lfesvr $LIBS"
4547 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4552 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4553 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4554 $as_echo_n "(cached) " >&6
4556 ac_check_lib_save_LIBS
=$LIBS
4557 LIBS
="-lpthread $LIBS"
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4561 /* Override any GCC internal prototype to avoid an error.
4562 Use char because int might match the return type of a GCC
4563 builtin and then its argument prototype would still apply. */
4567 char pthread_create ();
4571 return pthread_create ();
4576 if ac_fn_cxx_try_link
"$LINENO"; then :
4577 ac_cv_lib_pthread_pthread_create
=yes
4579 ac_cv_lib_pthread_pthread_create
=no
4581 rm -f core conftest.err conftest.
$ac_objext \
4582 conftest
$ac_exeext conftest.
$ac_ext
4583 LIBS
=$ac_check_lib_save_LIBS
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4586 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4587 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4588 cat >>confdefs.h
<<_ACEOF
4589 #define HAVE_LIBPTHREAD 1
4592 LIBS
="-lpthread $LIBS"
4595 as_fn_error $?
"libpthread is required" "$LINENO" 5
4599 # Check whether --enable-commitlog was given.
4600 if test "${enable_commitlog+set}" = set; then :
4601 enableval
=$enable_commitlog;
4604 if test "x$enable_commitlog" = "xyes"; then :
4607 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4612 # Check whether --enable-histogram was given.
4613 if test "${enable_histogram+set}" = set; then :
4614 enableval
=$enable_histogram;
4617 if test "x$enable_histogram" = "xyes"; then :
4620 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4625 # Check whether --enable-dirty was given.
4626 if test "${enable_dirty+set}" = set; then :
4627 enableval
=$enable_dirty;
4630 if test "x$enable_dirty" = "xyes"; then :
4633 $as_echo "#define RISCV_ENABLE_DIRTY /**/" >>confdefs.h
4642 # Determine if this is a required or an optional subproject
4646 # Determine if there is a group with the same name
4650 # Create variations of the subproject name suitable for use as a CPP
4651 # enabled define, a shell enabled variable, and a shell function
4663 # Add subproject to our running list
4665 subprojects
="$subprojects dummy_rocc"
4667 # Process the subproject appropriately. If enabled add it to the
4668 # $enabled_subprojects running shell variable, set a
4669 # SUBPROJECT_ENABLED C define, and include the appropriate
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4674 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4675 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4677 enable_dummy_rocc_sproj
="yes"
4678 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4680 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4687 # Determine if this is a required or an optional subproject
4691 # Determine if there is a group with the same name
4695 # Create variations of the subproject name suitable for use as a CPP
4696 # enabled define, a shell enabled variable, and a shell function
4708 # Add subproject to our running list
4710 subprojects
="$subprojects softfloat"
4712 # Process the subproject appropriately. If enabled add it to the
4713 # $enabled_subprojects running shell variable, set a
4714 # SUBPROJECT_ENABLED C define, and include the appropriate
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4719 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4720 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4722 enable_softfloat_sproj
="yes"
4723 subprojects_enabled
="$subprojects_enabled softfloat"
4725 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4732 # Determine if this is a required or an optional subproject
4736 # Determine if there is a group with the same name
4740 # Create variations of the subproject name suitable for use as a CPP
4741 # enabled define, a shell enabled variable, and a shell function
4753 # Add subproject to our running list
4755 subprojects
="$subprojects spike_main"
4757 # Process the subproject appropriately. If enabled add it to the
4758 # $enabled_subprojects running shell variable, set a
4759 # SUBPROJECT_ENABLED C define, and include the appropriate
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4764 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4765 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4767 enable_spike_main_sproj
="yes"
4768 subprojects_enabled
="$subprojects_enabled spike_main"
4770 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4777 # Output make variables
4784 #-------------------------------------------------------------------------
4785 # MCPPBS subproject groups
4786 #-------------------------------------------------------------------------
4787 # If a group has the same name as a subproject then you must add the
4788 # '**' suffix in the subproject list above. The list of subprojects in a
4789 # group should be ordered so that subprojets only depend on those listed
4790 # earlier. Here is an example:
4792 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4795 #-------------------------------------------------------------------------
4797 #-------------------------------------------------------------------------
4799 ac_config_headers
="$ac_config_headers config.h"
4801 ac_config_files
="$ac_config_files Makefile"
4803 ac_config_files
="$ac_config_files riscv-spike.pc"
4805 ac_config_files
="$ac_config_files riscv-riscv.pc"
4807 ac_config_files
="$ac_config_files riscv-softfloat.pc"
4809 ac_config_files
="$ac_config_files riscv-dummy_rocc.pc"
4811 ac_config_files
="$ac_config_files riscv-spike_main.pc"
4813 cat >confcache
<<\_ACEOF
4814 # This file is a shell script that caches the results of configure
4815 # tests run on this system so they can be shared between configure
4816 # scripts and configure runs, see configure's option --config-cache.
4817 # It is not useful on other systems. If it contains results you don't
4818 # want to keep, you may remove or edit it.
4820 # config.status only pays attention to the cache file if you give it
4821 # the --recheck option to rerun configure.
4823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4829 # The following way of writing the cache mishandles newlines in values,
4830 # but we know of no workaround that is simple, portable, and efficient.
4831 # So, we kill variables containing newlines.
4832 # Ultrix sh set writes to stderr and can't be redirected directly,
4833 # and sets the high bit in the cache file unless we assign to the vars.
4835 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4836 eval ac_val
=\$
$ac_var
4840 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4844 _ | IFS | as_nl
) ;; #(
4845 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4846 *) { eval $ac_var=; unset $ac_var;} ;;
4852 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4853 *${as_nl}ac_space
=\
*)
4854 # `set' does not quote correctly, so add quotes: double-quote
4855 # substitution turns \\\\ into \\, and sed turns \\ into \.
4858 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4861 # `set' quotes correctly as required by POSIX, so do not add quotes.
4862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4871 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4873 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4875 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4876 if test -w "$cache_file"; then
4877 if test "x$cache_file" != "x/dev/null"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4879 $as_echo "$as_me: updating cache $cache_file" >&6;}
4880 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4881 cat confcache
>"$cache_file"
4883 case $cache_file in #(
4885 mv -f confcache
"$cache_file"$$
&&
4886 mv -f "$cache_file"$$
"$cache_file" ;; #(
4888 mv -f confcache
"$cache_file" ;;
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4894 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4899 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4900 # Let make expand exec_prefix.
4901 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4903 DEFS
=-DHAVE_CONFIG_H
4908 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4909 # 1. Remove the extension, and $U if already installed.
4910 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4911 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4913 # will be set to the directory where LIBOBJS objects are built.
4914 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4915 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4919 LTLIBOBJS
=$ac_ltlibobjs
4924 : "${CONFIG_STATUS=./config.status}"
4926 ac_clean_files_save
=$ac_clean_files
4927 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4929 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4931 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4933 # Generated by $as_me.
4934 # Run this file to recreate the current configuration.
4935 # Compiler output produced by configure, useful for debugging
4936 # configure, is in config.log if it exists.
4942 SHELL=\${CONFIG_SHELL-$SHELL}
4945 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4946 ## -------------------- ##
4947 ## M4sh Initialization. ##
4948 ## -------------------- ##
4950 # Be more Bourne compatible
4951 DUALCASE
=1; export DUALCASE
# for MKS sh
4952 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4955 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4956 # is contrary to our usage. Disable this feature.
4957 alias -g '${1+"$@"}'='"$@"'
4958 setopt NO_GLOB_SUBST
4960 case `(set -o) 2>/dev/null` in #(
4972 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4973 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4975 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4976 # Prefer a ksh shell builtin over an external printf program on Solaris,
4977 # but without wasting forks for bash or zsh.
4978 if test -z "$BASH_VERSION$ZSH_VERSION" \
4979 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4980 as_echo='print
-r --'
4981 as_echo_n='print
-rn --'
4982 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4983 as_echo='printf %s
\n'
4984 as_echo_n='printf %s
'
4986 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4987 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4988 as_echo_n='/usr
/ucb
/echo -n'
4990 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4991 as_echo_n_body='eval
4995 expr "X$arg" : "X\\(.*\\)$as_nl";
4996 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4998 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5000 export as_echo_n_body
5001 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5004 as_echo='sh
-c $as_echo_body as_echo
'
5007 # The user is always right.
5008 if test "${PATH_SEPARATOR+set}" != set; then
5010 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5011 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5018 # We need space, tab and new line, in precisely that order. Quoting is
5019 # there to prevent editors from complaining about space-tab.
5020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5021 # splitting by setting IFS to empty value.)
5024 # Find who we are. Look in the path if we contain no directory separator.
5027 *[\\/]* ) as_myself=$0 ;;
5028 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5039 # We did not find ourselves, most probably we were run as `sh COMMAND'
5040 # in which case we are not to be found in the path.
5041 if test "x$as_myself" = x
; then
5044 if test ! -f "$as_myself"; then
5045 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5049 # Unset variables that we do not need and which cause bugs (e.g. in
5050 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5051 # suppresses any "Segmentation fault" message there. '((' could
5052 # trigger a bug in pdksh 5.2.14.
5053 for as_var
in BASH_ENV ENV MAIL MAILPATH
5054 do eval test x\
${$as_var+set} = xset \
5055 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5068 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5071 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5072 # ----------------------------------------
5073 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5074 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5075 # script with STATUS, using 1 if that was 0.
5078 as_status
=$1; test $as_status -eq 0 && as_status
=1
5080 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5081 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5083 $as_echo "$as_me: error: $2" >&2
5084 as_fn_exit
$as_status
5088 # as_fn_set_status STATUS
5089 # -----------------------
5090 # Set $? to STATUS, without forking.
5094 } # as_fn_set_status
5098 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5108 # Portably unset VAR.
5111 { eval $1=; unset $1;}
5113 as_unset
=as_fn_unset
5114 # as_fn_append VAR VALUE
5115 # ----------------------
5116 # Append the text in VALUE to the end of the definition contained in VAR. Take
5117 # advantage of any shell optimizations that allow amortized linear growth over
5118 # repeated appends, instead of the typical quadratic growth present in naive
5120 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5121 eval 'as_fn_append ()
5132 # as_fn_arith ARG...
5133 # ------------------
5134 # Perform arithmetic evaluation on the ARGs, and store the result in the
5135 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5136 # must be portable across $(()) and expr.
5137 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5138 eval 'as_fn_arith ()
5145 as_val
=`expr "$@" || test $? -eq 1`
5150 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5151 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5157 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5158 as_basename
=basename
5163 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5169 as_me
=`$as_basename -- "$0" ||
5170 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5171 X"$0" : 'X\(//\)$' \| \
5172 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5174 sed '/^.*\/\([^/][^/]*\)\/*$/{
5188 # Avoid depending upon Character Ranges.
5189 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5190 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5191 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5192 as_cr_digits
='0123456789'
5193 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5195 ECHO_C
= ECHO_N
= ECHO_T
=
5196 case `echo -n x` in #(((((
5198 case `echo 'xy\c'` in
5199 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5201 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5208 rm -f conf$$ conf$$.exe conf$$.
file
5209 if test -d conf$$.dir
; then
5210 rm -f conf$$.dir
/conf$$.
file
5213 mkdir conf$$.dir
2>/dev
/null
5215 if (echo >conf$$.
file) 2>/dev
/null
; then
5216 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5218 # ... but there are two gotchas:
5219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5221 # In both cases, we have to default to `cp -pR'.
5222 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5224 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5232 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5233 rmdir conf$$.dir
2>/dev
/null
5238 # Create "$as_dir" as a directory, including parents if necessary.
5243 -*) as_dir
=.
/$as_dir;;
5245 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5249 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5250 *) as_qdir
=$as_dir;;
5252 as_dirs
="'$as_qdir' $as_dirs"
5253 as_dir
=`$as_dirname -- "$as_dir" ||
5254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5255 X"$as_dir" : 'X\(//\)[^/]' \| \
5256 X"$as_dir" : 'X\(//\)$' \| \
5257 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5258 $as_echo X"$as_dir" |
5259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5276 test -d "$as_dir" && break
5278 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5279 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5283 if mkdir
-p .
2>/dev
/null
; then
5284 as_mkdir_p
='mkdir -p "$as_dir"'
5286 test -d .
/-p && rmdir .
/-p
5291 # as_fn_executable_p FILE
5292 # -----------------------
5293 # Test if FILE is an executable regular file.
5294 as_fn_executable_p
()
5296 test -f "$1" && test -x "$1"
5297 } # as_fn_executable_p
5299 as_executable_p
=as_fn_executable_p
5301 # Sed expression to map a string onto a valid CPP name.
5302 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5304 # Sed expression to map a string onto a valid variable name.
5305 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5309 ## ----------------------------------- ##
5310 ## Main body of $CONFIG_STATUS script. ##
5311 ## ----------------------------------- ##
5313 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5316 # Save the log message, to keep $0 and so on meaningful, and to
5317 # report actual input values of CONFIG_FILES etc. instead of their
5318 # values after options handling.
5320 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5321 generated by GNU Autoconf 2.69. Invocation command line was
5323 CONFIG_FILES = $CONFIG_FILES
5324 CONFIG_HEADERS = $CONFIG_HEADERS
5325 CONFIG_LINKS = $CONFIG_LINKS
5326 CONFIG_COMMANDS = $CONFIG_COMMANDS
5329 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5334 case $ac_config_files in *"
5335 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5338 case $ac_config_headers in *"
5339 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5344 # Files that config.status was made for.
5345 config_files="$ac_config_files"
5346 config_headers="$ac_config_headers"
5350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5352 \`$as_me' instantiates files and other configuration actions
5353 from templates according to the current configuration. Unless the files
5354 and actions are specified as TAGs, all are instantiated by default.
5356 Usage: $0 [OPTION]... [TAG]...
5358 -h, --help print this help, then exit
5359 -V, --version print version number and configuration settings, then exit
5360 --config print configuration, then exit
5361 -q, --quiet, --silent
5362 do not print progress messages
5363 -d, --debug don't remove temporary files
5364 --recheck update $as_me by reconfiguring in the same conditions
5365 --file=FILE[:TEMPLATE]
5366 instantiate the configuration file FILE
5367 --header=FILE[:TEMPLATE]
5368 instantiate the configuration header FILE
5370 Configuration files:
5373 Configuration headers:
5376 Report bugs to <Andrew Waterman>."
5379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5382 RISC-V ISA Simulator config.status ?
5383 configured by $0, generated by GNU Autoconf 2.69,
5384 with options \\"\$ac_cs_config\\"
5386 Copyright (C) 2012 Free Software Foundation, Inc.
5387 This config.status script is free software; the Free Software Foundation
5388 gives unlimited permission to copy, distribute and modify it."
5393 test -n "\$AWK" || AWK=awk
5396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5397 # The default lists apply if the user does not specify any file.
5403 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5404 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5408 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5420 # Handling of the options.
5421 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5423 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5424 $as_echo "$ac_cs_version"; exit ;;
5425 --config |
--confi |
--conf |
--con |
--co |
--c )
5426 $as_echo "$ac_cs_config"; exit ;;
5427 --debug |
--debu |
--deb |
--de |
--d |
-d )
5429 --file |
--fil |
--fi |
--f )
5432 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5433 '') as_fn_error $?
"missing file argument" ;;
5435 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5436 ac_need_defaults
=false
;;
5437 --header |
--heade |
--head |
--hea )
5440 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5442 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5443 ac_need_defaults
=false
;;
5445 # Conflict between --help and --header
5446 as_fn_error $?
"ambiguous option: \`$1'
5447 Try \`$0 --help' for more information.";;
5448 --help |
--hel |
-h )
5449 $as_echo "$ac_cs_usage"; exit ;;
5450 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5451 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5455 -*) as_fn_error $?
"unrecognized option: \`$1'
5456 Try \`$0 --help' for more information." ;;
5458 *) as_fn_append ac_config_targets
" $1"
5459 ac_need_defaults
=false
;;
5465 ac_configure_extra_args
=
5467 if $ac_cs_silent; then
5469 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5474 if \$ac_cs_recheck; then
5475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5477 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5478 CONFIG_SHELL='$SHELL'
5484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5489 ## Running $as_me. ##
5495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5500 # Handling of arguments.
5501 for ac_config_target
in $ac_config_targets
5503 case $ac_config_target in
5504 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5505 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5506 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5507 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5508 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5509 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5510 "riscv-spike.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike.pc" ;;
5511 "riscv-riscv.pc") CONFIG_FILES
="$CONFIG_FILES riscv-riscv.pc" ;;
5512 "riscv-softfloat.pc") CONFIG_FILES
="$CONFIG_FILES riscv-softfloat.pc" ;;
5513 "riscv-dummy_rocc.pc") CONFIG_FILES
="$CONFIG_FILES riscv-dummy_rocc.pc" ;;
5514 "riscv-spike_main.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike_main.pc" ;;
5516 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5521 # If the user did not use the arguments to specify the items to instantiate,
5522 # then the envvar interface is used. Set only those that are not.
5523 # We use the long form for the default assignment because of an extremely
5524 # bizarre bug on SunOS 4.1.3.
5525 if $ac_need_defaults; then
5526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5530 # Have a temporary directory for convenience. Make it in the build tree
5531 # simply because there is no reason against having it here, and in addition,
5532 # creating and moving files from /tmp can sometimes cause problems.
5533 # Hook for its removal unless debugging.
5534 # Note that there is a small window in which the directory will not be cleaned:
5535 # after its creation but before its name has been assigned to `$tmp'.
5539 trap 'exit_status=$?
5541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5543 trap 'as_fn_exit 1' 1 2 13 15
5545 # Create a (secure) tmp directory for tmp files.
5548 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5552 tmp
=.
/conf$$
-$RANDOM
5553 (umask 077 && mkdir
"$tmp")
5554 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5557 # Set up the scripts for CONFIG_FILES section.
5558 # No need to generate them if there are no CONFIG_FILES.
5559 # This happens for instance with `./config.status config.h'.
5560 if test -n "$CONFIG_FILES"; then
5563 ac_cr
=`echo X | tr X '\015'`
5564 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5565 # But we know of no other shell where ac_cr would be empty at this
5566 # point, so we can use a bashism as a fallback.
5567 if test "x$ac_cr" = x
; then
5568 eval ac_cr
=\$
\'\\r
\'
5570 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5571 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5577 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5582 echo "cat >conf$$subs.awk <<_ACEOF" &&
5583 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5586 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5587 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5589 for ac_last_try in false false false false false :; do
5590 . ./conf$$subs.sh ||
5591 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5593 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5594 if test $ac_delim_n = $ac_delim_num; then
5596 elif $ac_last_try; then
5597 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5599 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5605 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5609 s/^/S["/; s
/!.
*/"]=/
5619 s/\(.\{148\}\)..*/\1/
5621 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5626 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5633 s/\(.\{148\}\)..*/\1/
5635 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5639 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5644 ' <conf$$subs.awk | sed '
5649 ' >>$CONFIG_STATUS || ac_write_fail=1
5650 rm -f conf$$subs.awk
5651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5653 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5654 for (key in S) S_is_set[key] = 1
5660 nfields = split(line, field, "@
")
5662 len = length(field[1])
5663 for (i = 2; i < nfields; i++) {
5665 keylen = length(key)
5666 if (S_is_set[key]) {
5668 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5669 len += length(value) + length(field[++i])
5680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5681 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5682 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5685 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5686 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5689 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5690 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5691 # trailing colons and then remove the whole line if VPATH becomes empty
5692 # (actually we leave an empty line to preserve line numbers).
5693 if test "x
$srcdir" = x.; then
5694 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5713 fi # test -n "$CONFIG_FILES"
5715 # Set up the scripts for CONFIG_HEADERS section.
5716 # No need to generate them if there are no CONFIG_HEADERS.
5717 # This happens for instance with `./config.status Makefile'.
5718 if test -n "$CONFIG_HEADERS"; then
5719 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5723 # Transform confdefs.h into an awk script `defines.awk', embedded as
5724 # here-document in config.status, that substitutes the proper values into
5725 # config.h.in to produce config.h.
5727 # Create a delimiter string that does not exist in confdefs.h, to ease
5728 # handling of long lines.
5730 for ac_last_try in false false :; do
5731 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5732 if test -z "$ac_tt"; then
5734 elif $ac_last_try; then
5735 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5737 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5741 # For the awk script, D is an array of macro values keyed by name,
5742 # likewise P contains macro parameters if any. Preserve backslash
5743 # newline sequences.
5745 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5747 s/.\{148\}/&'"$ac_delim"'/g
5750 s/^[ ]*#[ ]*define[ ][ ]*/ /
5757 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5759 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5764 D["\
1"]=" \
3\\\\\\n
"\\/p
5766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5771 s/.\{148\}/&'"$ac_delim"'/g
5776 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5779 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5781 ' <confdefs.h | sed '
5782 s/'"$ac_delim"'/"\\\
5783 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5786 for (key in D) D_is_set[key] = 1
5789 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5791 split(line, arg, " ")
5792 if (arg[1] == "#") {
5796 defundef
= substr
(arg
[1], 2)
5799 split(mac1
, mac2
, "(") #)
5801 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5802 if (D_is_set
[macro
]) {
5803 # Preserve the white space surrounding the "#".
5804 print prefix
"define", macro P
[macro
] D
[macro
]
5807 # Replace #undef with comments. This is necessary, for example,
5808 # in the case of _POSIX_SOURCE, which is predefined and required
5809 # on some systems where configure will not decide to define it.
5810 if (defundef
== "undef") {
5811 print
"/*", prefix defundef
, macro
, "*/"
5819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5820 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5821 fi # test -n "$CONFIG_HEADERS"
5824 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5829 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5831 case $ac_mode$ac_tag in
5833 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5834 :[FH
]-) ac_tag
=-:-;;
5835 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5852 -) ac_f
="$ac_tmp/stdin";;
5853 *) # Look for the file first in the build tree, then in the source tree
5854 # (if the path is not absolute). The absolute path cannot be DOS-style,
5855 # because $ac_f cannot contain `:'.
5859 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5861 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5863 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5864 as_fn_append ac_file_inputs
" '$ac_f'"
5867 # Let's still pretend it is `configure' which instantiates (i.e., don't
5868 # use $as_me), people would be surprised to read:
5869 # /* config.h. Generated by config.status. */
5870 configure_input
='Generated from '`
5871 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5873 if test x
"$ac_file" != x-
; then
5874 configure_input
="$ac_file. $configure_input"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5876 $as_echo "$as_me: creating $ac_file" >&6;}
5878 # Neutralize special characters interpreted by sed in replacement strings.
5879 case $configure_input in #(
5880 *\
&* |
*\|
* |
*\\* )
5881 ac_sed_conf_input
=`$as_echo "$configure_input" |
5882 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5883 *) ac_sed_conf_input
=$configure_input;;
5887 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5888 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5893 ac_dir
=`$as_dirname -- "$ac_file" ||
5894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895 X"$ac_file" : 'X\(//\)[^/]' \| \
5896 X"$ac_file" : 'X\(//\)$' \| \
5897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5898 $as_echo X"$ac_file" |
5899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5916 as_dir
="$ac_dir"; as_fn_mkdir_p
5920 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5922 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5923 # A ".." for each directory in $ac_dir_suffix.
5924 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5925 case $ac_top_builddir_sub in
5926 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5927 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5930 ac_abs_top_builddir
=$ac_pwd
5931 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5932 # for backward compatibility:
5933 ac_top_builddir
=$ac_top_build_prefix
5936 .
) # We are building in place.
5938 ac_top_srcdir
=$ac_top_builddir_sub
5939 ac_abs_top_srcdir
=$ac_pwd ;;
5940 [\\/]* | ?
:[\\/]* ) # Absolute name.
5941 ac_srcdir
=$srcdir$ac_dir_suffix;
5942 ac_top_srcdir
=$srcdir
5943 ac_abs_top_srcdir
=$srcdir ;;
5945 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5946 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5947 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5949 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5959 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5960 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5965 # If the template does not know about datarootdir, expand it.
5966 # FIXME: This hack should be removed a few years after 2.60.
5967 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5979 *datarootdir
*) ac_datarootdir_seen
=yes;;
5980 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5985 ac_datarootdir_hack='
5986 s&@datadir@&$datadir&g
5987 s&@docdir@&$docdir&g
5988 s&@infodir@&$infodir&g
5989 s&@localedir@&$localedir&g
5990 s&@mandir@&$mandir&g
5991 s&\\\${datarootdir}&$datarootdir&g' ;;
5995 # Neutralize VPATH when `$srcdir' = `.'.
5996 # Shell code in configure.ac might set extrasub.
5997 # FIXME: do we really want to maintain this feature?
5998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5999 ac_sed_extra="$ac_vpsub
6002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6004 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6005 s|@configure_input@|
$ac_sed_conf_input|
;t t
6006 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6007 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6008 s
&@srcdir@
&$ac_srcdir&;t t
6009 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6010 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6011 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6012 s
&@builddir@
&$ac_builddir&;t t
6013 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6014 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6015 s
&@INSTALL@
&$ac_INSTALL&;t t
6016 $ac_datarootdir_hack
6018 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6019 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6022 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6024 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6026 which seems to be undefined. Please make sure it is defined" >&5
6027 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6028 which seems to be undefined. Please make sure it is defined" >&2;}
6030 rm -f "$ac_tmp/stdin"
6032 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6033 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6041 if test x"$ac_file" != x-; then
6043 $as_echo "/* $configure_input */" \
6044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6045 } >"$ac_tmp/config.h" \
6046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6047 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6049 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6052 mv "$ac_tmp/config.h" "$ac_file" \
6053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6056 $as_echo "/* $configure_input */" \
6057 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6058 || as_fn_error $? "could not create -" "$LINENO" 5
6070 ac_clean_files=$ac_clean_files_save
6072 test $ac_write_fail = 0 ||
6073 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6076 # configure is writing to config.log, and then calls config.status.
6077 # config.status does its own redirection, appending to config.log.
6078 # Unfortunately, on DOS this fails, as config.log is still kept open
6079 # by configure, so config.status won't be able to
write to it
; its
6080 # output is simply discarded. So we exec the FD to /dev/null,
6081 # effectively closing config.log, so it can be properly (re)opened and
6082 # appended to by config.status. When coming back to configure, we
6083 # need to make the FD available again.
6084 if test "$no_create" != yes; then
6086 ac_config_status_args
=
6087 test "$silent" = yes &&
6088 ac_config_status_args
="$ac_config_status_args --quiet"
6090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6093 # would make configure fail if this is the last instruction.
6094 $ac_cs_success || as_fn_exit
1
6096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}