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
686 program_transform_name
699 enable_option_checking
701 enable_optional_subprojects
706 ac_precious_vars
='build_alias
722 # Initialize some variables set by options.
724 ac_init_version
=false
725 ac_unrecognized_opts
=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error $?
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error $?
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error $?
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $?
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1183 test "$silent" = yes && exec 6>/dev
/null
1186 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di
=`ls -di .` &&
1188 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $?
"working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $?
"pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted
=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir
=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1226 ac_srcdir_defaulted
=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1230 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var
in $ac_precious_vars; do
1247 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1249 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1330 --disable-option-checking ignore unrecognized
--enable/--with options
1331 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1332 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1333 --enable-stow Enable stow-based
install
1334 --enable-optional-subprojects
1335 Enable all optional subprojects
1336 --enable-commitlog Enable commit log generation
1337 --enable-histogram Enable PC histogram generation
1340 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1341 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1342 --with-fesvr path to your fesvr installation
if not
in a standard
1345 Some influential environment variables
:
1346 CC C compiler
command
1347 CFLAGS C compiler flags
1348 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1349 nonstandard directory
<lib dir
>
1350 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1351 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1352 you have headers
in a nonstandard directory
<include dir
>
1353 CXX C
++ compiler
command
1354 CXXFLAGS C
++ compiler flags
1355 CXXCPP C
++ preprocessor
1356 STOW_ROOT Root
for non-native stow-based installs
1357 STOW_PREFIX Prefix
for stow-based installs
1359 Use these variables to override the choices made by
`configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to <Andrew Waterman>.
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1425 RISC-V ISA Simulator configure ?
1426 generated by GNU Autoconf 2.69
1428 Copyright (C) 2012 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1449 *) ac_try_echo
=$ac_try;;
1451 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1455 if test -s conftest.err
; then
1456 grep -v '^ *+' conftest.err
>conftest.er1
1457 cat conftest.er1
>&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.
$ac_objext; then :
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.
$ac_ext >&5
1472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1473 as_fn_set_status
$ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_cxx_try_compile LINENO
1478 # ----------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_cxx_try_compile
()
1482 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1483 rm -f conftest.
$ac_objext
1484 if { { ac_try
="$ac_compile"
1486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_cxx_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1513 } # ac_fn_cxx_try_compile
1515 # ac_fn_cxx_try_run LINENO
1516 # ------------------------
1517 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1518 # that executables *can* be run.
1519 ac_fn_cxx_try_run ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if { { ac_try="$ac_link"
1524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1525 *) ac_try_echo
=$ac_try;;
1527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_link") 2>&5
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1533 { { case "(($ac_try" in
1534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_try") 2>&5
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; }; }; then :
1545 $as_echo "$as_me: program exited with status $ac_status" >&5
1546 $as_echo "$as_me: failed program was:" >&5
1547 sed 's/^/| /' conftest.$ac_ext >&5
1549 ac_retval=$ac_status
1551 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1555 } # ac_fn_cxx_try_run
1557 # ac_fn_cxx_try_cpp LINENO
1558 # ------------------------
1559 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_cxx_try_cpp ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { { ac_try="$ac_cpp conftest.$ac_ext"
1565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1566 *) ac_try_echo
=$ac_try;;
1568 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1572 if test -s conftest.err
; then
1573 grep -v '^ *+' conftest.err
>conftest.er1
1574 cat conftest.er1
>&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } > conftest.i
&& {
1579 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1580 test ! -s conftest.err
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.
$ac_ext >&5
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status
$ac_retval
1592 } # ac_fn_cxx_try_cpp
1594 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1595 # ---------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_cxx_check_header_compile
()
1600 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \
${$3+:} false
; then :
1604 $as_echo_n "(cached) " >&6
1606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1611 if ac_fn_cxx_try_compile
"$LINENO"; then :
1616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 } # ac_fn_cxx_check_header_compile
1625 # ac_fn_cxx_try_link LINENO
1626 # -------------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_cxx_try_link
()
1630 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1631 rm -f conftest.
$ac_objext conftest
$ac_exeext
1632 if { { ac_try
="$ac_link"
1634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest$ac_exeext && {
1651 test "$cross_compiling" = yes ||
1652 test -x conftest$ac_exeext
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663 # interfere with the next link command; also delete a directory that is
1664 # left behind by Apple's compiler. We do this before executing the actions.
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_cxx_try_link
1670 cat >config.log <<_ACEOF
1671 This file contains any messages produced by compilers while
1672 running configure, to aid debugging if configure makes a mistake.
1674 It was created by RISC-V ISA Simulator $as_me ?, which was
1675 generated by GNU Autoconf 2.69. Invocation command line was
1687 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1688 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1689 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1690 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1691 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1693 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1694 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1696 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1697 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1698 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1699 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1700 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1701 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1702 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 $as_echo "PATH: $as_dir"
1727 # Keep a trace of the command line.
1728 # Strip out --no-create and --no-recursion so they do not pile up.
1729 # Strip out --silent because we don't want to record it for future runs.
1730 # Also quote any args containing shell meta-characters.
1731 # Make two passes to allow for proper duplicate-argument suppression.
1735 ac_must_keep_next=false
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1746 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1751 as_fn_append ac_configure_args1 " '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
1753 ac_must_keep_next=false # Got value, back to normal.
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1764 -* ) ac_must_keep_next=true ;;
1767 as_fn_append ac_configure_args " '$ac_arg'"
1772 { ac_configure_args0=; unset ac_configure_args0;}
1773 { ac_configure_args1=; unset ac_configure_args1;}
1775 # When interrupted or exit'd, cleanup temporary files, and complete
1776 # config.log. We remove comments because anyway the quotes in there
1777 # would cause problems or look ugly.
1778 # WARNING: Use '\'' to represent an apostrophe within the trap.
1779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1780 trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1785 $as_echo "## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##"
1789 # The following way of writing the cache mishandles newlines in values,
1791 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1792 eval ac_val=\$$ac_var
1796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1800 _ | IFS | as_nl) ;; #(
1801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802 *) { eval $ac_var=; unset $ac_var;} ;;
1807 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
1810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 $as_echo "## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##"
1825 for ac_var in $ac_subst_vars
1827 eval ac_val=\$$ac_var
1829 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831 $as_echo "$ac_var='\''$ac_val'\''"
1835 if test -n "$ac_subst_files"; then
1836 $as_echo "## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##"
1840 for ac_var in $ac_subst_files
1842 eval ac_val=\$$ac_var
1844 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 $as_echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1852 $as_echo "## ----------- ##
1859 test "$ac_signal" != 0 &&
1860 $as_echo "$as_me: caught signal $ac_signal"
1861 $as_echo "$as_me: exit $exit_status"
1863 rm -f core *.core core.conftest.* &&
1864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 for ac_signal in 1 2 13 15; do
1868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1873 rm -f -r conftest* confdefs.h
1875 $as_echo "/* confdefs.h */" > confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_URL "$PACKAGE_URL"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 # We do not want a PATH search for config.site.
1910 case $CONFIG_SITE in #((
1911 -*) ac_site_file1=./$CONFIG_SITE;;
1912 */*) ac_site_file1=$CONFIG_SITE;;
1913 *) ac_site_file1=./$CONFIG_SITE;;
1915 elif test "x$prefix" != xNONE; then
1916 ac_site_file1=$prefix/share/config.site
1917 ac_site_file2=$prefix/etc/config.site
1919 ac_site_file1=$ac_default_prefix/share/config.site
1920 ac_site_file2=$ac_default_prefix/etc/config.site
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE && continue
1925 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932 as_fn_error $? "failed to load site
script $ac_site_file
1933 See \
`config.log' for more details" "$LINENO" 5; }
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special files
1939 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1940 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1942 $as_echo "$as_me: loading cache $cache_file" >&6;}
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1950 $as_echo "$as_me: creating cache $cache_file" >&6;}
1954 # Check that the precious variables saved in the cache have kept the same
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1965 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1969 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x
$ac_old_val`
1976 ac_new_val_w=`echo x
$ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1980 ac_cache_corrupted=:
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1987 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1992 # Pass precious variables to config.status.
1993 if test "$ac_new_set" = set; then
1995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1996 *) ac_arg=$ac_var=$ac_new_val ;;
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2000 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2004 if $ac_cache_corrupted; then
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2011 ## -------------------- ##
2012 ## Main body of script. ##
2013 ## -------------------- ##
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023 ac_cpp='$CXXCPP $CPPFLAGS'
2024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2030 for ac_dir in scripts "$srcdir"/scripts; do
2031 if test -f "$ac_dir/install-sh"; then
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2035 elif test -f "$ac_dir/install.sh"; then
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2039 elif test -f "$ac_dir/shtool"; then
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 if test -z "$ac_aux_dir"; then
2046 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2049 # These three variables are undocumented and unsupported,
2050 # and are intended to be withdrawn in a future Autoconf release.
2051 # They can cause serious problems if a builder's source tree is in a directory
2052 # whose full name contains unusual characters.
2053 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2054 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2055 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058 # Make sure we can run config.sub.
2059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2060 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2063 $as_echo_n "checking build system type... " >&6; }
2064 if ${ac_cv_build+:} false; then :
2065 $as_echo_n "(cached) " >&6
2067 ac_build_alias=$build_alias
2068 test "x$ac_build_alias" = x &&
2069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2070 test "x$ac_build_alias" = x &&
2071 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2072 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2073 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2077 $as_echo "$ac_cv_build" >&6; }
2078 case $ac_cv_build in
2080 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2083 ac_save_IFS=$IFS; IFS='-'
2089 # Remember, the first character of IFS is used to create $*,
2090 # except with old shells:
2093 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2097 $as_echo_n "checking host system type... " >&6; }
2098 if ${ac_cv_host+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 if test "x$host_alias" = x; then
2102 ac_cv_host=$ac_cv_build
2104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2110 $as_echo "$ac_cv_host" >&6; }
2113 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2116 ac_save_IFS=$IFS; IFS='-'
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2126 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2130 #-------------------------------------------------------------------------
2131 # Checks for programs
2132 #-------------------------------------------------------------------------
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2143 $as_echo_n "checking for $ac_word... " >&6; }
2144 if ${ac_cv_prog_CC+:} false; then :
2145 $as_echo_n "(cached) " >&6
2147 if test -n "$CC"; then
2148 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 if test -n "$CC"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2170 $as_echo "$CC" >&6; }
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2173 $as_echo "no" >&6; }
2178 if test -z "$ac_cv_prog_CC"; then
2180 # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2183 $as_echo_n "checking for $ac_word... " >&6; }
2184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2185 $as_echo_n "(cached) " >&6
2187 if test -n "$ac_ct_CC"; then
2188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 ac_cv_prog_ac_ct_CC="gcc"
2198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2210 $as_echo "$ac_ct_CC" >&6; }
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2213 $as_echo "no" >&6; }
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2223 ac_tool_warned=yes ;;
2231 if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2234 set dummy ${ac_tool_prefix}cc; ac_word=$2
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2236 $as_echo_n "checking for $ac_word... " >&6; }
2237 if ${ac_cv_prog_CC+:} false; then :
2238 $as_echo_n "(cached) " >&6
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250 ac_cv_prog_CC="${ac_tool_prefix}cc"
2251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 if test -n "$CC"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2263 $as_echo "$CC" >&6; }
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2266 $as_echo "no" >&6; }
2272 if test -z "$CC"; then
2273 # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc; ac_word=$2
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2276 $as_echo_n "checking for $ac_word... " >&6; }
2277 if ${ac_cv_prog_CC+:} false; then :
2278 $as_echo_n "(cached) " >&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292 ac_prog_rejected=yes
2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test $ac_prog_rejected = yes; then
2304 # We found a bogon in the path, so make sure we never use it.
2305 set dummy $ac_cv_prog_CC
2307 if test $# != 0; then
2308 # We chose a different compiler from the bogus one.
2309 # However, it has the same basename, so the bogon will be chosen
2310 # first if we set CC to just the basename; use the full file name.
2312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2318 if test -n "$CC"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2320 $as_echo "$CC" >&6; }
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2328 if test -z "$CC"; then
2329 if test -n "$ac_tool_prefix"; then
2330 for ac_prog in cl.exe
2332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if ${ac_cv_prog_CC+:} false; then :
2337 $as_echo_n "(cached) " >&6
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$CC"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2362 $as_echo "$CC" >&6; }
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365 $as_echo "no" >&6; }
2369 test -n "$CC" && break
2372 if test -z "$CC"; then
2374 for ac_prog in cl.exe
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2381 $as_echo_n "(cached) " >&6
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_CC="$ac_prog"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2404 if test -n "$ac_ct_CC"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2406 $as_echo "$ac_ct_CC" >&6; }
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2413 test -n "$ac_ct_CC" && break
2416 if test "x$ac_ct_CC" = x; then
2419 case $cross_compiling:$ac_tool_warned in
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2423 ac_tool_warned=yes ;;
2432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2435 See \
`config.log' for more details" "$LINENO" 5; }
2437 # Provide some information about the compiler.
2438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2441 for ac_option in --version -v -V -qversion; do
2442 { { ac_try="$ac_compiler $ac_option >&5"
2444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2445 *) ac_try_echo
=$ac_try;;
2447 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2451 if test -s conftest.err
; then
2453 ... rest of stderr output deleted ...
2454 10q' conftest.err
>conftest.er1
2455 cat conftest.er1
>&5
2457 rm -f conftest.er1 conftest.err
2458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459 test $ac_status = 0; }
2462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2473 ac_clean_files_save
=$ac_clean_files
2474 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2475 # Try to create an executable without -o first, disregard a.out.
2476 # It will help us diagnose broken compilers, and finding out an intuition
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2479 $as_echo_n "checking whether the C compiler works... " >&6; }
2480 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482 # The possible output files:
2483 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2486 for ac_file
in $ac_files
2489 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2490 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2495 if { { ac_try
="$ac_link_default"
2497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2501 $as_echo "$ac_try_echo"; } >&5
2502 (eval "$ac_link_default") 2>&5
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; }; then :
2506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2507 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2509 # so that the user can short-circuit this test for compilers unknown to
2511 for ac_file in $ac_files ''
2513 test -f "$ac_file" || continue
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2518 # We found the default executable, but exeext='' is most
2522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526 # We set ac_cv_exeext here because the later test for it is not
2527 # safe: cross compilers may not add the suffix if given an `-o'
2528 # argument, so we may need to know it at that point already.
2529 # Even if this section looks crufty: it has the advantage of
2536 test "$ac_cv_exeext" = no && ac_cv_exeext=
2541 if test -z "$ac_file"; then :
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 $as_echo "$as_me: failed program was:" >&5
2545 sed 's
/^
/|
/' conftest.$ac_ext >&5
2547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2549 as_fn_error 77 "C compiler cannot create executables
2550 See \`config.log
' for more details" "$LINENO" 5; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2556 $as_echo_n "checking for C compiler default output file name... " >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2558 $as_echo "$ac_file" >&6; }
2559 ac_exeext=$ac_cv_exeext
2561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2562 ac_clean_files=$ac_clean_files_save
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2564 $as_echo_n "checking for suffix of executables... " >&6; }
2565 if { { ac_try="$ac_link"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }; then :
2576 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2577 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2578 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2580 for ac_file
in conftest.exe conftest conftest.
*; do
2581 test -f "$ac_file" ||
continue
2583 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2584 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2593 See \`config.log' for more details" "$LINENO" 5; }
2595 rm -f conftest conftest
$ac_cv_exeext
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2597 $as_echo "$ac_cv_exeext" >&6; }
2599 rm -f conftest.
$ac_ext
2600 EXEEXT
=$ac_cv_exeext
2602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2608 FILE *f = fopen ("conftest.out", "w");
2609 return ferror (f) || fclose (f) != 0;
2615 ac_clean_files
="$ac_clean_files conftest.out"
2616 # Check that the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2619 $as_echo_n "checking whether we are cross compiling... " >&6; }
2620 if test "$cross_compiling" != yes; then
2621 { { ac_try
="$ac_link"
2623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>&5
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }
2632 if { ac_try='./conftest$ac_cv_exeext'
2633 { { case "(($ac_try" in
2634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2635 *) ac_try_echo
=$ac_try;;
2637 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_try") 2>&5
2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2642 test $ac_status = 0; }; }; then
2645 if test "$cross_compiling" = maybe
; then
2648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $?
"cannot run C compiled programs.
2651 If you meant to cross compile, use \`--host'.
2652 See \`config.log' for more details" "$LINENO" 5; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2657 $as_echo "$cross_compiling" >&6; }
2659 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2660 ac_clean_files
=$ac_clean_files_save
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2662 $as_echo_n "checking for suffix of object files... " >&6; }
2663 if ${ac_cv_objext+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2677 rm -f conftest.o conftest.obj
2678 if { { ac_try
="$ac_compile"
2680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684 $as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_compile") 2>&5
2687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688 test $ac_status = 0; }; then :
2689 for ac_file in conftest.o conftest.obj conftest.*; do
2690 test -f "$ac_file" || continue;
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2704 See \
`config.log' for more details" "$LINENO" 5; }
2706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2709 $as_echo "$ac_cv_objext" >&6; }
2710 OBJEXT=$ac_cv_objext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2714 if ${ac_cv_c_compiler_gnu+:} false; then :
2715 $as_echo_n "(cached) " >&6
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2731 if ac_fn_c_try_compile "$LINENO"; then :
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2742 if test $ac_compiler_gnu = yes; then
2747 ac_test_CFLAGS=${CFLAGS+set}
2748 ac_save_CFLAGS=$CFLAGS
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2751 if ${ac_cv_prog_cc_g+:} false; then :
2752 $as_echo_n "(cached) " >&6
2754 ac_save_c_werror_flag=$ac_c_werror_flag
2755 ac_c_werror_flag=yes
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2769 if ac_fn_c_try_compile "$LINENO"; then :
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2784 if ac_fn_c_try_compile "$LINENO"; then :
2787 ac_c_werror_flag=$ac_save_c_werror_flag
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2800 if ac_fn_c_try_compile "$LINENO"; then :
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2811 $as_echo "$ac_cv_prog_cc_g" >&6; }
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2829 if ${ac_cv_prog_cc_c89+:} false; then :
2830 $as_echo_n "(cached) " >&6
2832 ac_cv_prog_cc_c89=no
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840 struct buf { int x; };
2841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842 static char *e (p, i)
2848 static char *f (char * (*g) (char **, int), char **p, ...)
2853 s = g (p, va_arg (v,int));
2858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
2861 as 'x'. The following induces an error, until -std is added to get
2862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
2864 that's true only with -std. */
2865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2889 CC="$ac_save_CC $ac_arg"
2890 if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_cv_prog_cc_c89=$ac_arg
2893 rm -f core conftest.err conftest.$ac_objext
2894 test "x$ac_cv_prog_cc_c89" != "xno" && break
2896 rm -f conftest.$ac_ext
2901 case "x$ac_cv_prog_cc_c89" in
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2904 $as_echo "none needed" >&6; } ;;
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2907 $as_echo "unsupported" >&6; } ;;
2909 CC="$CC $ac_cv_prog_cc_c89"
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2913 if test "x$ac_cv_prog_cc_c89" != xno; then :
2918 ac_cpp='$CXXCPP $CPPFLAGS'
2919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2924 ac_cpp='$CXXCPP $CPPFLAGS'
2925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2928 if test -z "$CXX"; then
2929 if test -n "$CCC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CXX+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$CXX"; then
2943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CXX"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2965 $as_echo "$CXX" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$CXX" && break
2975 if test -z "$CXX"; then
2977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$ac_ct_CXX"; then
2987 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CXX="$ac_prog"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3007 if test -n "$ac_ct_CXX"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3009 $as_echo "$ac_ct_CXX" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3016 test -n "$ac_ct_CXX" && break
3019 if test "x$ac_ct_CXX" = x; then
3022 case $cross_compiling:$ac_tool_warned in
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3026 ac_tool_warned=yes ;;
3034 # Provide some information about the compiler.
3035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3038 for ac_option in --version -v -V -qversion; do
3039 { { ac_try="$ac_compiler $ac_option >&5"
3041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3042 *) ac_try_echo
=$ac_try;;
3044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 if test -s conftest.err
; then
3050 ... rest of stderr output deleted ...
3051 10q' conftest.err
>conftest.er1
3052 cat conftest.er1
>&5
3054 rm -f conftest.er1 conftest.err
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3060 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3061 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3062 $as_echo_n "(cached) " >&6
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3078 if ac_fn_cxx_try_compile
"$LINENO"; then :
3083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3084 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3088 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3089 if test $ac_compiler_gnu = yes; then
3094 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3095 ac_save_CXXFLAGS
=$CXXFLAGS
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3097 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3098 if ${ac_cv_prog_cxx_g+:} false
; then :
3099 $as_echo_n "(cached) " >&6
3101 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3102 ac_cxx_werror_flag
=yes
3105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3116 if ac_fn_cxx_try_compile
"$LINENO"; then :
3117 ac_cv_prog_cxx_g
=yes
3120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3131 if ac_fn_cxx_try_compile
"$LINENO"; then :
3134 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3147 if ac_fn_cxx_try_compile
"$LINENO"; then :
3148 ac_cv_prog_cxx_g
=yes
3150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3155 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3158 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3159 if test "$ac_test_CXXFLAGS" = set; then
3160 CXXFLAGS
=$ac_save_CXXFLAGS
3161 elif test $ac_cv_prog_cxx_g = yes; then
3162 if test "$GXX" = yes; then
3168 if test "$GXX" = yes; then
3175 ac_cpp
='$CXXCPP $CPPFLAGS'
3176 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3182 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_AR+:} false
; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$AR"; then
3189 ac_cv_prog_AR
="$AR" # Let the user override the test.
3191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir
=.
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$AR"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3211 $as_echo "$AR" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$ac_cv_prog_AR"; then
3221 # Extract the first word of "ar", so it can be a program name with args.
3222 set dummy
ar; ac_word
=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$ac_ct_AR"; then
3229 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir
=.
3236 for ac_exec_ext
in '' $ac_executable_extensions; do
3237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_AR
="ar"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3249 if test -n "$ac_ct_AR"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3251 $as_echo "$ac_ct_AR" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3257 if test "x$ac_ct_AR" = x
; then
3260 case $cross_compiling:$ac_tool_warned in
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned
=yes ;;
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3274 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_RANLIB+:} false
; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$RANLIB"; then
3281 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 RANLIB
=$ac_cv_prog_RANLIB
3301 if test -n "$RANLIB"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3303 $as_echo "$RANLIB" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3311 if test -z "$ac_cv_prog_RANLIB"; then
3312 ac_ct_RANLIB
=$RANLIB
3313 # Extract the first word of "ranlib", so it can be a program name with args.
3314 set dummy ranlib
; ac_word
=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$ac_ct_RANLIB"; then
3321 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3341 if test -n "$ac_ct_RANLIB"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3343 $as_echo "$ac_ct_RANLIB" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3349 if test "x$ac_ct_RANLIB" = x
; then
3352 case $cross_compiling:$ac_tool_warned in
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned
=yes ;;
3358 RANLIB
=$ac_ct_RANLIB
3361 RANLIB
="$ac_cv_prog_RANLIB"
3367 ac_cpp
='$CXXCPP $CPPFLAGS'
3368 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3372 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3373 if test -z "$CXXCPP"; then
3374 if ${ac_cv_prog_CXXCPP+:} false
; then :
3375 $as_echo_n "(cached) " >&6
3377 # Double quotes because CXXCPP needs to be expanded
3378 for CXXCPP
in "$CXX -E" "/lib/cpp"
3381 for ac_cxx_preproc_warn_flag
in '' yes
3383 # Use a header file that comes with gcc, so configuring glibc
3384 # with a fresh cross-compiler works.
3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386 # <limits.h> exists even on freestanding compilers.
3387 # On the NeXT, cc -E runs the code through the compiler's parser,
3388 # not just through cpp. "Syntax error" is here to catch this case.
3389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3392 # include <limits.h>
3394 # include <assert.h>
3398 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3401 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.i conftest.
$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <ac_nonexistent.h>
3412 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3413 # Broken: success on invalid input.
3416 # Passes both tests.
3420 rm -f conftest.err conftest.i conftest.
$ac_ext
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.i conftest.err conftest.
$ac_ext
3425 if $ac_preproc_ok; then :
3430 ac_cv_prog_CXXCPP
=$CXXCPP
3433 CXXCPP
=$ac_cv_prog_CXXCPP
3435 ac_cv_prog_CXXCPP
=$CXXCPP
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3438 $as_echo "$CXXCPP" >&6; }
3440 for ac_cxx_preproc_warn_flag
in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3451 # include <limits.h>
3453 # include <assert.h>
3457 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3460 # Broken: fails on valid input.
3463 rm -f conftest.err conftest.i conftest.
$ac_ext
3465 # OK, works on sane cases. Now check whether nonexistent headers
3466 # can be detected and how.
3467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3472 # Broken: success on invalid input.
3475 # Passes both tests.
3479 rm -f conftest.err conftest.i conftest.
$ac_ext
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.i conftest.err conftest.
$ac_ext
3484 if $ac_preproc_ok; then :
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
3490 See \`config.log' for more details" "$LINENO" 5; }
3494 ac_cpp
='$CXXCPP $CPPFLAGS'
3495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3501 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3502 if ${ac_cv_path_GREP+:} false
; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -z "$GREP"; then
3506 ac_path_GREP_found
=false
3507 # Loop through the user's path and test for each of PROGNAME-LIST
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_prog
in grep ggrep
; do
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3516 as_fn_executable_p
"$ac_path_GREP" ||
continue
3517 # Check for GNU ac_path_GREP and select it if it is found.
3518 # Check for GNU $ac_path_GREP
3519 case `"$ac_path_GREP" --version 2>&1` in
3521 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3524 $as_echo_n 0123456789 >"conftest.in"
3527 cat "conftest.in" "conftest.in" >"conftest.tmp"
3528 mv "conftest.tmp" "conftest.in"
3529 cp "conftest.in" "conftest.nl"
3530 $as_echo 'GREP' >> "conftest.nl"
3531 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3532 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3533 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3534 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3535 # Best one so far, save it but keep looking for a better one
3536 ac_cv_path_GREP
="$ac_path_GREP"
3537 ac_path_GREP_max
=$ac_count
3539 # 10*(2^10) chars as input seems more than enough
3540 test $ac_count -gt 10 && break
3542 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3545 $ac_path_GREP_found && break 3
3550 if test -z "$ac_cv_path_GREP"; then
3551 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3554 ac_cv_path_GREP
=$GREP
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3559 $as_echo "$ac_cv_path_GREP" >&6; }
3560 GREP
="$ac_cv_path_GREP"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3564 $as_echo_n "checking for egrep... " >&6; }
3565 if ${ac_cv_path_EGREP+:} false
; then :
3566 $as_echo_n "(cached) " >&6
3568 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3569 then ac_cv_path_EGREP
="$GREP -E"
3571 if test -z "$EGREP"; then
3572 ac_path_EGREP_found
=false
3573 # Loop through the user's path and test for each of PROGNAME-LIST
3574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3575 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3578 test -z "$as_dir" && as_dir
=.
3579 for ac_prog
in egrep; do
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3582 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3583 # Check for GNU ac_path_EGREP and select it if it is found.
3584 # Check for GNU $ac_path_EGREP
3585 case `"$ac_path_EGREP" --version 2>&1` in
3587 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3590 $as_echo_n 0123456789 >"conftest.in"
3593 cat "conftest.in" "conftest.in" >"conftest.tmp"
3594 mv "conftest.tmp" "conftest.in"
3595 cp "conftest.in" "conftest.nl"
3596 $as_echo 'EGREP' >> "conftest.nl"
3597 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3598 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3599 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3600 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3601 # Best one so far, save it but keep looking for a better one
3602 ac_cv_path_EGREP
="$ac_path_EGREP"
3603 ac_path_EGREP_max
=$ac_count
3605 # 10*(2^10) chars as input seems more than enough
3606 test $ac_count -gt 10 && break
3608 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3611 $ac_path_EGREP_found && break 3
3616 if test -z "$ac_cv_path_EGREP"; then
3617 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3620 ac_cv_path_EGREP
=$EGREP
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3626 $as_echo "$ac_cv_path_EGREP" >&6; }
3627 EGREP
="$ac_cv_path_EGREP"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3631 $as_echo_n "checking for ANSI C header files... " >&6; }
3632 if ${ac_cv_header_stdc+:} false
; then :
3633 $as_echo_n "(cached) " >&6
3635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3650 if ac_fn_cxx_try_compile
"$LINENO"; then :
3651 ac_cv_header_stdc
=yes
3653 ac_cv_header_stdc
=no
3655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3657 if test $ac_cv_header_stdc = yes; then
3658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 $EGREP "memchr" >/dev
/null
2>&1; then :
3668 ac_cv_header_stdc
=no
3674 if test $ac_cv_header_stdc = yes; then
3675 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
3685 ac_cv_header_stdc
=no
3691 if test $ac_cv_header_stdc = yes; then
3692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3693 if test "$cross_compiling" = yes; then :
3696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 #if ((' ' & 0x0FF) == 0x020)
3701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3704 # define ISLOWER(c) \
3705 (('a' <= (c) && (c) <= 'i') \
3706 || ('j' <= (c) && (c) <= 'r') \
3707 || ('s' <= (c) && (c) <= 'z'))
3708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3716 for (i = 0; i < 256; i++)
3717 if (XOR (islower (i), ISLOWER (i))
3718 || toupper (i) != TOUPPER (i))
3723 if ac_fn_cxx_try_run
"$LINENO"; then :
3726 ac_cv_header_stdc
=no
3728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3735 $as_echo "$ac_cv_header_stdc" >&6; }
3736 if test $ac_cv_header_stdc = yes; then
3738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3743 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3744 inttypes.h stdint.h unistd.h
3746 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3749 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3750 cat >>confdefs.h
<<_ACEOF
3751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3760 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3761 if ${ac_cv_c_bigendian+:} false
; then :
3762 $as_echo_n "(cached) " >&6
3764 ac_cv_c_bigendian
=unknown
3765 # See if we're dealing with a universal compiler.
3766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #ifndef __APPLE_CC__
3769 not a universal capable compiler
3774 if ac_fn_cxx_try_compile
"$LINENO"; then :
3776 # Check for potential -arch flags. It is not universal unless
3777 # there are at least two -arch flags with different values.
3780 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3781 if test -n "$ac_prev"; then
3783 i?
86 | x86_64 | ppc | ppc64
)
3784 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
3787 ac_cv_c_bigendian
=universal
3793 elif test "x$ac_word" = "x-arch"; then
3798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3799 if test $ac_cv_c_bigendian = unknown
; then
3800 # See if sys/param.h defines the BYTE_ORDER macro.
3801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #include <sys/types.h>
3804 #include <sys/param.h>
3809 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3810 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3819 if ac_fn_cxx_try_compile
"$LINENO"; then :
3820 # It does; now see whether it defined to BIG_ENDIAN or not.
3821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/param.h>
3829 #if BYTE_ORDER != BIG_ENDIAN
3837 if ac_fn_cxx_try_compile
"$LINENO"; then :
3838 ac_cv_c_bigendian
=yes
3840 ac_cv_c_bigendian
=no
3842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3846 if test $ac_cv_c_bigendian = unknown
; then
3847 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3855 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3863 if ac_fn_cxx_try_compile
"$LINENO"; then :
3864 # It does; now see whether it defined to _BIG_ENDIAN or not.
3865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3880 if ac_fn_cxx_try_compile
"$LINENO"; then :
3881 ac_cv_c_bigendian
=yes
3883 ac_cv_c_bigendian
=no
3885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3889 if test $ac_cv_c_bigendian = unknown
; then
3890 # Compile a test program.
3891 if test "$cross_compiling" = yes; then :
3892 # Try to guess by grepping values from an object file.
3893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 short int ascii_mm[] =
3896 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3897 short int ascii_ii[] =
3898 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3899 int use_ascii (int i) {
3900 return ascii_mm[i] + ascii_ii[i];
3902 short int ebcdic_ii[] =
3903 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3904 short int ebcdic_mm[] =
3905 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3906 int use_ebcdic (int i) {
3907 return ebcdic_mm[i] + ebcdic_ii[i];
3914 return use_ascii (foo) == use_ebcdic (foo);
3919 if ac_fn_cxx_try_compile
"$LINENO"; then :
3920 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3921 ac_cv_c_bigendian
=yes
3923 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3924 if test "$ac_cv_c_bigendian" = unknown
; then
3925 ac_cv_c_bigendian
=no
3927 # finding both strings is unlikely to happen, but who knows?
3928 ac_cv_c_bigendian
=unknown
3932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 $ac_includes_default
3941 /* Are we little or big endian? From Harbison&Steele. */
3945 char c[sizeof (long int)];
3948 return u.c[sizeof (long int) - 1] == 1;
3954 if ac_fn_cxx_try_run
"$LINENO"; then :
3955 ac_cv_c_bigendian
=no
3957 ac_cv_c_bigendian
=yes
3959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3966 $as_echo "$ac_cv_c_bigendian" >&6; }
3967 case $ac_cv_c_bigendian in #(
3969 as_fn_error $?
"Spike requires a little-endian host" "$LINENO" 5;; #(
3974 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3978 as_fn_error $?
"unknown endianness
3979 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3983 #-------------------------------------------------------------------------
3984 # MCPPBS specific program checks
3985 #-------------------------------------------------------------------------
3986 # These macros check to see if we can do a stow-based install and also
3987 # check for an isa simulator suitable for running the unit test programs
3990 # Find a good install program. We prefer a C program (faster),
3991 # so one script is as good as another. But avoid the broken or
3992 # incompatible versions:
3993 # SysV /etc/install, /usr/sbin/install
3994 # SunOS /usr/etc/install
3995 # IRIX /sbin/install
3997 # AmigaOS /C/install, which installs bootblocks on floppy discs
3998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4001 # OS/2's system install, which has a completely different semantic
4002 # ./install, which can be erroneously created by make from ./install.sh.
4003 # Reject install programs that cannot install multiple files.
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4005 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4006 if test -z "$INSTALL"; then
4007 if ${ac_cv_path_install+:} false
; then :
4008 $as_echo_n "(cached) " >&6
4010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4014 test -z "$as_dir" && as_dir
=.
4015 # Account for people who put trailing slashes in PATH elements.
4016 case $as_dir/ in #((
4017 .
/ | .
// |
/[cC
]/* | \
4018 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4019 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4022 # OSF1 and SCO ODT 3.0 have their own names for install.
4023 # Don't use installbsd from OSF since it installs stuff as root
4025 for ac_prog
in ginstall scoinst
install; do
4026 for ac_exec_ext
in '' $ac_executable_extensions; do
4027 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4028 if test $ac_prog = install &&
4029 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4030 # AIX install. It has an incompatible calling convention.
4032 elif test $ac_prog = install &&
4033 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4034 # program-specific install script used by HP pwplus--don't use.
4037 rm -rf conftest.one conftest.two conftest.dir
4038 echo one
> conftest.one
4039 echo two
> conftest.two
4041 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4042 test -s conftest.one
&& test -s conftest.two
&&
4043 test -s conftest.dir
/conftest.one
&&
4044 test -s conftest.dir
/conftest.two
4046 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4059 rm -rf conftest.one conftest.two conftest.dir
4062 if test "${ac_cv_path_install+set}" = set; then
4063 INSTALL
=$ac_cv_path_install
4065 # As a last resort, use the slow shell script. Don't cache a
4066 # value for INSTALL within a source directory, because that will
4067 # break other packages using the cache if that directory is
4068 # removed, or if the value is a relative name.
4069 INSTALL
=$ac_install_sh
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4073 $as_echo "$INSTALL" >&6; }
4075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4076 # It thinks the first close brace ends the variable substitution.
4077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4081 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4085 # Configure command line option
4087 # Check whether --enable-stow was given.
4088 if test "${enable_stow+set}" = set; then :
4089 enableval
=$enable_stow; enable_stow
="yes"
4097 # Environment variables
4102 # Check for install script
4106 # Deterimine if native build and set prefix appropriately
4108 if test ${enable_stow} = "yes" ; then :
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113 set dummy
$ac_prog; ac_word
=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_stow+:} false
; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$stow"; then
4120 ac_cv_prog_stow
="$stow" # Let the user override the test.
4122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir
=.
4127 for ac_exec_ext
in '' $ac_executable_extensions; do
4128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_stow
="$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 stow
=$ac_cv_prog_stow
4140 if test -n "$stow"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
4142 $as_echo "$stow" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$stow" && break
4151 test -n "$stow" || stow
="no"
4153 if test ${stow} = "no" ; then :
4155 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
4159 # Check if native or non-native build
4161 if test "${build}" = "${host}" ; then :
4164 # build == host so this is a native build. Make sure --prefix not
4165 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
4167 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
4169 prefix
="${STOW_PREFIX}"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
4171 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4173 $as_echo "$as_me: prefix=${prefix}" >&6;}
4181 # build != host so this is a non-native build. Make sure --prefix
4182 # not set and $STOW_ROOT is set, then set
4183 # prefix=$STOW_ROOT/${host_alias}.
4185 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
4187 prefix
="${STOW_ROOT}/${host_alias}"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
4189 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4191 $as_echo "$as_me: prefix=${prefix}" >&6;}
4203 #-------------------------------------------------------------------------
4204 # Checks for header files
4205 #-------------------------------------------------------------------------
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4208 $as_echo_n "checking for ANSI C header files... " >&6; }
4209 if ${ac_cv_header_stdc+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4227 if ac_fn_cxx_try_compile
"$LINENO"; then :
4228 ac_cv_header_stdc
=yes
4230 ac_cv_header_stdc
=no
4232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4234 if test $ac_cv_header_stdc = yes; then
4235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev
/null
2>&1; then :
4245 ac_cv_header_stdc
=no
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
4262 ac_cv_header_stdc
=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then :
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 #if ((' ' & 0x0FF) == 0x020)
4278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 # define ISLOWER(c) \
4282 (('a' <= (c) && (c) <= 'i') \
4283 || ('j' <= (c) && (c) <= 'r') \
4284 || ('s' <= (c) && (c) <= 'z'))
4285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 for (i = 0; i < 256; i++)
4294 if (XOR (islower (i), ISLOWER (i))
4295 || toupper (i) != TOUPPER (i))
4300 if ac_fn_cxx_try_run
"$LINENO"; then :
4303 ac_cv_header_stdc
=no
4305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4312 $as_echo "$ac_cv_header_stdc" >&6; }
4313 if test $ac_cv_header_stdc = yes; then
4315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4320 #-------------------------------------------------------------------------
4321 # Default compiler flags
4322 #-------------------------------------------------------------------------
4324 CFLAGS
="-Wall -Wno-unused -g -O2"
4326 CXXFLAGS
="-Wall -Wno-unused -g -O2 -std=c++11"
4329 #-------------------------------------------------------------------------
4330 # MCPPBS subproject list
4331 #-------------------------------------------------------------------------
4332 # Order list so that subprojects only depend on those listed earlier.
4333 # The '*' suffix indicates an optional subproject. The '**' suffix
4334 # indicates an optional subproject which is also the name of a group.
4338 # Add command line argument to enable all optional subprojects
4340 # Check whether --enable-optional-subprojects was given.
4341 if test "${enable_optional_subprojects+set}" = set; then :
4342 enableval
=$enable_optional_subprojects;
4346 # Loop through the subprojects given in the macro argument
4350 # Determine if this is a required or an optional subproject
4354 # Determine if there is a group with the same name
4358 # Create variations of the subproject name suitable for use as a CPP
4359 # enabled define, a shell enabled variable, and a shell function
4371 # Add subproject to our running list
4373 subprojects
="$subprojects riscv"
4375 # Process the subproject appropriately. If enabled add it to the
4376 # $enabled_subprojects running shell variable, set a
4377 # SUBPROJECT_ENABLED C define, and include the appropriate
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4382 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4383 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4385 enable_riscv_sproj
="yes"
4386 subprojects_enabled
="$subprojects_enabled riscv"
4388 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4391 ac_cpp
='$CXXCPP $CPPFLAGS'
4392 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4398 $as_echo_n "checking for library containing dlopen... " >&6; }
4399 if ${ac_cv_search_dlopen+:} false
; then :
4400 $as_echo_n "(cached) " >&6
4402 ac_func_search_save_LIBS
=$LIBS
4403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4406 /* Override any GCC internal prototype to avoid an error.
4407 Use char because int might match the return type of a GCC
4408 builtin and then its argument prototype would still apply. */
4421 for ac_lib
in '' dl dld
; do
4422 if test -z "$ac_lib"; then
4423 ac_res
="none required"
4426 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4428 if ac_fn_cxx_try_link
"$LINENO"; then :
4429 ac_cv_search_dlopen
=$ac_res
4431 rm -f core conftest.err conftest.
$ac_objext \
4433 if ${ac_cv_search_dlopen+:} false
; then :
4437 if ${ac_cv_search_dlopen+:} false
; then :
4440 ac_cv_search_dlopen
=no
4443 LIBS
=$ac_func_search_save_LIBS
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4446 $as_echo "$ac_cv_search_dlopen" >&6; }
4447 ac_res
=$ac_cv_search_dlopen
4448 if test "$ac_res" != no
; then :
4449 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4453 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4459 # Check whether --with-fesvr was given.
4460 if test "${with_fesvr+set}" = set; then :
4461 withval
=$with_fesvr;
4462 LDFLAGS
="-L$withval/lib $LDFLAGS"
4463 CPPFLAGS
="-I$withval/include $CPPFLAGS"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4470 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4471 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4472 $as_echo_n "(cached) " >&6
4474 ac_check_lib_save_LIBS
=$LIBS
4475 LIBS
="-lfesvr -pthread $LIBS"
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4479 /* Override any GCC internal prototype to avoid an error.
4480 Use char because int might match the return type of a GCC
4481 builtin and then its argument prototype would still apply. */
4485 char libfesvr_is_present ();
4489 return libfesvr_is_present ();
4494 if ac_fn_cxx_try_link
"$LINENO"; then :
4495 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4497 ac_cv_lib_fesvr_libfesvr_is_present
=no
4499 rm -f core conftest.err conftest.
$ac_objext \
4500 conftest
$ac_exeext conftest.
$ac_ext
4501 LIBS
=$ac_check_lib_save_LIBS
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4504 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4505 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4506 cat >>confdefs.h
<<_ACEOF
4507 #define HAVE_LIBFESVR 1
4510 LIBS
="-lfesvr $LIBS"
4513 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4518 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4519 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4520 $as_echo_n "(cached) " >&6
4522 ac_check_lib_save_LIBS
=$LIBS
4523 LIBS
="-lpthread $LIBS"
4524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4533 char pthread_create ();
4537 return pthread_create ();
4542 if ac_fn_cxx_try_link
"$LINENO"; then :
4543 ac_cv_lib_pthread_pthread_create
=yes
4545 ac_cv_lib_pthread_pthread_create
=no
4547 rm -f core conftest.err conftest.
$ac_objext \
4548 conftest
$ac_exeext conftest.
$ac_ext
4549 LIBS
=$ac_check_lib_save_LIBS
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4552 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4553 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4554 cat >>confdefs.h
<<_ACEOF
4555 #define HAVE_LIBPTHREAD 1
4558 LIBS
="-lpthread $LIBS"
4561 as_fn_error $?
"libpthread is required" "$LINENO" 5
4565 # Check whether --enable-commitlog was given.
4566 if test "${enable_commitlog+set}" = set; then :
4567 enableval
=$enable_commitlog;
4570 if test "x$enable_commitlog" = "xyes"; then :
4573 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4578 # Check whether --enable-histogram was given.
4579 if test "${enable_histogram+set}" = set; then :
4580 enableval
=$enable_histogram;
4583 if test "x$enable_histogram" = "xyes"; then :
4586 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4595 # Determine if this is a required or an optional subproject
4599 # Determine if there is a group with the same name
4603 # Create variations of the subproject name suitable for use as a CPP
4604 # enabled define, a shell enabled variable, and a shell function
4616 # Add subproject to our running list
4618 subprojects
="$subprojects dummy_rocc"
4620 # Process the subproject appropriately. If enabled add it to the
4621 # $enabled_subprojects running shell variable, set a
4622 # SUBPROJECT_ENABLED C define, and include the appropriate
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4627 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4628 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4630 enable_dummy_rocc_sproj
="yes"
4631 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4633 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4640 # Determine if this is a required or an optional subproject
4644 # Determine if there is a group with the same name
4648 # Create variations of the subproject name suitable for use as a CPP
4649 # enabled define, a shell enabled variable, and a shell function
4661 # Add subproject to our running list
4663 subprojects
="$subprojects softfloat"
4665 # Process the subproject appropriately. If enabled add it to the
4666 # $enabled_subprojects running shell variable, set a
4667 # SUBPROJECT_ENABLED C define, and include the appropriate
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4672 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4673 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4675 enable_softfloat_sproj
="yes"
4676 subprojects_enabled
="$subprojects_enabled softfloat"
4678 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4685 # Determine if this is a required or an optional subproject
4689 # Determine if there is a group with the same name
4693 # Create variations of the subproject name suitable for use as a CPP
4694 # enabled define, a shell enabled variable, and a shell function
4706 # Add subproject to our running list
4708 subprojects
="$subprojects spike_main"
4710 # Process the subproject appropriately. If enabled add it to the
4711 # $enabled_subprojects running shell variable, set a
4712 # SUBPROJECT_ENABLED C define, and include the appropriate
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4717 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4718 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4720 enable_spike_main_sproj
="yes"
4721 subprojects_enabled
="$subprojects_enabled spike_main"
4723 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4730 # Output make variables
4737 #-------------------------------------------------------------------------
4738 # MCPPBS subproject groups
4739 #-------------------------------------------------------------------------
4740 # If a group has the same name as a subproject then you must add the
4741 # '**' suffix in the subproject list above. The list of subprojects in a
4742 # group should be ordered so that subprojets only depend on those listed
4743 # earlier. Here is an example:
4745 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4748 #-------------------------------------------------------------------------
4750 #-------------------------------------------------------------------------
4752 ac_config_headers
="$ac_config_headers config.h"
4754 ac_config_files
="$ac_config_files Makefile"
4756 ac_config_files
="$ac_config_files riscv-spike.pc"
4758 ac_config_files
="$ac_config_files riscv-riscv.pc"
4760 ac_config_files
="$ac_config_files riscv-softfloat.pc"
4762 ac_config_files
="$ac_config_files riscv-dummy_rocc.pc"
4764 ac_config_files
="$ac_config_files riscv-spike_main.pc"
4766 cat >confcache
<<\_ACEOF
4767 # This file is a shell script that caches the results of configure
4768 # tests run on this system so they can be shared between configure
4769 # scripts and configure runs, see configure's option --config-cache.
4770 # It is not useful on other systems. If it contains results you don't
4771 # want to keep, you may remove or edit it.
4773 # config.status only pays attention to the cache file if you give it
4774 # the --recheck option to rerun configure.
4776 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4777 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4782 # The following way of writing the cache mishandles newlines in values,
4783 # but we know of no workaround that is simple, portable, and efficient.
4784 # So, we kill variables containing newlines.
4785 # Ultrix sh set writes to stderr and can't be redirected directly,
4786 # and sets the high bit in the cache file unless we assign to the vars.
4788 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4789 eval ac_val
=\$
$ac_var
4793 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4797 _ | IFS | as_nl
) ;; #(
4798 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4799 *) { eval $ac_var=; unset $ac_var;} ;;
4805 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4806 *${as_nl}ac_space
=\
*)
4807 # `set' does not quote correctly, so add quotes: double-quote
4808 # substitution turns \\\\ into \\, and sed turns \\ into \.
4811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4814 # `set' quotes correctly as required by POSIX, so do not add quotes.
4815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4826 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4828 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4829 if test -w "$cache_file"; then
4830 if test "x$cache_file" != "x/dev/null"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4832 $as_echo "$as_me: updating cache $cache_file" >&6;}
4833 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4834 cat confcache
>"$cache_file"
4836 case $cache_file in #(
4838 mv -f confcache
"$cache_file"$$
&&
4839 mv -f "$cache_file"$$
"$cache_file" ;; #(
4841 mv -f confcache
"$cache_file" ;;
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4847 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4852 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4853 # Let make expand exec_prefix.
4854 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4856 DEFS
=-DHAVE_CONFIG_H
4861 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4862 # 1. Remove the extension, and $U if already installed.
4863 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4864 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4866 # will be set to the directory where LIBOBJS objects are built.
4867 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4868 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4872 LTLIBOBJS
=$ac_ltlibobjs
4877 : "${CONFIG_STATUS=./config.status}"
4879 ac_clean_files_save
=$ac_clean_files
4880 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4884 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4886 # Generated by $as_me.
4887 # Run this file to recreate the current configuration.
4888 # Compiler output produced by configure, useful for debugging
4889 # configure, is in config.log if it exists.
4895 SHELL=\${CONFIG_SHELL-$SHELL}
4898 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4899 ## -------------------- ##
4900 ## M4sh Initialization. ##
4901 ## -------------------- ##
4903 # Be more Bourne compatible
4904 DUALCASE
=1; export DUALCASE
# for MKS sh
4905 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4909 # is contrary to our usage. Disable this feature.
4910 alias -g '${1+"$@"}'='"$@"'
4911 setopt NO_GLOB_SUBST
4913 case `(set -o) 2>/dev/null` in #(
4925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4926 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4929 # Prefer a ksh shell builtin over an external printf program on Solaris,
4930 # but without wasting forks for bash or zsh.
4931 if test -z "$BASH_VERSION$ZSH_VERSION" \
4932 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4933 as_echo='print
-r --'
4934 as_echo_n='print
-rn --'
4935 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4936 as_echo='printf %s
\n'
4937 as_echo_n='printf %s
'
4939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4940 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4941 as_echo_n='/usr
/ucb
/echo -n'
4943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4944 as_echo_n_body='eval
4948 expr "X$arg" : "X\\(.*\\)$as_nl";
4949 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4951 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4953 export as_echo_n_body
4954 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4957 as_echo='sh
-c $as_echo_body as_echo
'
4960 # The user is always right.
4961 if test "${PATH_SEPARATOR+set}" != set; then
4963 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4964 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4971 # We need space, tab and new line, in precisely that order. Quoting is
4972 # there to prevent editors from complaining about space-tab.
4973 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4974 # splitting by setting IFS to empty value.)
4977 # Find who we are. Look in the path if we contain no directory separator.
4980 *[\\/]* ) as_myself=$0 ;;
4981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4992 # We did not find ourselves, most probably we were run as `sh COMMAND'
4993 # in which case we are not to be found in the path.
4994 if test "x$as_myself" = x
; then
4997 if test ! -f "$as_myself"; then
4998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5002 # Unset variables that we do not need and which cause bugs (e.g. in
5003 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5004 # suppresses any "Segmentation fault" message there. '((' could
5005 # trigger a bug in pdksh 5.2.14.
5006 for as_var
in BASH_ENV ENV MAIL MAILPATH
5007 do eval test x\
${$as_var+set} = xset \
5008 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5021 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5025 # ----------------------------------------
5026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5028 # script with STATUS, using 1 if that was 0.
5031 as_status
=$1; test $as_status -eq 0 && as_status
=1
5033 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5034 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5036 $as_echo "$as_me: error: $2" >&2
5037 as_fn_exit
$as_status
5041 # as_fn_set_status STATUS
5042 # -----------------------
5043 # Set $? to STATUS, without forking.
5047 } # as_fn_set_status
5051 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5061 # Portably unset VAR.
5064 { eval $1=; unset $1;}
5066 as_unset
=as_fn_unset
5067 # as_fn_append VAR VALUE
5068 # ----------------------
5069 # Append the text in VALUE to the end of the definition contained in VAR. Take
5070 # advantage of any shell optimizations that allow amortized linear growth over
5071 # repeated appends, instead of the typical quadratic growth present in naive
5073 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5074 eval 'as_fn_append ()
5085 # as_fn_arith ARG...
5086 # ------------------
5087 # Perform arithmetic evaluation on the ARGs, and store the result in the
5088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5089 # must be portable across $(()) and expr.
5090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5091 eval 'as_fn_arith ()
5098 as_val
=`expr "$@" || test $? -eq 1`
5103 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5104 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5110 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5111 as_basename
=basename
5116 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5122 as_me
=`$as_basename -- "$0" ||
5123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5124 X"$0" : 'X\(//\)$' \| \
5125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5127 sed '/^.*\/\([^/][^/]*\)\/*$/{
5141 # Avoid depending upon Character Ranges.
5142 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5143 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5144 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5145 as_cr_digits
='0123456789'
5146 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5148 ECHO_C
= ECHO_N
= ECHO_T
=
5149 case `echo -n x` in #(((((
5151 case `echo 'xy\c'` in
5152 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5154 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5161 rm -f conf$$ conf$$.exe conf$$.
file
5162 if test -d conf$$.dir
; then
5163 rm -f conf$$.dir
/conf$$.
file
5166 mkdir conf$$.dir
2>/dev
/null
5168 if (echo >conf$$.
file) 2>/dev
/null
; then
5169 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5171 # ... but there are two gotchas:
5172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5174 # In both cases, we have to default to `cp -pR'.
5175 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5177 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5185 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5186 rmdir conf$$.dir
2>/dev
/null
5191 # Create "$as_dir" as a directory, including parents if necessary.
5196 -*) as_dir
=.
/$as_dir;;
5198 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5202 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5203 *) as_qdir
=$as_dir;;
5205 as_dirs
="'$as_qdir' $as_dirs"
5206 as_dir
=`$as_dirname -- "$as_dir" ||
5207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5208 X"$as_dir" : 'X\(//\)[^/]' \| \
5209 X"$as_dir" : 'X\(//\)$' \| \
5210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5211 $as_echo X"$as_dir" |
5212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5229 test -d "$as_dir" && break
5231 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5232 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5236 if mkdir
-p .
2>/dev
/null
; then
5237 as_mkdir_p
='mkdir -p "$as_dir"'
5239 test -d .
/-p && rmdir .
/-p
5244 # as_fn_executable_p FILE
5245 # -----------------------
5246 # Test if FILE is an executable regular file.
5247 as_fn_executable_p
()
5249 test -f "$1" && test -x "$1"
5250 } # as_fn_executable_p
5252 as_executable_p
=as_fn_executable_p
5254 # Sed expression to map a string onto a valid CPP name.
5255 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5257 # Sed expression to map a string onto a valid variable name.
5258 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5262 ## ----------------------------------- ##
5263 ## Main body of $CONFIG_STATUS script. ##
5264 ## ----------------------------------- ##
5266 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5269 # Save the log message, to keep $0 and so on meaningful, and to
5270 # report actual input values of CONFIG_FILES etc. instead of their
5271 # values after options handling.
5273 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5274 generated by GNU Autoconf 2.69. Invocation command line was
5276 CONFIG_FILES = $CONFIG_FILES
5277 CONFIG_HEADERS = $CONFIG_HEADERS
5278 CONFIG_LINKS = $CONFIG_LINKS
5279 CONFIG_COMMANDS = $CONFIG_COMMANDS
5282 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5287 case $ac_config_files in *"
5288 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5291 case $ac_config_headers in *"
5292 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5297 # Files that config.status was made for.
5298 config_files="$ac_config_files"
5299 config_headers="$ac_config_headers"
5303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5305 \`$as_me' instantiates files and other configuration actions
5306 from templates according to the current configuration. Unless the files
5307 and actions are specified as TAGs, all are instantiated by default.
5309 Usage: $0 [OPTION]... [TAG]...
5311 -h, --help print this help, then exit
5312 -V, --version print version number and configuration settings, then exit
5313 --config print configuration, then exit
5314 -q, --quiet, --silent
5315 do not print progress messages
5316 -d, --debug don't remove temporary files
5317 --recheck update $as_me by reconfiguring in the same conditions
5318 --file=FILE[:TEMPLATE]
5319 instantiate the configuration file FILE
5320 --header=FILE[:TEMPLATE]
5321 instantiate the configuration header FILE
5323 Configuration files:
5326 Configuration headers:
5329 Report bugs to <Andrew Waterman>."
5332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5333 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5335 RISC-V ISA Simulator config.status ?
5336 configured by $0, generated by GNU Autoconf 2.69,
5337 with options \\"\$ac_cs_config\\"
5339 Copyright (C) 2012 Free Software Foundation, Inc.
5340 This config.status script is free software; the Free Software Foundation
5341 gives unlimited permission to copy, distribute and modify it."
5346 test -n "\$AWK" || AWK=awk
5349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5350 # The default lists apply if the user does not specify any file.
5356 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5357 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5361 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5373 # Handling of the options.
5374 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5376 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5377 $as_echo "$ac_cs_version"; exit ;;
5378 --config |
--confi |
--conf |
--con |
--co |
--c )
5379 $as_echo "$ac_cs_config"; exit ;;
5380 --debug |
--debu |
--deb |
--de |
--d |
-d )
5382 --file |
--fil |
--fi |
--f )
5385 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5386 '') as_fn_error $?
"missing file argument" ;;
5388 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5389 ac_need_defaults
=false
;;
5390 --header |
--heade |
--head |
--hea )
5393 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5395 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5396 ac_need_defaults
=false
;;
5398 # Conflict between --help and --header
5399 as_fn_error $?
"ambiguous option: \`$1'
5400 Try \`$0 --help' for more information.";;
5401 --help |
--hel |
-h )
5402 $as_echo "$ac_cs_usage"; exit ;;
5403 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5404 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5408 -*) as_fn_error $?
"unrecognized option: \`$1'
5409 Try \`$0 --help' for more information." ;;
5411 *) as_fn_append ac_config_targets
" $1"
5412 ac_need_defaults
=false
;;
5418 ac_configure_extra_args
=
5420 if $ac_cs_silent; then
5422 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5427 if \$ac_cs_recheck; then
5428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5431 CONFIG_SHELL='$SHELL'
5437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5442 ## Running $as_me. ##
5448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5453 # Handling of arguments.
5454 for ac_config_target
in $ac_config_targets
5456 case $ac_config_target in
5457 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5458 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5459 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5460 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5461 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5462 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5463 "riscv-spike.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike.pc" ;;
5464 "riscv-riscv.pc") CONFIG_FILES
="$CONFIG_FILES riscv-riscv.pc" ;;
5465 "riscv-softfloat.pc") CONFIG_FILES
="$CONFIG_FILES riscv-softfloat.pc" ;;
5466 "riscv-dummy_rocc.pc") CONFIG_FILES
="$CONFIG_FILES riscv-dummy_rocc.pc" ;;
5467 "riscv-spike_main.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike_main.pc" ;;
5469 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5474 # If the user did not use the arguments to specify the items to instantiate,
5475 # then the envvar interface is used. Set only those that are not.
5476 # We use the long form for the default assignment because of an extremely
5477 # bizarre bug on SunOS 4.1.3.
5478 if $ac_need_defaults; then
5479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5480 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5483 # Have a temporary directory for convenience. Make it in the build tree
5484 # simply because there is no reason against having it here, and in addition,
5485 # creating and moving files from /tmp can sometimes cause problems.
5486 # Hook for its removal unless debugging.
5487 # Note that there is a small window in which the directory will not be cleaned:
5488 # after its creation but before its name has been assigned to `$tmp'.
5492 trap 'exit_status=$?
5494 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5496 trap 'as_fn_exit 1' 1 2 13 15
5498 # Create a (secure) tmp directory for tmp files.
5501 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5505 tmp
=.
/conf$$
-$RANDOM
5506 (umask 077 && mkdir
"$tmp")
5507 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5510 # Set up the scripts for CONFIG_FILES section.
5511 # No need to generate them if there are no CONFIG_FILES.
5512 # This happens for instance with `./config.status config.h'.
5513 if test -n "$CONFIG_FILES"; then
5516 ac_cr
=`echo X | tr X '\015'`
5517 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5518 # But we know of no other shell where ac_cr would be empty at this
5519 # point, so we can use a bashism as a fallback.
5520 if test "x$ac_cr" = x
; then
5521 eval ac_cr
=\$
\'\\r
\'
5523 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5524 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5530 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5535 echo "cat >conf$$subs.awk <<_ACEOF" &&
5536 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5539 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5540 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5542 for ac_last_try in false false false false false :; do
5543 . ./conf$$subs.sh ||
5544 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5546 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5547 if test $ac_delim_n = $ac_delim_num; then
5549 elif $ac_last_try; then
5550 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5552 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5558 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5562 s/^/S["/; s
/!.
*/"]=/
5572 s/\(.\{148\}\)..*/\1/
5574 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5579 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5586 s/\(.\{148\}\)..*/\1/
5588 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5592 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5597 ' <conf$$subs.awk | sed '
5602 ' >>$CONFIG_STATUS || ac_write_fail=1
5603 rm -f conf$$subs.awk
5604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5606 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5607 for (key in S) S_is_set[key] = 1
5613 nfields = split(line, field, "@
")
5615 len = length(field[1])
5616 for (i = 2; i < nfields; i++) {
5618 keylen = length(key)
5619 if (S_is_set[key]) {
5621 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5622 len += length(value) + length(field[++i])
5633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5634 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5635 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5638 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5639 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5642 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5643 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5644 # trailing colons and then remove the whole line if VPATH becomes empty
5645 # (actually we leave an empty line to preserve line numbers).
5646 if test "x
$srcdir" = x.; then
5647 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5666 fi # test -n "$CONFIG_FILES"
5668 # Set up the scripts for CONFIG_HEADERS section.
5669 # No need to generate them if there are no CONFIG_HEADERS.
5670 # This happens for instance with `./config.status Makefile'.
5671 if test -n "$CONFIG_HEADERS"; then
5672 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5676 # Transform confdefs.h into an awk script `defines.awk', embedded as
5677 # here-document in config.status, that substitutes the proper values into
5678 # config.h.in to produce config.h.
5680 # Create a delimiter string that does not exist in confdefs.h, to ease
5681 # handling of long lines.
5683 for ac_last_try in false false :; do
5684 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5685 if test -z "$ac_tt"; then
5687 elif $ac_last_try; then
5688 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5690 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5694 # For the awk script, D is an array of macro values keyed by name,
5695 # likewise P contains macro parameters if any. Preserve backslash
5696 # newline sequences.
5698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5700 s/.\{148\}/&'"$ac_delim"'/g
5703 s/^[ ]*#[ ]*define[ ][ ]*/ /
5710 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5712 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5717 D["\
1"]=" \
3\\\\\\n
"\\/p
5719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5724 s/.\{148\}/&'"$ac_delim"'/g
5729 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5732 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5734 ' <confdefs.h | sed '
5735 s/'"$ac_delim"'/"\\\
5736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5739 for (key in D) D_is_set[key] = 1
5742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5744 split(line, arg, " ")
5745 if (arg[1] == "#") {
5749 defundef
= substr
(arg
[1], 2)
5752 split(mac1
, mac2
, "(") #)
5754 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5755 if (D_is_set
[macro
]) {
5756 # Preserve the white space surrounding the "#".
5757 print prefix
"define", macro P
[macro
] D
[macro
]
5760 # Replace #undef with comments. This is necessary, for example,
5761 # in the case of _POSIX_SOURCE, which is predefined and required
5762 # on some systems where configure will not decide to define it.
5763 if (defundef
== "undef") {
5764 print
"/*", prefix defundef
, macro
, "*/"
5772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5773 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5774 fi # test -n "$CONFIG_HEADERS"
5777 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5782 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5784 case $ac_mode$ac_tag in
5786 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5787 :[FH
]-) ac_tag
=-:-;;
5788 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5805 -) ac_f
="$ac_tmp/stdin";;
5806 *) # Look for the file first in the build tree, then in the source tree
5807 # (if the path is not absolute). The absolute path cannot be DOS-style,
5808 # because $ac_f cannot contain `:'.
5812 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5814 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5816 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5817 as_fn_append ac_file_inputs
" '$ac_f'"
5820 # Let's still pretend it is `configure' which instantiates (i.e., don't
5821 # use $as_me), people would be surprised to read:
5822 # /* config.h. Generated by config.status. */
5823 configure_input
='Generated from '`
5824 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5826 if test x
"$ac_file" != x-
; then
5827 configure_input
="$ac_file. $configure_input"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5829 $as_echo "$as_me: creating $ac_file" >&6;}
5831 # Neutralize special characters interpreted by sed in replacement strings.
5832 case $configure_input in #(
5833 *\
&* |
*\|
* |
*\\* )
5834 ac_sed_conf_input
=`$as_echo "$configure_input" |
5835 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5836 *) ac_sed_conf_input
=$configure_input;;
5840 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5841 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5846 ac_dir
=`$as_dirname -- "$ac_file" ||
5847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5848 X"$ac_file" : 'X\(//\)[^/]' \| \
5849 X"$ac_file" : 'X\(//\)$' \| \
5850 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5851 $as_echo X"$ac_file" |
5852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5869 as_dir
="$ac_dir"; as_fn_mkdir_p
5873 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5875 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5876 # A ".." for each directory in $ac_dir_suffix.
5877 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5878 case $ac_top_builddir_sub in
5879 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5880 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5883 ac_abs_top_builddir
=$ac_pwd
5884 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5885 # for backward compatibility:
5886 ac_top_builddir
=$ac_top_build_prefix
5889 .
) # We are building in place.
5891 ac_top_srcdir
=$ac_top_builddir_sub
5892 ac_abs_top_srcdir
=$ac_pwd ;;
5893 [\\/]* | ?
:[\\/]* ) # Absolute name.
5894 ac_srcdir
=$srcdir$ac_dir_suffix;
5895 ac_top_srcdir
=$srcdir
5896 ac_abs_top_srcdir
=$srcdir ;;
5898 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5899 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5900 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5902 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5912 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5913 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5918 # If the template does not know about datarootdir, expand it.
5919 # FIXME: This hack should be removed a few years after 2.60.
5920 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5931 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5932 *datarootdir
*) ac_datarootdir_seen
=yes;;
5933 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5935 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5938 ac_datarootdir_hack='
5939 s&@datadir@&$datadir&g
5940 s&@docdir@&$docdir&g
5941 s&@infodir@&$infodir&g
5942 s&@localedir@&$localedir&g
5943 s&@mandir@&$mandir&g
5944 s&\\\${datarootdir}&$datarootdir&g' ;;
5948 # Neutralize VPATH when `$srcdir' = `.'.
5949 # Shell code in configure.ac might set extrasub.
5950 # FIXME: do we really want to maintain this feature?
5951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5952 ac_sed_extra="$ac_vpsub
5955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5957 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5958 s|@configure_input@|
$ac_sed_conf_input|
;t t
5959 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5960 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5961 s
&@srcdir@
&$ac_srcdir&;t t
5962 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5963 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5964 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5965 s
&@builddir@
&$ac_builddir&;t t
5966 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5967 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5968 s
&@INSTALL@
&$ac_INSTALL&;t t
5969 $ac_datarootdir_hack
5971 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5972 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5974 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5975 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5977 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5979 which seems to be undefined. Please make sure it is defined" >&5
5980 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5981 which seems to be undefined. Please make sure it is defined" >&2;}
5983 rm -f "$ac_tmp/stdin"
5985 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5986 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5994 if test x"$ac_file" != x-; then
5996 $as_echo "/* $configure_input */" \
5997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5998 } >"$ac_tmp/config.h" \
5999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6000 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6002 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6005 mv "$ac_tmp/config.h" "$ac_file" \
6006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6009 $as_echo "/* $configure_input */" \
6010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6011 || as_fn_error $? "could not create -" "$LINENO" 5
6023 ac_clean_files=$ac_clean_files_save
6025 test $ac_write_fail = 0 ||
6026 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6029 # configure is writing to config.log, and then calls config.status.
6030 # config.status does its own redirection, appending to config.log.
6031 # Unfortunately, on DOS this fails, as config.log is still kept open
6032 # by configure, so config.status won't be able to
write to it
; its
6033 # output is simply discarded. So we exec the FD to /dev/null,
6034 # effectively closing config.log, so it can be properly (re)opened and
6035 # appended to by config.status. When coming back to configure, we
6036 # need to make the FD available again.
6037 if test "$no_create" != yes; then
6039 ac_config_status_args
=
6040 test "$silent" = yes &&
6041 ac_config_status_args
="$ac_config_status_args --quiet"
6043 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6046 # would make configure fail if this is the last instruction.
6047 $ac_cs_success || as_fn_exit
1
6049 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6051 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}