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
707 ac_precious_vars
='build_alias
723 # Initialize some variables set by options.
725 ac_init_version
=false
726 ac_unrecognized_opts
=
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name
=s
,x
,x
,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir
='${exec_prefix}/bin'
752 sbindir
='${exec_prefix}/sbin'
753 libexecdir
='${exec_prefix}/libexec'
754 datarootdir
='${prefix}/share'
755 datadir
='${datarootdir}'
756 sysconfdir
='${prefix}/etc'
757 sharedstatedir
='${prefix}/com'
758 localstatedir
='${prefix}/var'
759 includedir
='${prefix}/include'
760 oldincludedir
='/usr/include'
761 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir
='${datarootdir}/info'
767 libdir
='${exec_prefix}/lib'
768 localedir
='${datarootdir}/locale'
769 mandir
='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\
$ac_option
783 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
794 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
796 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
799 -build |
--build |
--buil |
--bui |
--bu)
800 ac_prev
=build_alias
;;
801 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
802 build_alias
=$ac_optarg ;;
804 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
805 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
806 ac_prev
=cache_file
;;
807 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
808 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
809 cache_file
=$ac_optarg ;;
812 cache_file
=config.cache
;;
814 -datadir |
--datadir |
--datadi |
--datad)
816 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
817 datadir
=$ac_optarg ;;
819 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
820 |
--dataroo |
--dataro |
--datar)
821 ac_prev
=datarootdir
;;
822 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
823 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
824 datarootdir
=$ac_optarg ;;
826 -disable-* |
--disable-*)
827 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
830 as_fn_error $?
"invalid feature name: $ac_useropt"
831 ac_useropt_orig
=$ac_useropt
832 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
837 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
838 ac_unrecognized_sep
=', ';;
840 eval enable_
$ac_useropt=no
;;
842 -docdir |
--docdir |
--docdi |
--doc |
--do)
844 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
847 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
849 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
852 -enable-* |
--enable-*)
853 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
856 as_fn_error $?
"invalid feature name: $ac_useropt"
857 ac_useropt_orig
=$ac_useropt
858 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
864 ac_unrecognized_sep
=', ';;
866 eval enable_
$ac_useropt=\
$ac_optarg ;;
868 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
869 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
870 |
--exec |
--exe |
--ex)
871 ac_prev
=exec_prefix
;;
872 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
873 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
874 |
--exec=* |
--exe=* |
--ex=*)
875 exec_prefix
=$ac_optarg ;;
877 -gas |
--gas |
--ga |
--g)
878 # Obsolete; use --with-gas.
881 -help |
--help |
--hel |
--he |
-h)
883 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
884 ac_init_help
=recursive
;;
885 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
886 ac_init_help
=short
;;
888 -host |
--host |
--hos |
--ho)
889 ac_prev
=host_alias
;;
890 -host=* |
--host=* |
--hos=* |
--ho=*)
891 host_alias
=$ac_optarg ;;
893 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
895 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
897 htmldir
=$ac_optarg ;;
899 -includedir |
--includedir |
--includedi |
--included |
--include \
900 |
--includ |
--inclu |
--incl |
--inc)
901 ac_prev
=includedir
;;
902 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
903 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
904 includedir
=$ac_optarg ;;
906 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
908 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
909 infodir
=$ac_optarg ;;
911 -libdir |
--libdir |
--libdi |
--libd)
913 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
916 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
917 |
--libexe |
--libex |
--libe)
918 ac_prev
=libexecdir
;;
919 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
920 |
--libexe=* |
--libex=* |
--libe=*)
921 libexecdir
=$ac_optarg ;;
923 -localedir |
--localedir |
--localedi |
--localed |
--locale)
925 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
926 localedir
=$ac_optarg ;;
928 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
929 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
930 ac_prev
=localstatedir
;;
931 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
932 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
933 localstatedir
=$ac_optarg ;;
935 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
937 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
941 # Obsolete; use --without-fp.
944 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
945 |
--no-cr |
--no-c |
-n)
948 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
949 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
952 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
953 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
954 |
--oldin |
--oldi |
--old |
--ol |
--o)
955 ac_prev
=oldincludedir
;;
956 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
957 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
958 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
959 oldincludedir
=$ac_optarg ;;
961 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
963 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
966 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
967 |
--program-pre |
--program-pr |
--program-p)
968 ac_prev
=program_prefix
;;
969 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
970 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
971 program_prefix
=$ac_optarg ;;
973 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
974 |
--program-suf |
--program-su |
--program-s)
975 ac_prev
=program_suffix
;;
976 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
977 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
978 program_suffix
=$ac_optarg ;;
980 -program-transform-name |
--program-transform-name \
981 |
--program-transform-nam |
--program-transform-na \
982 |
--program-transform-n |
--program-transform- \
983 |
--program-transform |
--program-transfor \
984 |
--program-transfo |
--program-transf \
985 |
--program-trans |
--program-tran \
986 |
--progr-tra |
--program-tr |
--program-t)
987 ac_prev
=program_transform_name
;;
988 -program-transform-name=* |
--program-transform-name=* \
989 |
--program-transform-nam=* |
--program-transform-na=* \
990 |
--program-transform-n=* |
--program-transform-=* \
991 |
--program-transform=* |
--program-transfor=* \
992 |
--program-transfo=* |
--program-transf=* \
993 |
--program-trans=* |
--program-tran=* \
994 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
995 program_transform_name
=$ac_optarg ;;
997 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
999 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 pdfdir
=$ac_optarg ;;
1002 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1004 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1007 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1008 |
-silent |
--silent |
--silen |
--sile |
--sil)
1011 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1013 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1015 sbindir
=$ac_optarg ;;
1017 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1018 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1019 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1021 ac_prev
=sharedstatedir
;;
1022 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1023 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1024 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1026 sharedstatedir
=$ac_optarg ;;
1028 -site |
--site |
--sit)
1030 -site=* |
--site=* |
--sit=*)
1033 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1035 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1036 srcdir
=$ac_optarg ;;
1038 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1039 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1040 ac_prev
=sysconfdir
;;
1041 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1042 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1043 sysconfdir
=$ac_optarg ;;
1045 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1046 ac_prev
=target_alias
;;
1047 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1048 target_alias
=$ac_optarg ;;
1050 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1053 -version |
--version |
--versio |
--versi |
--vers |
-V)
1054 ac_init_version
=: ;;
1057 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1060 as_fn_error $?
"invalid package name: $ac_useropt"
1061 ac_useropt_orig
=$ac_useropt
1062 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068 ac_unrecognized_sep
=', ';;
1070 eval with_
$ac_useropt=\
$ac_optarg ;;
1072 -without-* |
--without-*)
1073 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error $?
"invalid package name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval with_
$ac_useropt=no
;;
1089 # Obsolete; use --with-x.
1092 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1093 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1094 ac_prev
=x_includes
;;
1095 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1096 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1097 x_includes
=$ac_optarg ;;
1099 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1100 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1101 ac_prev
=x_libraries
;;
1102 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1103 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1104 x_libraries
=$ac_optarg ;;
1106 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1107 Try \`$0 --help' for more information"
1111 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 case $ac_envvar in #(
1114 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1115 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1117 eval $ac_envvar=\
$ac_optarg
1118 export $ac_envvar ;;
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 if test -n "$ac_prev"; then
1132 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1133 as_fn_error $?
"missing argument to $ac_option"
1136 if test -n "$ac_unrecognized_opts"; then
1137 case $enable_option_checking in
1139 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1140 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 # Check all directory arguments for consistency.
1145 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146 datadir sysconfdir sharedstatedir localstatedir includedir \
1147 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148 libdir localedir mandir
1150 eval ac_val
=\$
$ac_var
1151 # Remove trailing slashes.
1154 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155 eval $ac_var=\
$ac_val;;
1157 # Be sure to have absolute directory names.
1159 [\\/$
]* | ?
:[\\/]* ) continue;;
1160 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1162 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1165 # There might be people who depend on the old broken behavior: `$host'
1166 # used to hold the argument of --host etc.
1167 # FIXME: To remove some day.
1170 target
=$target_alias
1172 # FIXME: To remove some day.
1173 if test "x$host_alias" != x
; then
1174 if test "x$build_alias" = x
; then
1175 cross_compiling
=maybe
1176 elif test "x$build_alias" != "x$host_alias"; then
1182 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1184 test "$silent" = yes && exec 6>/dev
/null
1187 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di
=`ls -di .` &&
1189 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error $?
"working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error $?
"pwd does not report name of working directory"
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted
=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir
=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted
=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1231 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1233 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1245 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1247 for ac_var
in $ac_precious_vars; do
1248 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1250 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1255 # Report the --help message.
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1261 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1268 Defaults for the options are specified in brackets.
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking ...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1292 For better control, use the options below.
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1319 --build=BUILD configure
for building on BUILD
[guessed
]
1320 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive
) echo "Configuration of RISC-V ISA Simulator ?:";;
1331 --disable-option-checking ignore unrecognized
--enable/--with options
1332 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1333 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1334 --enable-stow Enable stow-based
install
1335 --enable-optional-subprojects
1336 Enable all optional subprojects
1337 --enable-commitlog Enable commit log generation
1338 --enable-histogram Enable PC histogram generation
1341 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1342 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1343 --with-isa=RV64IMAFDC Sets the default RISC-V ISA
1344 --with-fesvr path to your fesvr installation
if not
in a standard
1347 Some influential environment variables
:
1348 CC C compiler
command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1351 nonstandard directory
<lib dir
>
1352 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1353 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1354 you have headers
in a nonstandard directory
<include dir
>
1355 CXX C
++ compiler
command
1356 CXXFLAGS C
++ compiler flags
1357 CXXCPP C
++ preprocessor
1358 STOW_ROOT Root
for non-native stow-based installs
1359 STOW_PREFIX Prefix
for stow-based installs
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1364 Report bugs to <Andrew Waterman>.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" ||
1373 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1394 .) # We are building in place.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1418 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1427 RISC-V ISA Simulator configure ?
1428 generated by GNU Autoconf 2.69
1430 Copyright (C) 2012 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1437 ## ------------------------ ##
1438 ## Autoconf initialization. ##
1439 ## ------------------------ ##
1441 # ac_fn_c_try_compile LINENO
1442 # --------------------------
1443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1444 ac_fn_c_try_compile ()
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 rm -f conftest.$ac_objext
1448 if { { ac_try="$ac_compile"
1450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1451 *) ac_try_echo
=$ac_try;;
1453 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_compile") 2>conftest.err
1457 if test -s conftest.err
; then
1458 grep -v '^ *+' conftest.err
>conftest.er1
1459 cat conftest.er1
>&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } && {
1464 test -z "$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 } && test -s conftest.
$ac_objext; then :
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.
$ac_ext >&5
1474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1475 as_fn_set_status
$ac_retval
1477 } # ac_fn_c_try_compile
1479 # ac_fn_cxx_try_compile LINENO
1480 # ----------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_cxx_try_compile
()
1484 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1485 rm -f conftest.
$ac_objext
1486 if { { ac_try
="$ac_compile"
1488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_cxx_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1513 as_fn_set_status $ac_retval
1515 } # ac_fn_cxx_try_compile
1517 # ac_fn_cxx_try_run LINENO
1518 # ------------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1520 # that executables *can* be run.
1521 ac_fn_cxx_try_run ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_link"
1526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1527 *) ac_try_echo
=$ac_try;;
1529 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>&5
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1535 { { case "(($ac_try" in
1536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_try") 2>&5
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; }; }; then :
1547 $as_echo "$as_me: program exited with status $ac_status" >&5
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551 ac_retval=$ac_status
1553 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_cxx_try_run
1559 # ac_fn_cxx_try_cpp LINENO
1560 # ------------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_cxx_try_cpp ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 if test -s conftest.err
; then
1575 grep -v '^ *+' conftest.err
>conftest.er1
1576 cat conftest.er1
>&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i
&& {
1581 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1582 test ! -s conftest.err
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.
$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status
$ac_retval
1594 } # ac_fn_cxx_try_cpp
1596 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1597 # ---------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_cxx_check_header_compile
()
1602 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \
${$3+:} false
; then :
1606 $as_echo_n "(cached) " >&6
1608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1613 if ac_fn_cxx_try_compile
"$LINENO"; then :
1618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 } # ac_fn_cxx_check_header_compile
1627 # ac_fn_cxx_try_link LINENO
1628 # -------------------------
1629 # Try to link conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_cxx_try_link
()
1632 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1633 rm -f conftest.
$ac_objext conftest
$ac_exeext
1634 if { { ac_try
="$ac_link"
1636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_link") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_cxx_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest$ac_exeext && {
1653 test "$cross_compiling" = yes ||
1654 test -x conftest$ac_exeext
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1663 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1664 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1665 # interfere with the next link command; also delete a directory that is
1666 # left behind by Apple's compiler. We do this before executing the actions.
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_cxx_try_link
1672 cat >config.log <<_ACEOF
1673 This file contains any messages produced by compilers while
1674 running configure, to aid debugging if configure makes a mistake.
1676 It was created by RISC-V ISA Simulator $as_me ?, which was
1677 generated by GNU Autoconf 2.69. Invocation command line was
1689 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1690 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1691 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1692 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1693 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1695 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1696 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1698 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1699 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1700 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1701 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1702 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1703 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1704 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 $as_echo "PATH: $as_dir"
1729 # Keep a trace of the command line.
1730 # Strip out --no-create and --no-recursion so they do not pile up.
1731 # Strip out --silent because we don't want to record it for future runs.
1732 # Also quote any args containing shell meta-characters.
1733 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_must_keep_next=false
1743 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1745 | -silent | --silent | --silen | --sile | --sil)
1748 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1751 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1753 as_fn_append ac_configure_args1 " '$ac_arg'"
1754 if test $ac_must_keep_next = true; then
1755 ac_must_keep_next=false # Got value, back to normal.
1758 *=* | --config-cache | -C | -disable-* | --disable-* \
1759 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1760 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1761 | -with-* | --with-* | -without-* | --without-* | --x)
1762 case "$ac_configure_args0 " in
1763 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 -* ) ac_must_keep_next=true ;;
1769 as_fn_append ac_configure_args " '$ac_arg'"
1774 { ac_configure_args0=; unset ac_configure_args0;}
1775 { ac_configure_args1=; unset ac_configure_args1;}
1777 # When interrupted or exit'd, cleanup temporary files, and complete
1778 # config.log. We remove comments because anyway the quotes in there
1779 # would cause problems or look ugly.
1780 # WARNING: Use '\'' to represent an apostrophe within the trap.
1781 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1782 trap 'exit_status=$?
1783 # Save into config.log some information that might help in debugging.
1787 $as_echo "## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##"
1791 # The following way of writing the cache mishandles newlines in values,
1793 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1794 eval ac_val=\$$ac_var
1798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1802 _ | IFS | as_nl) ;; #(
1803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1804 *) { eval $ac_var=; unset $ac_var;} ;;
1809 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
1812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 $as_echo "## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##"
1827 for ac_var in $ac_subst_vars
1829 eval ac_val=\$$ac_var
1831 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 $as_echo "$ac_var='\''$ac_val'\''"
1837 if test -n "$ac_subst_files"; then
1838 $as_echo "## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##"
1842 for ac_var in $ac_subst_files
1844 eval ac_val=\$$ac_var
1846 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 $as_echo "$ac_var='\''$ac_val'\''"
1853 if test -s confdefs.h; then
1854 $as_echo "## ----------- ##
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1877 $as_echo "/* confdefs.h */" > confdefs.h
1879 # Predefined preprocessor variables.
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_URL "$PACKAGE_URL"
1906 # Let the site file select an alternate cache file if it wants to.
1907 # Prefer an explicitly selected file to automatically selected ones.
1910 if test -n "$CONFIG_SITE"; then
1911 # We do not want a PATH search for config.site.
1912 case $CONFIG_SITE in #((
1913 -*) ac_site_file1=./$CONFIG_SITE;;
1914 */*) ac_site_file1=$CONFIG_SITE;;
1915 *) ac_site_file1=./$CONFIG_SITE;;
1917 elif test "x$prefix" != xNONE; then
1918 ac_site_file1=$prefix/share/config.site
1919 ac_site_file2=$prefix/etc/config.site
1921 ac_site_file1=$ac_default_prefix/share/config.site
1922 ac_site_file2=$ac_default_prefix/etc/config.site
1924 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1926 test "x$ac_site_file" = xNONE && continue
1927 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1932 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1934 as_fn_error $? "failed to load site
script $ac_site_file
1935 See \
`config.log' for more details" "$LINENO" 5; }
1939 if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special files
1941 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1942 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1944 $as_echo "$as_me: loading cache $cache_file" >&6;}
1946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1952 $as_echo "$as_me: creating cache $cache_file" >&6;}
1956 # Check that the precious variables saved in the cache have kept the same
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
1962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
1964 case $ac_old_set,$ac_new_set in
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1967 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1971 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
1976 # differences in whitespace do not lead to failure.
1977 ac_old_val_w=`echo x
$ac_old_val`
1978 ac_new_val_w=`echo x
$ac_new_val`
1979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1982 ac_cache_corrupted=:
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986 eval $ac_var=\$ac_old_val
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1989 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1994 # Pass precious variables to config.status.
1995 if test "$ac_new_set" = set; then
1997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1998 *) ac_arg=$ac_var=$ac_new_val ;;
2000 case " $ac_configure_args " in
2001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2006 if $ac_cache_corrupted; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2013 ## -------------------- ##
2014 ## Main body of script. ##
2015 ## -------------------- ##
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 ac_cpp='$CXXCPP $CPPFLAGS'
2026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2032 for ac_dir in scripts "$srcdir"/scripts; do
2033 if test -f "$ac_dir/install-sh"; then
2035 ac_install_sh="$ac_aux_dir/install-sh -c"
2037 elif test -f "$ac_dir/install.sh"; then
2039 ac_install_sh="$ac_aux_dir/install.sh -c"
2041 elif test -f "$ac_dir/shtool"; then
2043 ac_install_sh="$ac_aux_dir/shtool install -c"
2047 if test -z "$ac_aux_dir"; then
2048 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2065 $as_echo_n "checking build system type... " >&6; }
2066 if ${ac_cv_build+:} false; then :
2067 $as_echo_n "(cached) " >&6
2069 ac_build_alias=$build_alias
2070 test "x$ac_build_alias" = x &&
2071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2072 test "x$ac_build_alias" = x &&
2073 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2074 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2075 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2079 $as_echo "$ac_cv_build" >&6; }
2080 case $ac_cv_build in
2082 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2099 $as_echo_n "checking host system type... " >&6; }
2100 if ${ac_cv_host+:} false; then :
2101 $as_echo_n "(cached) " >&6
2103 if test "x$host_alias" = x; then
2104 ac_cv_host=$ac_cv_build
2106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2112 $as_echo "$ac_cv_host" >&6; }
2115 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2118 ac_save_IFS=$IFS; IFS='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2132 #-------------------------------------------------------------------------
2133 # Checks for programs
2134 #-------------------------------------------------------------------------
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141 if test -n "$ac_tool_prefix"; then
2142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2145 $as_echo_n "checking for $ac_word... " >&6; }
2146 if ${ac_cv_prog_CC+:} false; then :
2147 $as_echo_n "(cached) " >&6
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 if test -n "$CC"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2172 $as_echo "$CC" >&6; }
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2175 $as_echo "no" >&6; }
2180 if test -z "$ac_cv_prog_CC"; then
2182 # Extract the first word of "gcc", so it can be a program name with args.
2183 set dummy gcc; ac_word=$2
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2185 $as_echo_n "checking for $ac_word... " >&6; }
2186 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2187 $as_echo_n "(cached) " >&6
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_ac_ct_CC="gcc"
2200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210 if test -n "$ac_ct_CC"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2212 $as_echo "$ac_ct_CC" >&6; }
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2215 $as_echo "no" >&6; }
2218 if test "x$ac_ct_CC" = x; then
2221 case $cross_compiling:$ac_tool_warned in
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2225 ac_tool_warned=yes ;;
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2236 set dummy ${ac_tool_prefix}cc; ac_word=$2
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2238 $as_echo_n "checking for $ac_word... " >&6; }
2239 if ${ac_cv_prog_CC+:} false; then :
2240 $as_echo_n "(cached) " >&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
2253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 if test -n "$CC"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2265 $as_echo "$CC" >&6; }
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2268 $as_echo "no" >&6; }
2274 if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276 set dummy cc; ac_word=$2
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if ${ac_cv_prog_CC+:} false; then :
2280 $as_echo_n "(cached) " >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2309 if test $# != 0; then
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2320 if test -n "$CC"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2322 $as_echo "$CC" >&6; }
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2325 $as_echo "no" >&6; }
2330 if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 for ac_prog in cl.exe
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337 $as_echo_n "checking for $ac_word... " >&6; }
2338 if ${ac_cv_prog_CC+:} false; then :
2339 $as_echo_n "(cached) " >&6
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 if test -n "$CC"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2364 $as_echo "$CC" >&6; }
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367 $as_echo "no" >&6; }
2371 test -n "$CC" && break
2374 if test -z "$CC"; then
2376 for ac_prog in cl.exe
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381 $as_echo_n "checking for $ac_word... " >&6; }
2382 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2383 $as_echo_n "(cached) " >&6
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406 if test -n "$ac_ct_CC"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2408 $as_echo "$ac_ct_CC" >&6; }
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411 $as_echo "no" >&6; }
2415 test -n "$ac_ct_CC" && break
2418 if test "x$ac_ct_CC" = x; then
2421 case $cross_compiling:$ac_tool_warned in
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2425 ac_tool_warned=yes ;;
2434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2437 See \
`config.log' for more details" "$LINENO" 5; }
2439 # Provide some information about the compiler.
2440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2443 for ac_option in --version -v -V -qversion; do
2444 { { ac_try="$ac_compiler $ac_option >&5"
2446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2447 *) ac_try_echo
=$ac_try;;
2449 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450 $as_echo "$ac_try_echo"; } >&5
2451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2453 if test -s conftest.err
; then
2455 ... rest of stderr output deleted ...
2456 10q' conftest.err
>conftest.er1
2457 cat conftest.er1
>&5
2459 rm -f conftest.er1 conftest.err
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; }
2464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2475 ac_clean_files_save
=$ac_clean_files
2476 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2481 $as_echo_n "checking whether the C compiler works... " >&6; }
2482 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484 # The possible output files:
2485 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2488 for ac_file
in $ac_files
2491 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2492 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2497 if { { ac_try
="$ac_link_default"
2499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2503 $as_echo "$ac_try_echo"; } >&5
2504 (eval "$ac_link_default") 2>&5
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; }; then :
2508 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2509 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2510 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2511 # so that the user can short-circuit this test for compilers unknown to
2513 for ac_file in $ac_files ''
2515 test -f "$ac_file" || continue
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2520 # We found the default executable, but exeext='' is most
2524 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 # We set ac_cv_exeext here because the later test for it is not
2529 # safe: cross compilers may not add the suffix if given an `-o'
2530 # argument, so we may need to know it at that point already.
2531 # Even if this section looks crufty: it has the advantage of
2538 test "$ac_cv_exeext" = no && ac_cv_exeext=
2543 if test -z "$ac_file"; then :
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545 $as_echo "no" >&6; }
2546 $as_echo "$as_me: failed program was:" >&5
2547 sed 's
/^
/|
/' conftest.$ac_ext >&5
2549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2551 as_fn_error 77 "C compiler cannot create executables
2552 See \`config.log
' for more details" "$LINENO" 5; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2558 $as_echo_n "checking for C compiler default output file name... " >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2560 $as_echo "$ac_file" >&6; }
2561 ac_exeext=$ac_cv_exeext
2563 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2564 ac_clean_files=$ac_clean_files_save
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2566 $as_echo_n "checking for suffix of executables... " >&6; }
2567 if { { ac_try="$ac_link"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link") 2>&5
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; }; then :
2578 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2579 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2580 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2582 for ac_file
in conftest.exe conftest conftest.
*; do
2583 test -f "$ac_file" ||
continue
2585 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2586 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2595 See \`config.log' for more details" "$LINENO" 5; }
2597 rm -f conftest conftest
$ac_cv_exeext
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2599 $as_echo "$ac_cv_exeext" >&6; }
2601 rm -f conftest.
$ac_ext
2602 EXEEXT
=$ac_cv_exeext
2604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2610 FILE *f = fopen ("conftest.out", "w");
2611 return ferror (f) || fclose (f) != 0;
2617 ac_clean_files
="$ac_clean_files conftest.out"
2618 # Check that the compiler produces executables we can run. If not, either
2619 # the compiler is broken, or we cross compile.
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2621 $as_echo_n "checking whether we are cross compiling... " >&6; }
2622 if test "$cross_compiling" != yes; then
2623 { { ac_try
="$ac_link"
2625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>&5
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; }
2634 if { ac_try='./conftest$ac_cv_exeext'
2635 { { case "(($ac_try" in
2636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2637 *) ac_try_echo
=$ac_try;;
2639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_try") 2>&5
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; }; then
2647 if test "$cross_compiling" = maybe
; then
2650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2652 as_fn_error $?
"cannot run C compiled programs.
2653 If you meant to cross compile, use \`--host'.
2654 See \`config.log' for more details" "$LINENO" 5; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2659 $as_echo "$cross_compiling" >&6; }
2661 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2662 ac_clean_files
=$ac_clean_files_save
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2664 $as_echo_n "checking for suffix of object files... " >&6; }
2665 if ${ac_cv_objext+:} false
; then :
2666 $as_echo_n "(cached) " >&6
2668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2679 rm -f conftest.o conftest.obj
2680 if { { ac_try
="$ac_compile"
2682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686 $as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_compile") 2>&5
2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690 test $ac_status = 0; }; then :
2691 for ac_file in conftest.o conftest.obj conftest.*; do
2692 test -f "$ac_file" || continue;
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2695 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2700 $as_echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2706 See \
`config.log' for more details" "$LINENO" 5; }
2708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2711 $as_echo "$ac_cv_objext" >&6; }
2712 OBJEXT=$ac_cv_objext
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2715 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2716 if ${ac_cv_c_compiler_gnu+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2733 if ac_fn_c_try_compile "$LINENO"; then :
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2744 if test $ac_compiler_gnu = yes; then
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2753 if ${ac_cv_prog_cc_g+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 ac_save_c_werror_flag=$ac_c_werror_flag
2757 ac_c_werror_flag=yes
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2771 if ac_fn_c_try_compile "$LINENO"; then :
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2786 if ac_fn_c_try_compile "$LINENO"; then :
2789 ac_c_werror_flag=$ac_save_c_werror_flag
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2802 if ac_fn_c_try_compile "$LINENO"; then :
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 ac_c_werror_flag=$ac_save_c_werror_flag
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2813 $as_echo "$ac_cv_prog_cc_g" >&6; }
2814 if test "$ac_test_CFLAGS" = set; then
2815 CFLAGS=$ac_save_CFLAGS
2816 elif test $ac_cv_prog_cc_g = yes; then
2817 if test "$GCC" = yes; then
2823 if test "$GCC" = yes; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2830 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2831 if ${ac_cv_prog_cc_c89+:} false; then :
2832 $as_echo_n "(cached) " >&6
2834 ac_cv_prog_cc_c89=no
2836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_cv_prog_cc_c89=$ac_arg
2895 rm -f core conftest.err conftest.$ac_objext
2896 test "x$ac_cv_prog_cc_c89" != "xno" && break
2898 rm -f conftest.$ac_ext
2903 case "x$ac_cv_prog_cc_c89" in
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2906 $as_echo "none needed" >&6; } ;;
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2909 $as_echo "unsupported" >&6; } ;;
2911 CC="$CC $ac_cv_prog_cc_c89"
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2915 if test "x$ac_cv_prog_cc_c89" != xno; then :
2920 ac_cpp='$CXXCPP $CPPFLAGS'
2921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2926 ac_cpp='$CXXCPP $CPPFLAGS'
2927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2930 if test -z "$CXX"; then
2931 if test -n "$CCC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CXX+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CXX"; then
2945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CXX"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2967 $as_echo "$CXX" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$CXX" && break
2977 if test -z "$CXX"; then
2979 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$ac_ct_CXX"; then
2989 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_ac_ct_CXX="$ac_prog"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3009 if test -n "$ac_ct_CXX"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3011 $as_echo "$ac_ct_CXX" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3018 test -n "$ac_ct_CXX" && break
3021 if test "x$ac_ct_CXX" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3040 for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3044 *) ac_try_echo
=$ac_try;;
3046 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3050 if test -s conftest.err
; then
3052 ... rest of stderr output deleted ...
3053 10q' conftest.err
>conftest.er1
3054 cat conftest.er1
>&5
3056 rm -f conftest.er1 conftest.err
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3062 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3063 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3064 $as_echo_n "(cached) " >&6
3066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3080 if ac_fn_cxx_try_compile
"$LINENO"; then :
3085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3090 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3091 if test $ac_compiler_gnu = yes; then
3096 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3097 ac_save_CXXFLAGS
=$CXXFLAGS
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3099 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3100 if ${ac_cv_prog_cxx_g+:} false
; then :
3101 $as_echo_n "(cached) " >&6
3103 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3104 ac_cxx_werror_flag
=yes
3107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3118 if ac_fn_cxx_try_compile
"$LINENO"; then :
3119 ac_cv_prog_cxx_g
=yes
3122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3133 if ac_fn_cxx_try_compile
"$LINENO"; then :
3136 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3149 if ac_fn_cxx_try_compile
"$LINENO"; then :
3150 ac_cv_prog_cxx_g
=yes
3152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3157 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3160 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3161 if test "$ac_test_CXXFLAGS" = set; then
3162 CXXFLAGS
=$ac_save_CXXFLAGS
3163 elif test $ac_cv_prog_cxx_g = yes; then
3164 if test "$GXX" = yes; then
3170 if test "$GXX" = yes; then
3177 ac_cpp
='$CXXCPP $CPPFLAGS'
3178 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3184 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_AR+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$AR"; then
3191 ac_cv_prog_AR
="$AR" # Let the user override the test.
3193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir
=.
3198 for ac_exec_ext
in '' $ac_executable_extensions; do
3199 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$AR"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3213 $as_echo "$AR" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_AR"; then
3223 # Extract the first word of "ar", so it can be a program name with args.
3224 set dummy
ar; ac_word
=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_AR"; then
3231 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 for ac_exec_ext
in '' $ac_executable_extensions; do
3239 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_AR
="ar"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3251 if test -n "$ac_ct_AR"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3253 $as_echo "$ac_ct_AR" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_AR" = x
; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned
=yes ;;
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3276 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_RANLIB+:} false
; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$RANLIB"; then
3283 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 RANLIB
=$ac_cv_prog_RANLIB
3303 if test -n "$RANLIB"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3305 $as_echo "$RANLIB" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3313 if test -z "$ac_cv_prog_RANLIB"; then
3314 ac_ct_RANLIB
=$RANLIB
3315 # Extract the first word of "ranlib", so it can be a program name with args.
3316 set dummy ranlib
; ac_word
=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$ac_ct_RANLIB"; then
3323 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3343 if test -n "$ac_ct_RANLIB"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3345 $as_echo "$ac_ct_RANLIB" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3351 if test "x$ac_ct_RANLIB" = x
; then
3354 case $cross_compiling:$ac_tool_warned in
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned
=yes ;;
3360 RANLIB
=$ac_ct_RANLIB
3363 RANLIB
="$ac_cv_prog_RANLIB"
3369 ac_cpp
='$CXXCPP $CPPFLAGS'
3370 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3374 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3375 if test -z "$CXXCPP"; then
3376 if ${ac_cv_prog_CXXCPP+:} false
; then :
3377 $as_echo_n "(cached) " >&6
3379 # Double quotes because CXXCPP needs to be expanded
3380 for CXXCPP
in "$CXX -E" "/lib/cpp"
3383 for ac_cxx_preproc_warn_flag
in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3394 # include <limits.h>
3396 # include <assert.h>
3400 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3403 # Broken: fails on valid input.
3406 rm -f conftest.err conftest.i conftest.
$ac_ext
3408 # OK, works on sane cases. Now check whether nonexistent headers
3409 # can be detected and how.
3410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3415 # Broken: success on invalid input.
3418 # Passes both tests.
3422 rm -f conftest.err conftest.i conftest.
$ac_ext
3425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3426 rm -f conftest.i conftest.err conftest.
$ac_ext
3427 if $ac_preproc_ok; then :
3432 ac_cv_prog_CXXCPP
=$CXXCPP
3435 CXXCPP
=$ac_cv_prog_CXXCPP
3437 ac_cv_prog_CXXCPP
=$CXXCPP
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3440 $as_echo "$CXXCPP" >&6; }
3442 for ac_cxx_preproc_warn_flag
in '' yes
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
3450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3453 # include <limits.h>
3455 # include <assert.h>
3459 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3462 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.i conftest.
$ac_ext
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
3469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <ac_nonexistent.h>
3473 if ac_fn_cxx_try_cpp
"$LINENO"; then :
3474 # Broken: success on invalid input.
3477 # Passes both tests.
3481 rm -f conftest.err conftest.i conftest.
$ac_ext
3484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485 rm -f conftest.i conftest.err conftest.
$ac_ext
3486 if $ac_preproc_ok; then :
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
3492 See \`config.log' for more details" "$LINENO" 5; }
3496 ac_cpp
='$CXXCPP $CPPFLAGS'
3497 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3504 if ${ac_cv_path_GREP+:} false
; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -z "$GREP"; then
3508 ac_path_GREP_found
=false
3509 # Loop through the user's path and test for each of PROGNAME-LIST
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3511 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_prog
in grep ggrep
; do
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3518 as_fn_executable_p
"$ac_path_GREP" ||
continue
3519 # Check for GNU ac_path_GREP and select it if it is found.
3520 # Check for GNU $ac_path_GREP
3521 case `"$ac_path_GREP" --version 2>&1` in
3523 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3526 $as_echo_n 0123456789 >"conftest.in"
3529 cat "conftest.in" "conftest.in" >"conftest.tmp"
3530 mv "conftest.tmp" "conftest.in"
3531 cp "conftest.in" "conftest.nl"
3532 $as_echo 'GREP' >> "conftest.nl"
3533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3534 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3535 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3537 # Best one so far, save it but keep looking for a better one
3538 ac_cv_path_GREP
="$ac_path_GREP"
3539 ac_path_GREP_max
=$ac_count
3541 # 10*(2^10) chars as input seems more than enough
3542 test $ac_count -gt 10 && break
3544 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3547 $ac_path_GREP_found && break 3
3552 if test -z "$ac_cv_path_GREP"; then
3553 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3556 ac_cv_path_GREP
=$GREP
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3561 $as_echo "$ac_cv_path_GREP" >&6; }
3562 GREP
="$ac_cv_path_GREP"
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3566 $as_echo_n "checking for egrep... " >&6; }
3567 if ${ac_cv_path_EGREP+:} false
; then :
3568 $as_echo_n "(cached) " >&6
3570 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3571 then ac_cv_path_EGREP
="$GREP -E"
3573 if test -z "$EGREP"; then
3574 ac_path_EGREP_found
=false
3575 # Loop through the user's path and test for each of PROGNAME-LIST
3576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3577 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3580 test -z "$as_dir" && as_dir
=.
3581 for ac_prog
in egrep; do
3582 for ac_exec_ext
in '' $ac_executable_extensions; do
3583 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3584 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3585 # Check for GNU ac_path_EGREP and select it if it is found.
3586 # Check for GNU $ac_path_EGREP
3587 case `"$ac_path_EGREP" --version 2>&1` in
3589 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3592 $as_echo_n 0123456789 >"conftest.in"
3595 cat "conftest.in" "conftest.in" >"conftest.tmp"
3596 mv "conftest.tmp" "conftest.in"
3597 cp "conftest.in" "conftest.nl"
3598 $as_echo 'EGREP' >> "conftest.nl"
3599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3600 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3601 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3603 # Best one so far, save it but keep looking for a better one
3604 ac_cv_path_EGREP
="$ac_path_EGREP"
3605 ac_path_EGREP_max
=$ac_count
3607 # 10*(2^10) chars as input seems more than enough
3608 test $ac_count -gt 10 && break
3610 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3613 $ac_path_EGREP_found && break 3
3618 if test -z "$ac_cv_path_EGREP"; then
3619 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3622 ac_cv_path_EGREP
=$EGREP
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3628 $as_echo "$ac_cv_path_EGREP" >&6; }
3629 EGREP
="$ac_cv_path_EGREP"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3633 $as_echo_n "checking for ANSI C header files... " >&6; }
3634 if ${ac_cv_header_stdc+:} false
; then :
3635 $as_echo_n "(cached) " >&6
3637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3652 if ac_fn_cxx_try_compile
"$LINENO"; then :
3653 ac_cv_header_stdc
=yes
3655 ac_cv_header_stdc
=no
3657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3659 if test $ac_cv_header_stdc = yes; then
3660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667 $EGREP "memchr" >/dev
/null
2>&1; then :
3670 ac_cv_header_stdc
=no
3676 if test $ac_cv_header_stdc = yes; then
3677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684 $EGREP "free" >/dev
/null
2>&1; then :
3687 ac_cv_header_stdc
=no
3693 if test $ac_cv_header_stdc = yes; then
3694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3695 if test "$cross_compiling" = yes; then :
3698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 #if ((' ' & 0x0FF) == 0x020)
3703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3706 # define ISLOWER(c) \
3707 (('a' <= (c) && (c) <= 'i') \
3708 || ('j' <= (c) && (c) <= 'r') \
3709 || ('s' <= (c) && (c) <= 'z'))
3710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3718 for (i = 0; i < 256; i++)
3719 if (XOR (islower (i), ISLOWER (i))
3720 || toupper (i) != TOUPPER (i))
3725 if ac_fn_cxx_try_run
"$LINENO"; then :
3728 ac_cv_header_stdc
=no
3730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3737 $as_echo "$ac_cv_header_stdc" >&6; }
3738 if test $ac_cv_header_stdc = yes; then
3740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3745 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3746 inttypes.h stdint.h unistd.h
3748 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3751 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3752 cat >>confdefs.h
<<_ACEOF
3753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3762 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3763 if ${ac_cv_c_bigendian+:} false
; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_cv_c_bigendian
=unknown
3767 # See if we're dealing with a universal compiler.
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #ifndef __APPLE_CC__
3771 not a universal capable compiler
3776 if ac_fn_cxx_try_compile
"$LINENO"; then :
3778 # Check for potential -arch flags. It is not universal unless
3779 # there are at least two -arch flags with different values.
3782 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3783 if test -n "$ac_prev"; then
3785 i?
86 | x86_64 | ppc | ppc64
)
3786 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
3789 ac_cv_c_bigendian
=universal
3795 elif test "x$ac_word" = "x-arch"; then
3800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3801 if test $ac_cv_c_bigendian = unknown
; then
3802 # See if sys/param.h defines the BYTE_ORDER macro.
3803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805 #include <sys/types.h>
3806 #include <sys/param.h>
3811 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3812 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3821 if ac_fn_cxx_try_compile
"$LINENO"; then :
3822 # It does; now see whether it defined to BIG_ENDIAN or not.
3823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <sys/types.h>
3826 #include <sys/param.h>
3831 #if BYTE_ORDER != BIG_ENDIAN
3839 if ac_fn_cxx_try_compile
"$LINENO"; then :
3840 ac_cv_c_bigendian
=yes
3842 ac_cv_c_bigendian
=no
3844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3848 if test $ac_cv_c_bigendian = unknown
; then
3849 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3857 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3865 if ac_fn_cxx_try_compile
"$LINENO"; then :
3866 # It does; now see whether it defined to _BIG_ENDIAN or not.
3867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3882 if ac_fn_cxx_try_compile
"$LINENO"; then :
3883 ac_cv_c_bigendian
=yes
3885 ac_cv_c_bigendian
=no
3887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 if test $ac_cv_c_bigendian = unknown
; then
3892 # Compile a test program.
3893 if test "$cross_compiling" = yes; then :
3894 # Try to guess by grepping values from an object file.
3895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 short int ascii_mm[] =
3898 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3899 short int ascii_ii[] =
3900 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3901 int use_ascii (int i) {
3902 return ascii_mm[i] + ascii_ii[i];
3904 short int ebcdic_ii[] =
3905 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3906 short int ebcdic_mm[] =
3907 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3908 int use_ebcdic (int i) {
3909 return ebcdic_mm[i] + ebcdic_ii[i];
3916 return use_ascii (foo) == use_ebcdic (foo);
3921 if ac_fn_cxx_try_compile
"$LINENO"; then :
3922 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
3923 ac_cv_c_bigendian
=yes
3925 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
3926 if test "$ac_cv_c_bigendian" = unknown
; then
3927 ac_cv_c_bigendian
=no
3929 # finding both strings is unlikely to happen, but who knows?
3930 ac_cv_c_bigendian
=unknown
3934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 $ac_includes_default
3943 /* Are we little or big endian? From Harbison&Steele. */
3947 char c[sizeof (long int)];
3950 return u.c[sizeof (long int) - 1] == 1;
3956 if ac_fn_cxx_try_run
"$LINENO"; then :
3957 ac_cv_c_bigendian
=no
3959 ac_cv_c_bigendian
=yes
3961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3968 $as_echo "$ac_cv_c_bigendian" >&6; }
3969 case $ac_cv_c_bigendian in #(
3971 as_fn_error $?
"Spike requires a little-endian host" "$LINENO" 5;; #(
3976 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3980 as_fn_error $?
"unknown endianness
3981 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3985 #-------------------------------------------------------------------------
3986 # MCPPBS specific program checks
3987 #-------------------------------------------------------------------------
3988 # These macros check to see if we can do a stow-based install and also
3989 # check for an isa simulator suitable for running the unit test programs
3992 # Find a good install program. We prefer a C program (faster),
3993 # so one script is as good as another. But avoid the broken or
3994 # incompatible versions:
3995 # SysV /etc/install, /usr/sbin/install
3996 # SunOS /usr/etc/install
3997 # IRIX /sbin/install
3999 # AmigaOS /C/install, which installs bootblocks on floppy discs
4000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4003 # OS/2's system install, which has a completely different semantic
4004 # ./install, which can be erroneously created by make from ./install.sh.
4005 # Reject install programs that cannot install multiple files.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4007 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4008 if test -z "$INSTALL"; then
4009 if ${ac_cv_path_install+:} false
; then :
4010 $as_echo_n "(cached) " >&6
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir
=.
4017 # Account for people who put trailing slashes in PATH elements.
4018 case $as_dir/ in #((
4019 .
/ | .
// |
/[cC
]/* | \
4020 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4021 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4024 # OSF1 and SCO ODT 3.0 have their own names for install.
4025 # Don't use installbsd from OSF since it installs stuff as root
4027 for ac_prog
in ginstall scoinst
install; do
4028 for ac_exec_ext
in '' $ac_executable_extensions; do
4029 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4030 if test $ac_prog = install &&
4031 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4032 # AIX install. It has an incompatible calling convention.
4034 elif test $ac_prog = install &&
4035 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4036 # program-specific install script used by HP pwplus--don't use.
4039 rm -rf conftest.one conftest.two conftest.dir
4040 echo one
> conftest.one
4041 echo two
> conftest.two
4043 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4044 test -s conftest.one
&& test -s conftest.two
&&
4045 test -s conftest.dir
/conftest.one
&&
4046 test -s conftest.dir
/conftest.two
4048 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4061 rm -rf conftest.one conftest.two conftest.dir
4064 if test "${ac_cv_path_install+set}" = set; then
4065 INSTALL
=$ac_cv_path_install
4067 # As a last resort, use the slow shell script. Don't cache a
4068 # value for INSTALL within a source directory, because that will
4069 # break other packages using the cache if that directory is
4070 # removed, or if the value is a relative name.
4071 INSTALL
=$ac_install_sh
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4075 $as_echo "$INSTALL" >&6; }
4077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4078 # It thinks the first close brace ends the variable substitution.
4079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4083 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4087 # Configure command line option
4089 # Check whether --enable-stow was given.
4090 if test "${enable_stow+set}" = set; then :
4091 enableval
=$enable_stow; enable_stow
="yes"
4099 # Environment variables
4104 # Check for install script
4108 # Deterimine if native build and set prefix appropriately
4110 if test ${enable_stow} = "yes" ; then :
4114 # Extract the first word of "$ac_prog", so it can be a program name with args.
4115 set dummy
$ac_prog; ac_word
=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_stow+:} false
; then :
4119 $as_echo_n "(cached) " >&6
4121 if test -n "$stow"; then
4122 ac_cv_prog_stow
="$stow" # Let the user override the test.
4124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir
=.
4129 for ac_exec_ext
in '' $ac_executable_extensions; do
4130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_stow
="$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 stow
=$ac_cv_prog_stow
4142 if test -n "$stow"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
4144 $as_echo "$stow" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4151 test -n "$stow" && break
4153 test -n "$stow" || stow
="no"
4155 if test ${stow} = "no" ; then :
4157 as_fn_error $?
"Cannot use --enable-stow since stow is not available" "$LINENO" 5
4161 # Check if native or non-native build
4163 if test "${build}" = "${host}" ; then :
4166 # build == host so this is a native build. Make sure --prefix not
4167 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
4169 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
4171 prefix
="${STOW_PREFIX}"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
4173 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4175 $as_echo "$as_me: prefix=${prefix}" >&6;}
4183 # build != host so this is a non-native build. Make sure --prefix
4184 # not set and $STOW_ROOT is set, then set
4185 # prefix=$STOW_ROOT/${host_alias}.
4187 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
4189 prefix
="${STOW_ROOT}/${host_alias}"
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
4191 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4193 $as_echo "$as_me: prefix=${prefix}" >&6;}
4205 #-------------------------------------------------------------------------
4206 # Checks for header files
4207 #-------------------------------------------------------------------------
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4210 $as_echo_n "checking for ANSI C header files... " >&6; }
4211 if ${ac_cv_header_stdc+:} false
; then :
4212 $as_echo_n "(cached) " >&6
4214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4229 if ac_fn_cxx_try_compile
"$LINENO"; then :
4230 ac_cv_header_stdc
=yes
4232 ac_cv_header_stdc
=no
4234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4236 if test $ac_cv_header_stdc = yes; then
4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "memchr" >/dev
/null
2>&1; then :
4247 ac_cv_header_stdc
=no
4253 if test $ac_cv_header_stdc = yes; then
4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261 $EGREP "free" >/dev
/null
2>&1; then :
4264 ac_cv_header_stdc
=no
4270 if test $ac_cv_header_stdc = yes; then
4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272 if test "$cross_compiling" = yes; then :
4275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4302 if ac_fn_cxx_try_run
"$LINENO"; then :
4305 ac_cv_header_stdc
=no
4307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4314 $as_echo "$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4322 #-------------------------------------------------------------------------
4323 # Default compiler flags
4324 #-------------------------------------------------------------------------
4326 CFLAGS
="-Wall -Wno-unused -g -O2"
4328 CXXFLAGS
="-Wall -Wno-unused -g -O2 -std=c++11"
4331 #-------------------------------------------------------------------------
4332 # MCPPBS subproject list
4333 #-------------------------------------------------------------------------
4334 # Order list so that subprojects only depend on those listed earlier.
4335 # The '*' suffix indicates an optional subproject. The '**' suffix
4336 # indicates an optional subproject which is also the name of a group.
4340 # Add command line argument to enable all optional subprojects
4342 # Check whether --enable-optional-subprojects was given.
4343 if test "${enable_optional_subprojects+set}" = set; then :
4344 enableval
=$enable_optional_subprojects;
4348 # Loop through the subprojects given in the macro argument
4352 # Determine if this is a required or an optional subproject
4356 # Determine if there is a group with the same name
4360 # Create variations of the subproject name suitable for use as a CPP
4361 # enabled define, a shell enabled variable, and a shell function
4373 # Add subproject to our running list
4375 subprojects
="$subprojects riscv"
4377 # Process the subproject appropriately. If enabled add it to the
4378 # $enabled_subprojects running shell variable, set a
4379 # SUBPROJECT_ENABLED C define, and include the appropriate
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4384 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4385 ac_config_files
="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4387 enable_riscv_sproj
="yes"
4388 subprojects_enabled
="$subprojects_enabled riscv"
4390 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4393 ac_cpp
='$CXXCPP $CPPFLAGS'
4394 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4400 # Check whether --with-isa was given.
4401 if test "${with_isa+set}" = set; then :
4403 cat >>confdefs.h
<<_ACEOF
4404 #define DEFAULT_ISA "$withval"
4409 cat >>confdefs.h
<<_ACEOF
4410 #define DEFAULT_ISA "RV64IMAFDC"
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4417 $as_echo_n "checking for library containing dlopen... " >&6; }
4418 if ${ac_cv_search_dlopen+:} false
; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_func_search_save_LIBS
=$LIBS
4422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4425 /* Override any GCC internal prototype to avoid an error.
4426 Use char because int might match the return type of a GCC
4427 builtin and then its argument prototype would still apply. */
4440 for ac_lib
in '' dl dld
; do
4441 if test -z "$ac_lib"; then
4442 ac_res
="none required"
4445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4447 if ac_fn_cxx_try_link
"$LINENO"; then :
4448 ac_cv_search_dlopen
=$ac_res
4450 rm -f core conftest.err conftest.
$ac_objext \
4452 if ${ac_cv_search_dlopen+:} false
; then :
4456 if ${ac_cv_search_dlopen+:} false
; then :
4459 ac_cv_search_dlopen
=no
4462 LIBS
=$ac_func_search_save_LIBS
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4465 $as_echo "$ac_cv_search_dlopen" >&6; }
4466 ac_res
=$ac_cv_search_dlopen
4467 if test "$ac_res" != no
; then :
4468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4472 as_fn_error $?
"unable to find the dlopen() function" "$LINENO" 5
4478 # Check whether --with-fesvr was given.
4479 if test "${with_fesvr+set}" = set; then :
4480 withval
=$with_fesvr;
4481 LDFLAGS
="-L$withval/lib $LDFLAGS"
4482 CPPFLAGS
="-I$withval/include $CPPFLAGS"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4489 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4490 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false
; then :
4491 $as_echo_n "(cached) " >&6
4493 ac_check_lib_save_LIBS
=$LIBS
4494 LIBS
="-lfesvr -pthread $LIBS"
4495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 /* Override any GCC internal prototype to avoid an error.
4499 Use char because int might match the return type of a GCC
4500 builtin and then its argument prototype would still apply. */
4504 char libfesvr_is_present ();
4508 return libfesvr_is_present ();
4513 if ac_fn_cxx_try_link
"$LINENO"; then :
4514 ac_cv_lib_fesvr_libfesvr_is_present
=yes
4516 ac_cv_lib_fesvr_libfesvr_is_present
=no
4518 rm -f core conftest.err conftest.
$ac_objext \
4519 conftest
$ac_exeext conftest.
$ac_ext
4520 LIBS
=$ac_check_lib_save_LIBS
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4523 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4524 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes
; then :
4525 cat >>confdefs.h
<<_ACEOF
4526 #define HAVE_LIBFESVR 1
4529 LIBS
="-lfesvr $LIBS"
4532 as_fn_error $?
"libfesvr is required" "$LINENO" 5
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4537 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4538 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
4539 $as_echo_n "(cached) " >&6
4541 ac_check_lib_save_LIBS
=$LIBS
4542 LIBS
="-lpthread $LIBS"
4543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4546 /* Override any GCC internal prototype to avoid an error.
4547 Use char because int might match the return type of a GCC
4548 builtin and then its argument prototype would still apply. */
4552 char pthread_create ();
4556 return pthread_create ();
4561 if ac_fn_cxx_try_link
"$LINENO"; then :
4562 ac_cv_lib_pthread_pthread_create
=yes
4564 ac_cv_lib_pthread_pthread_create
=no
4566 rm -f core conftest.err conftest.
$ac_objext \
4567 conftest
$ac_exeext conftest.
$ac_ext
4568 LIBS
=$ac_check_lib_save_LIBS
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4571 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4572 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
4573 cat >>confdefs.h
<<_ACEOF
4574 #define HAVE_LIBPTHREAD 1
4577 LIBS
="-lpthread $LIBS"
4580 as_fn_error $?
"libpthread is required" "$LINENO" 5
4584 # Check whether --enable-commitlog was given.
4585 if test "${enable_commitlog+set}" = set; then :
4586 enableval
=$enable_commitlog;
4589 if test "x$enable_commitlog" = "xyes"; then :
4592 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4597 # Check whether --enable-histogram was given.
4598 if test "${enable_histogram+set}" = set; then :
4599 enableval
=$enable_histogram;
4602 if test "x$enable_histogram" = "xyes"; then :
4605 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4614 # Determine if this is a required or an optional subproject
4618 # Determine if there is a group with the same name
4622 # Create variations of the subproject name suitable for use as a CPP
4623 # enabled define, a shell enabled variable, and a shell function
4635 # Add subproject to our running list
4637 subprojects
="$subprojects dummy_rocc"
4639 # Process the subproject appropriately. If enabled add it to the
4640 # $enabled_subprojects running shell variable, set a
4641 # SUBPROJECT_ENABLED C define, and include the appropriate
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4646 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4647 ac_config_files
="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4649 enable_dummy_rocc_sproj
="yes"
4650 subprojects_enabled
="$subprojects_enabled dummy_rocc"
4652 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4659 # Determine if this is a required or an optional subproject
4663 # Determine if there is a group with the same name
4667 # Create variations of the subproject name suitable for use as a CPP
4668 # enabled define, a shell enabled variable, and a shell function
4680 # Add subproject to our running list
4682 subprojects
="$subprojects softfloat"
4684 # Process the subproject appropriately. If enabled add it to the
4685 # $enabled_subprojects running shell variable, set a
4686 # SUBPROJECT_ENABLED C define, and include the appropriate
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4691 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4692 ac_config_files
="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4694 enable_softfloat_sproj
="yes"
4695 subprojects_enabled
="$subprojects_enabled softfloat"
4697 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4704 # Determine if this is a required or an optional subproject
4708 # Determine if there is a group with the same name
4712 # Create variations of the subproject name suitable for use as a CPP
4713 # enabled define, a shell enabled variable, and a shell function
4725 # Add subproject to our running list
4727 subprojects
="$subprojects spike_main"
4729 # Process the subproject appropriately. If enabled add it to the
4730 # $enabled_subprojects running shell variable, set a
4731 # SUBPROJECT_ENABLED C define, and include the appropriate
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4736 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4737 ac_config_files
="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4739 enable_spike_main_sproj
="yes"
4740 subprojects_enabled
="$subprojects_enabled spike_main"
4742 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4749 # Output make variables
4756 #-------------------------------------------------------------------------
4757 # MCPPBS subproject groups
4758 #-------------------------------------------------------------------------
4759 # If a group has the same name as a subproject then you must add the
4760 # '**' suffix in the subproject list above. The list of subprojects in a
4761 # group should be ordered so that subprojets only depend on those listed
4762 # earlier. Here is an example:
4764 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4767 #-------------------------------------------------------------------------
4769 #-------------------------------------------------------------------------
4771 ac_config_headers
="$ac_config_headers config.h"
4773 ac_config_files
="$ac_config_files Makefile"
4775 ac_config_files
="$ac_config_files riscv-spike.pc"
4777 ac_config_files
="$ac_config_files riscv-riscv.pc"
4779 ac_config_files
="$ac_config_files riscv-softfloat.pc"
4781 ac_config_files
="$ac_config_files riscv-dummy_rocc.pc"
4783 ac_config_files
="$ac_config_files riscv-spike_main.pc"
4785 cat >confcache
<<\_ACEOF
4786 # This file is a shell script that caches the results of configure
4787 # tests run on this system so they can be shared between configure
4788 # scripts and configure runs, see configure's option --config-cache.
4789 # It is not useful on other systems. If it contains results you don't
4790 # want to keep, you may remove or edit it.
4792 # config.status only pays attention to the cache file if you give it
4793 # the --recheck option to rerun configure.
4795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4801 # The following way of writing the cache mishandles newlines in values,
4802 # but we know of no workaround that is simple, portable, and efficient.
4803 # So, we kill variables containing newlines.
4804 # Ultrix sh set writes to stderr and can't be redirected directly,
4805 # and sets the high bit in the cache file unless we assign to the vars.
4807 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4808 eval ac_val
=\$
$ac_var
4812 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4816 _ | IFS | as_nl
) ;; #(
4817 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4818 *) { eval $ac_var=; unset $ac_var;} ;;
4824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4825 *${as_nl}ac_space
=\
*)
4826 # `set' does not quote correctly, so add quotes: double-quote
4827 # substitution turns \\\\ into \\, and sed turns \\ into \.
4830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4833 # `set' quotes correctly as required by POSIX, so do not add quotes.
4834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4847 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4848 if test -w "$cache_file"; then
4849 if test "x$cache_file" != "x/dev/null"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4851 $as_echo "$as_me: updating cache $cache_file" >&6;}
4852 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
4853 cat confcache
>"$cache_file"
4855 case $cache_file in #(
4857 mv -f confcache
"$cache_file"$$
&&
4858 mv -f "$cache_file"$$
"$cache_file" ;; #(
4860 mv -f confcache
"$cache_file" ;;
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4871 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4872 # Let make expand exec_prefix.
4873 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4875 DEFS
=-DHAVE_CONFIG_H
4880 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4881 # 1. Remove the extension, and $U if already installed.
4882 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4883 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4885 # will be set to the directory where LIBOBJS objects are built.
4886 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4887 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4891 LTLIBOBJS
=$ac_ltlibobjs
4896 : "${CONFIG_STATUS=./config.status}"
4898 ac_clean_files_save
=$ac_clean_files
4899 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4903 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4905 # Generated by $as_me.
4906 # Run this file to recreate the current configuration.
4907 # Compiler output produced by configure, useful for debugging
4908 # configure, is in config.log if it exists.
4914 SHELL=\${CONFIG_SHELL-$SHELL}
4917 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4918 ## -------------------- ##
4919 ## M4sh Initialization. ##
4920 ## -------------------- ##
4922 # Be more Bourne compatible
4923 DUALCASE
=1; export DUALCASE
# for MKS sh
4924 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4927 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4928 # is contrary to our usage. Disable this feature.
4929 alias -g '${1+"$@"}'='"$@"'
4930 setopt NO_GLOB_SUBST
4932 case `(set -o) 2>/dev/null` in #(
4944 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4945 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4948 # Prefer a ksh shell builtin over an external printf program on Solaris,
4949 # but without wasting forks for bash or zsh.
4950 if test -z "$BASH_VERSION$ZSH_VERSION" \
4951 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4952 as_echo='print
-r --'
4953 as_echo_n='print
-rn --'
4954 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4955 as_echo='printf %s
\n'
4956 as_echo_n='printf %s
'
4958 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4959 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4960 as_echo_n='/usr
/ucb
/echo -n'
4962 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4963 as_echo_n_body='eval
4967 expr "X$arg" : "X\\(.*\\)$as_nl";
4968 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4970 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4972 export as_echo_n_body
4973 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4976 as_echo='sh
-c $as_echo_body as_echo
'
4979 # The user is always right.
4980 if test "${PATH_SEPARATOR+set}" != set; then
4982 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4983 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4990 # We need space, tab and new line, in precisely that order. Quoting is
4991 # there to prevent editors from complaining about space-tab.
4992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4993 # splitting by setting IFS to empty value.)
4996 # Find who we are. Look in the path if we contain no directory separator.
4999 *[\\/]* ) as_myself=$0 ;;
5000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir=.
5005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5011 # We did not find ourselves, most probably we were run as `sh COMMAND'
5012 # in which case we are not to be found in the path.
5013 if test "x$as_myself" = x
; then
5016 if test ! -f "$as_myself"; then
5017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5021 # Unset variables that we do not need and which cause bugs (e.g. in
5022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5023 # suppresses any "Segmentation fault" message there. '((' could
5024 # trigger a bug in pdksh 5.2.14.
5025 for as_var
in BASH_ENV ENV MAIL MAILPATH
5026 do eval test x\
${$as_var+set} = xset \
5027 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5040 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5043 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5044 # ----------------------------------------
5045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5047 # script with STATUS, using 1 if that was 0.
5050 as_status
=$1; test $as_status -eq 0 && as_status
=1
5052 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5055 $as_echo "$as_me: error: $2" >&2
5056 as_fn_exit
$as_status
5060 # as_fn_set_status STATUS
5061 # -----------------------
5062 # Set $? to STATUS, without forking.
5066 } # as_fn_set_status
5070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5080 # Portably unset VAR.
5083 { eval $1=; unset $1;}
5085 as_unset
=as_fn_unset
5086 # as_fn_append VAR VALUE
5087 # ----------------------
5088 # Append the text in VALUE to the end of the definition contained in VAR. Take
5089 # advantage of any shell optimizations that allow amortized linear growth over
5090 # repeated appends, instead of the typical quadratic growth present in naive
5092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5093 eval 'as_fn_append ()
5104 # as_fn_arith ARG...
5105 # ------------------
5106 # Perform arithmetic evaluation on the ARGs, and store the result in the
5107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5108 # must be portable across $(()) and expr.
5109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5110 eval 'as_fn_arith ()
5117 as_val
=`expr "$@" || test $? -eq 1`
5122 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5123 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5129 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5130 as_basename
=basename
5135 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5141 as_me
=`$as_basename -- "$0" ||
5142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5143 X"$0" : 'X\(//\)$' \| \
5144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5146 sed '/^.*\/\([^/][^/]*\)\/*$/{
5160 # Avoid depending upon Character Ranges.
5161 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5162 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5163 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5164 as_cr_digits
='0123456789'
5165 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5167 ECHO_C
= ECHO_N
= ECHO_T
=
5168 case `echo -n x` in #(((((
5170 case `echo 'xy\c'` in
5171 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5173 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5180 rm -f conf$$ conf$$.exe conf$$.
file
5181 if test -d conf$$.dir
; then
5182 rm -f conf$$.dir
/conf$$.
file
5185 mkdir conf$$.dir
2>/dev
/null
5187 if (echo >conf$$.
file) 2>/dev
/null
; then
5188 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5190 # ... but there are two gotchas:
5191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5193 # In both cases, we have to default to `cp -pR'.
5194 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5196 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5204 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5205 rmdir conf$$.dir
2>/dev
/null
5210 # Create "$as_dir" as a directory, including parents if necessary.
5215 -*) as_dir
=.
/$as_dir;;
5217 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5221 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5222 *) as_qdir
=$as_dir;;
5224 as_dirs
="'$as_qdir' $as_dirs"
5225 as_dir
=`$as_dirname -- "$as_dir" ||
5226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5227 X"$as_dir" : 'X\(//\)[^/]' \| \
5228 X"$as_dir" : 'X\(//\)$' \| \
5229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5230 $as_echo X"$as_dir" |
5231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5248 test -d "$as_dir" && break
5250 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5251 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5255 if mkdir
-p .
2>/dev
/null
; then
5256 as_mkdir_p
='mkdir -p "$as_dir"'
5258 test -d .
/-p && rmdir .
/-p
5263 # as_fn_executable_p FILE
5264 # -----------------------
5265 # Test if FILE is an executable regular file.
5266 as_fn_executable_p
()
5268 test -f "$1" && test -x "$1"
5269 } # as_fn_executable_p
5271 as_executable_p
=as_fn_executable_p
5273 # Sed expression to map a string onto a valid CPP name.
5274 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5276 # Sed expression to map a string onto a valid variable name.
5277 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5281 ## ----------------------------------- ##
5282 ## Main body of $CONFIG_STATUS script. ##
5283 ## ----------------------------------- ##
5285 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5288 # Save the log message, to keep $0 and so on meaningful, and to
5289 # report actual input values of CONFIG_FILES etc. instead of their
5290 # values after options handling.
5292 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5293 generated by GNU Autoconf 2.69. Invocation command line was
5295 CONFIG_FILES = $CONFIG_FILES
5296 CONFIG_HEADERS = $CONFIG_HEADERS
5297 CONFIG_LINKS = $CONFIG_LINKS
5298 CONFIG_COMMANDS = $CONFIG_COMMANDS
5301 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5306 case $ac_config_files in *"
5307 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5310 case $ac_config_headers in *"
5311 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5316 # Files that config.status was made for.
5317 config_files="$ac_config_files"
5318 config_headers="$ac_config_headers"
5322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5324 \`$as_me' instantiates files and other configuration actions
5325 from templates according to the current configuration. Unless the files
5326 and actions are specified as TAGs, all are instantiated by default.
5328 Usage: $0 [OPTION]... [TAG]...
5330 -h, --help print this help, then exit
5331 -V, --version print version number and configuration settings, then exit
5332 --config print configuration, then exit
5333 -q, --quiet, --silent
5334 do not print progress messages
5335 -d, --debug don't remove temporary files
5336 --recheck update $as_me by reconfiguring in the same conditions
5337 --file=FILE[:TEMPLATE]
5338 instantiate the configuration file FILE
5339 --header=FILE[:TEMPLATE]
5340 instantiate the configuration header FILE
5342 Configuration files:
5345 Configuration headers:
5348 Report bugs to <Andrew Waterman>."
5351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5354 RISC-V ISA Simulator config.status ?
5355 configured by $0, generated by GNU Autoconf 2.69,
5356 with options \\"\$ac_cs_config\\"
5358 Copyright (C) 2012 Free Software Foundation, Inc.
5359 This config.status script is free software; the Free Software Foundation
5360 gives unlimited permission to copy, distribute and modify it."
5365 test -n "\$AWK" || AWK=awk
5368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5369 # The default lists apply if the user does not specify any file.
5375 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5376 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5380 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5392 # Handling of the options.
5393 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5395 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5396 $as_echo "$ac_cs_version"; exit ;;
5397 --config |
--confi |
--conf |
--con |
--co |
--c )
5398 $as_echo "$ac_cs_config"; exit ;;
5399 --debug |
--debu |
--deb |
--de |
--d |
-d )
5401 --file |
--fil |
--fi |
--f )
5404 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5405 '') as_fn_error $?
"missing file argument" ;;
5407 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5408 ac_need_defaults
=false
;;
5409 --header |
--heade |
--head |
--hea )
5412 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5414 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5415 ac_need_defaults
=false
;;
5417 # Conflict between --help and --header
5418 as_fn_error $?
"ambiguous option: \`$1'
5419 Try \`$0 --help' for more information.";;
5420 --help |
--hel |
-h )
5421 $as_echo "$ac_cs_usage"; exit ;;
5422 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5423 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5427 -*) as_fn_error $?
"unrecognized option: \`$1'
5428 Try \`$0 --help' for more information." ;;
5430 *) as_fn_append ac_config_targets
" $1"
5431 ac_need_defaults
=false
;;
5437 ac_configure_extra_args
=
5439 if $ac_cs_silent; then
5441 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5446 if \$ac_cs_recheck; then
5447 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5449 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5450 CONFIG_SHELL='$SHELL'
5456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5461 ## Running $as_me. ##
5467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5472 # Handling of arguments.
5473 for ac_config_target
in $ac_config_targets
5475 case $ac_config_target in
5476 "riscv.mk") CONFIG_FILES
="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5477 "dummy_rocc.mk") CONFIG_FILES
="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5478 "softfloat.mk") CONFIG_FILES
="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5479 "spike_main.mk") CONFIG_FILES
="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5480 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5481 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5482 "riscv-spike.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike.pc" ;;
5483 "riscv-riscv.pc") CONFIG_FILES
="$CONFIG_FILES riscv-riscv.pc" ;;
5484 "riscv-softfloat.pc") CONFIG_FILES
="$CONFIG_FILES riscv-softfloat.pc" ;;
5485 "riscv-dummy_rocc.pc") CONFIG_FILES
="$CONFIG_FILES riscv-dummy_rocc.pc" ;;
5486 "riscv-spike_main.pc") CONFIG_FILES
="$CONFIG_FILES riscv-spike_main.pc" ;;
5488 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5493 # If the user did not use the arguments to specify the items to instantiate,
5494 # then the envvar interface is used. Set only those that are not.
5495 # We use the long form for the default assignment because of an extremely
5496 # bizarre bug on SunOS 4.1.3.
5497 if $ac_need_defaults; then
5498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5502 # Have a temporary directory for convenience. Make it in the build tree
5503 # simply because there is no reason against having it here, and in addition,
5504 # creating and moving files from /tmp can sometimes cause problems.
5505 # Hook for its removal unless debugging.
5506 # Note that there is a small window in which the directory will not be cleaned:
5507 # after its creation but before its name has been assigned to `$tmp'.
5511 trap 'exit_status=$?
5513 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5515 trap 'as_fn_exit 1' 1 2 13 15
5517 # Create a (secure) tmp directory for tmp files.
5520 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5524 tmp
=.
/conf$$
-$RANDOM
5525 (umask 077 && mkdir
"$tmp")
5526 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5529 # Set up the scripts for CONFIG_FILES section.
5530 # No need to generate them if there are no CONFIG_FILES.
5531 # This happens for instance with `./config.status config.h'.
5532 if test -n "$CONFIG_FILES"; then
5535 ac_cr
=`echo X | tr X '\015'`
5536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5537 # But we know of no other shell where ac_cr would be empty at this
5538 # point, so we can use a bashism as a fallback.
5539 if test "x$ac_cr" = x
; then
5540 eval ac_cr
=\$
\'\\r
\'
5542 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5549 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5554 echo "cat >conf$$subs.awk <<_ACEOF" &&
5555 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5558 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5559 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5561 for ac_last_try in false false false false false :; do
5562 . ./conf$$subs.sh ||
5563 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5565 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5566 if test $ac_delim_n = $ac_delim_num; then
5568 elif $ac_last_try; then
5569 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5571 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5577 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5581 s/^/S["/; s
/!.
*/"]=/
5591 s/\(.\{148\}\)..*/\1/
5593 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5598 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5605 s/\(.\{148\}\)..*/\1/
5607 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5611 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5616 ' <conf$$subs.awk | sed '
5621 ' >>$CONFIG_STATUS || ac_write_fail=1
5622 rm -f conf$$subs.awk
5623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5625 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
5626 for (key in S) S_is_set[key] = 1
5632 nfields = split(line, field, "@
")
5634 len = length(field[1])
5635 for (i = 2; i < nfields; i++) {
5637 keylen = length(key)
5638 if (S_is_set[key]) {
5640 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5641 len += length(value) + length(field[++i])
5652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5653 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5654 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5657 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
5658 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
5661 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5662 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
5663 # trailing colons and then remove the whole line if VPATH becomes empty
5664 # (actually we leave an empty line to preserve line numbers).
5665 if test "x
$srcdir" = x.; then
5666 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5685 fi # test -n "$CONFIG_FILES"
5687 # Set up the scripts for CONFIG_HEADERS section.
5688 # No need to generate them if there are no CONFIG_HEADERS.
5689 # This happens for instance with `./config.status Makefile'.
5690 if test -n "$CONFIG_HEADERS"; then
5691 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
5695 # Transform confdefs.h into an awk script `defines.awk', embedded as
5696 # here-document in config.status, that substitutes the proper values into
5697 # config.h.in to produce config.h.
5699 # Create a delimiter string that does not exist in confdefs.h, to ease
5700 # handling of long lines.
5702 for ac_last_try in false false :; do
5703 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
5704 if test -z "$ac_tt"; then
5706 elif $ac_last_try; then
5707 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
5709 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5713 # For the awk script, D is an array of macro values keyed by name,
5714 # likewise P contains macro parameters if any. Preserve backslash
5715 # newline sequences.
5717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5719 s/.\{148\}/&'"$ac_delim"'/g
5722 s/^[ ]*#[ ]*define[ ][ ]*/ /
5729 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5731 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5735 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5736 D["\
1"]=" \
3\\\\\\n
"\\/p
5738 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5743 s/.\{148\}/&'"$ac_delim"'/g
5748 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5751 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5753 ' <confdefs.h | sed '
5754 s/'"$ac_delim"'/"\\\
5755 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5758 for (key in D) D_is_set[key] = 1
5761 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5763 split(line, arg, " ")
5764 if (arg[1] == "#") {
5768 defundef
= substr
(arg
[1], 2)
5771 split(mac1
, mac2
, "(") #)
5773 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5774 if (D_is_set
[macro
]) {
5775 # Preserve the white space surrounding the "#".
5776 print prefix
"define", macro P
[macro
] D
[macro
]
5779 # Replace #undef with comments. This is necessary, for example,
5780 # in the case of _POSIX_SOURCE, which is predefined and required
5781 # on some systems where configure will not decide to define it.
5782 if (defundef
== "undef") {
5783 print
"/*", prefix defundef
, macro
, "*/"
5791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5792 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
5793 fi # test -n "$CONFIG_HEADERS"
5796 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
5801 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5803 case $ac_mode$ac_tag in
5805 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5806 :[FH
]-) ac_tag
=-:-;;
5807 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5824 -) ac_f
="$ac_tmp/stdin";;
5825 *) # Look for the file first in the build tree, then in the source tree
5826 # (if the path is not absolute). The absolute path cannot be DOS-style,
5827 # because $ac_f cannot contain `:'.
5831 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5833 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5835 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5836 as_fn_append ac_file_inputs
" '$ac_f'"
5839 # Let's still pretend it is `configure' which instantiates (i.e., don't
5840 # use $as_me), people would be surprised to read:
5841 # /* config.h. Generated by config.status. */
5842 configure_input
='Generated from '`
5843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5845 if test x
"$ac_file" != x-
; then
5846 configure_input
="$ac_file. $configure_input"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5848 $as_echo "$as_me: creating $ac_file" >&6;}
5850 # Neutralize special characters interpreted by sed in replacement strings.
5851 case $configure_input in #(
5852 *\
&* |
*\|
* |
*\\* )
5853 ac_sed_conf_input
=`$as_echo "$configure_input" |
5854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5855 *) ac_sed_conf_input
=$configure_input;;
5859 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
5860 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
5865 ac_dir
=`$as_dirname -- "$ac_file" ||
5866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5867 X"$ac_file" : 'X\(//\)[^/]' \| \
5868 X"$ac_file" : 'X\(//\)$' \| \
5869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5870 $as_echo X"$ac_file" |
5871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5888 as_dir
="$ac_dir"; as_fn_mkdir_p
5892 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5894 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5895 # A ".." for each directory in $ac_dir_suffix.
5896 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5897 case $ac_top_builddir_sub in
5898 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5899 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5902 ac_abs_top_builddir
=$ac_pwd
5903 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5904 # for backward compatibility:
5905 ac_top_builddir
=$ac_top_build_prefix
5908 .
) # We are building in place.
5910 ac_top_srcdir
=$ac_top_builddir_sub
5911 ac_abs_top_srcdir
=$ac_pwd ;;
5912 [\\/]* | ?
:[\\/]* ) # Absolute name.
5913 ac_srcdir
=$srcdir$ac_dir_suffix;
5914 ac_top_srcdir
=$srcdir
5915 ac_abs_top_srcdir
=$srcdir ;;
5917 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5918 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5919 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5921 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5931 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5932 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5937 # If the template does not know about datarootdir, expand it.
5938 # FIXME: This hack should be removed a few years after 2.60.
5939 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5951 *datarootdir
*) ac_datarootdir_seen
=yes;;
5952 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5954 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5957 ac_datarootdir_hack='
5958 s&@datadir@&$datadir&g
5959 s&@docdir@&$docdir&g
5960 s&@infodir@&$infodir&g
5961 s&@localedir@&$localedir&g
5962 s&@mandir@&$mandir&g
5963 s&\\\${datarootdir}&$datarootdir&g' ;;
5967 # Neutralize VPATH when `$srcdir' = `.'.
5968 # Shell code in configure.ac might set extrasub.
5969 # FIXME: do we really want to maintain this feature?
5970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5971 ac_sed_extra="$ac_vpsub
5974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5976 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5977 s|@configure_input@|
$ac_sed_conf_input|
;t t
5978 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5979 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5980 s
&@srcdir@
&$ac_srcdir&;t t
5981 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5982 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5983 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5984 s
&@builddir@
&$ac_builddir&;t t
5985 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5986 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5987 s
&@INSTALL@
&$ac_INSTALL&;t t
5988 $ac_datarootdir_hack
5990 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
5991 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
5993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5994 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
5995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5996 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5998 which seems to be undefined. Please make sure it is defined" >&5
5999 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6000 which seems to be undefined. Please make sure it is defined" >&2;}
6002 rm -f "$ac_tmp/stdin"
6004 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6005 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6013 if test x"$ac_file" != x-; then
6015 $as_echo "/* $configure_input */" \
6016 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6017 } >"$ac_tmp/config.h" \
6018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6019 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6021 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6024 mv "$ac_tmp/config.h" "$ac_file" \
6025 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6028 $as_echo "/* $configure_input */" \
6029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6030 || as_fn_error $? "could not create -" "$LINENO" 5
6042 ac_clean_files=$ac_clean_files_save
6044 test $ac_write_fail = 0 ||
6045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6048 # configure is writing to config.log, and then calls config.status.
6049 # config.status does its own redirection, appending to config.log.
6050 # Unfortunately, on DOS this fails, as config.log is still kept open
6051 # by configure, so config.status won't be able to
write to it
; its
6052 # output is simply discarded. So we exec the FD to /dev/null,
6053 # effectively closing config.log, so it can be properly (re)opened and
6054 # appended to by config.status. When coming back to configure, we
6055 # need to make the FD available again.
6056 if test "$no_create" != yes; then
6058 ac_config_status_args
=
6059 test "$silent" = yes &&
6060 ac_config_status_args
="$ac_config_status_args --quiet"
6062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6065 # would make configure fail if this is the last instruction.
6066 $ac_cs_success || as_fn_exit
1
6068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}