Merge pull request #212 from riscv/hartsel
[riscv-isa-sim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RISC-V ISA Simulator ?.
4 #
5 # Report bugs to <Andrew Waterman>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
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
158 as_fn_exit 255
159 fi
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 :
164 emulate sh
165 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
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; }
184
185 exitcode=0
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 :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || 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 :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
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 :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
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
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
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
259 exit 255
260 fi
261
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."
268 else
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
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
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
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
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 :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
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.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
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
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
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
466
467
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. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
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; }
490
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).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
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 ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
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'"
555
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'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
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`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='RISC-V ISA Simulator'
582 PACKAGE_TARNAME='spike'
583 PACKAGE_VERSION='?'
584 PACKAGE_STRING='RISC-V ISA Simulator ?'
585 PACKAGE_BUGREPORT='Andrew Waterman'
586 PACKAGE_URL=''
587
588 ac_unique_file="riscv/common.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 subprojects_enabled
628 subprojects
629 stow
630 INSTALL_DATA
631 INSTALL_SCRIPT
632 INSTALL_PROGRAM
633 STOW_PREFIX
634 STOW_ROOT
635 enable_stow
636 EGREP
637 GREP
638 CXXCPP
639 DTC
640 RANLIB
641 AR
642 ac_ct_CXX
643 CXXFLAGS
644 CXX
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 target_alias
661 host_alias
662 build_alias
663 LIBS
664 ECHO_T
665 ECHO_N
666 ECHO_C
667 DEFS
668 mandir
669 localedir
670 libdir
671 psdir
672 pdfdir
673 dvidir
674 htmldir
675 infodir
676 docdir
677 oldincludedir
678 includedir
679 runstatedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_stow
703 enable_optional_subprojects
704 with_isa
705 with_fesvr
706 enable_commitlog
707 enable_histogram
708 enable_dirty
709 enable_misaligned
710 '
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CC
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CXX
720 CXXFLAGS
721 CCC
722 CXXCPP
723 STOW_ROOT
724 STOW_PREFIX'
725
726
727 # Initialize some variables set by options.
728 ac_init_help=
729 ac_init_version=false
730 ac_unrecognized_opts=
731 ac_unrecognized_sep=
732 # The variables have the same names as the options, with
733 # dashes changed to underlines.
734 cache_file=/dev/null
735 exec_prefix=NONE
736 no_create=
737 no_recursion=
738 prefix=NONE
739 program_prefix=NONE
740 program_suffix=NONE
741 program_transform_name=s,x,x,
742 silent=
743 site=
744 srcdir=
745 verbose=
746 x_includes=NONE
747 x_libraries=NONE
748
749 # Installation directory options.
750 # These are left unexpanded so users can "make install exec_prefix=/foo"
751 # and all the variables that are supposed to be based on exec_prefix
752 # by default will actually change.
753 # Use braces instead of parens because sh, perl, etc. also accept them.
754 # (The list follows the same order as the GNU Coding Standards.)
755 bindir='${exec_prefix}/bin'
756 sbindir='${exec_prefix}/sbin'
757 libexecdir='${exec_prefix}/libexec'
758 datarootdir='${prefix}/share'
759 datadir='${datarootdir}'
760 sysconfdir='${prefix}/etc'
761 sharedstatedir='${prefix}/com'
762 localstatedir='${prefix}/var'
763 runstatedir='${localstatedir}/run'
764 includedir='${prefix}/include'
765 oldincludedir='/usr/include'
766 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
767 infodir='${datarootdir}/info'
768 htmldir='${docdir}'
769 dvidir='${docdir}'
770 pdfdir='${docdir}'
771 psdir='${docdir}'
772 libdir='${exec_prefix}/lib'
773 localedir='${datarootdir}/locale'
774 mandir='${datarootdir}/man'
775
776 ac_prev=
777 ac_dashdash=
778 for ac_option
779 do
780 # If the previous option needs an argument, assign it.
781 if test -n "$ac_prev"; then
782 eval $ac_prev=\$ac_option
783 ac_prev=
784 continue
785 fi
786
787 case $ac_option in
788 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
789 *=) ac_optarg= ;;
790 *) ac_optarg=yes ;;
791 esac
792
793 # Accept the important Cygnus configure options, so we can diagnose typos.
794
795 case $ac_dashdash$ac_option in
796 --)
797 ac_dashdash=yes ;;
798
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
800 ac_prev=bindir ;;
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802 bindir=$ac_optarg ;;
803
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
808
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
815
816 --config-cache | -C)
817 cache_file=config.cache ;;
818
819 -datadir | --datadir | --datadi | --datad)
820 ac_prev=datadir ;;
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
823
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
830
831 -disable-* | --disable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840 "enable_$ac_useropt"
841 "*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
856
857 -enable-* | --enable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
865 *"
866 "enable_$ac_useropt"
867 "*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
870 esac
871 eval enable_$ac_useropt=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -runstatedir | --runstatedir | --runstatedi | --runstated \
1017 | --runstate | --runstat | --runsta | --runst | --runs \
1018 | --run | --ru | --r)
1019 ac_prev=runstatedir ;;
1020 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1021 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1022 | --run=* | --ru=* | --r=*)
1023 runstatedir=$ac_optarg ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=\$ac_optarg ;;
1085
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
1101
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1105
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1112
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1119
1120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information"
1122 ;;
1123
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1133
1134 *)
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140 ;;
1141
1142 esac
1143 done
1144
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error $? "missing argument to $ac_option"
1148 fi
1149
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 esac
1156 fi
1157
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir runstatedir
1163 do
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1166 case $ac_val in
1167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1170 esac
1171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193 fi
1194
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198 test "$silent" = yes && exec 6>/dev/null
1199
1200
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error $? "working directory cannot be determined"
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error $? "pwd does not report name of working directory"
1207
1208
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218 $as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1239 fi
1240 else
1241 ac_srcdir_defaulted=no
1242 fi
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254 fi
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1267
1268 #
1269 # Report the --help message.
1270 #
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures RISC-V ISA Simulator ? to adapt to many kinds of systems.
1276
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282 Defaults for the options are specified in brackets.
1283
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking ...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1300
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1305
1306 For better control, use the options below.
1307
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/spike]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1329 _ACEOF
1330
1331 cat <<\_ACEOF
1332
1333 System types:
1334 --build=BUILD configure for building on BUILD [guessed]
1335 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1336 _ACEOF
1337 fi
1338
1339 if test -n "$ac_init_help"; then
1340 case $ac_init_help in
1341 short | recursive ) echo "Configuration of RISC-V ISA Simulator ?:";;
1342 esac
1343 cat <<\_ACEOF
1344
1345 Optional Features:
1346 --disable-option-checking ignore unrecognized --enable/--with options
1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --enable-stow Enable stow-based install
1350 --enable-optional-subprojects
1351 Enable all optional subprojects
1352 --enable-commitlog Enable commit log generation
1353 --enable-histogram Enable PC histogram generation
1354 --enable-dirty Enable hardware management of PTE accessed and dirty
1355 bits
1356 --enable-misaligned Enable hardware support for misaligned loads and
1357 stores
1358
1359 Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-isa=RV64IMAFDC Sets the default RISC-V ISA
1363 --with-fesvr path to your fesvr installation if not in a standard
1364 location
1365
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CXX C++ compiler command
1375 CXXFLAGS C++ compiler flags
1376 CXXCPP C++ preprocessor
1377 STOW_ROOT Root for non-native stow-based installs
1378 STOW_PREFIX Prefix for stow-based installs
1379
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 Report bugs to <Andrew Waterman>.
1384 _ACEOF
1385 ac_status=$?
1386 fi
1387
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" ||
1392 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 continue
1394 ac_builddir=.
1395
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *)
1399 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1411
1412 case $srcdir in
1413 .) # We are building in place.
1414 ac_srcdir=.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1431 echo &&
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1434 echo &&
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1436 else
1437 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1440 done
1441 fi
1442
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1445 cat <<\_ACEOF
1446 RISC-V ISA Simulator configure ?
1447 generated by GNU Autoconf 2.69
1448
1449 Copyright (C) 2012 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1454 fi
1455
1456 ## ------------------------ ##
1457 ## Autoconf initialization. ##
1458 ## ------------------------ ##
1459
1460 # ac_fn_c_try_compile LINENO
1461 # --------------------------
1462 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1463 ac_fn_c_try_compile ()
1464 {
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 rm -f conftest.$ac_objext
1467 if { { ac_try="$ac_compile"
1468 case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471 esac
1472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473 $as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1475 ac_status=$?
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1480 fi
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext; then :
1486 ac_retval=0
1487 else
1488 $as_echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1490
1491 ac_retval=1
1492 fi
1493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1494 as_fn_set_status $ac_retval
1495
1496 } # ac_fn_c_try_compile
1497
1498 # ac_fn_cxx_try_compile LINENO
1499 # ----------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_cxx_try_compile ()
1502 {
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1518 fi
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_cxx_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1528
1529 ac_retval=1
1530 fi
1531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1532 as_fn_set_status $ac_retval
1533
1534 } # ac_fn_cxx_try_compile
1535
1536 # ac_fn_cxx_try_run LINENO
1537 # ------------------------
1538 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1539 # that executables *can* be run.
1540 ac_fn_cxx_try_run ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { { ac_try="$ac_link"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_link") 2>&5
1551 ac_status=$?
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1554 { { case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_try") 2>&5
1561 ac_status=$?
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; }; }; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: program exited with status $ac_status" >&5
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=$ac_status
1571 fi
1572 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576 } # ac_fn_cxx_try_run
1577
1578 # ac_fn_cxx_try_cpp LINENO
1579 # ------------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_cxx_try_cpp ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613 } # ac_fn_cxx_try_cpp
1614
1615 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1616 # ---------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_cxx_check_header_compile ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 $4
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_cxx_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 fi
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_cxx_check_header_compile
1645
1646 # ac_fn_cxx_try_link LINENO
1647 # -------------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_cxx_try_link
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by RISC-V ISA Simulator $as_me ?, which was
1696 generated by GNU Autoconf 2.69. Invocation command line was
1697
1698 $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1716
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730 IFS=$as_save_IFS
1731 test -z "$as_dir" && as_dir=.
1732 $as_echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759 for ac_arg
1760 do
1761 case $ac_arg in
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1765 continue ;;
1766 *\'*)
1767 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768 esac
1769 case $ac_pass in
1770 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1771 2)
1772 as_fn_append ac_configure_args1 " '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1775 else
1776 case $ac_arg in
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783 esac
1784 ;;
1785 -* ) ac_must_keep_next=true ;;
1786 esac
1787 fi
1788 as_fn_append ac_configure_args " '$ac_arg'"
1789 ;;
1790 esac
1791 done
1792 done
1793 { ac_configure_args0=; unset ac_configure_args0;}
1794 { ac_configure_args1=; unset ac_configure_args1;}
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1803 {
1804 echo
1805
1806 $as_echo "## ---------------- ##
1807 ## Cache variables. ##
1808 ## ---------------- ##"
1809 echo
1810 # The following way of writing the cache mishandles newlines in values,
1811 (
1812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in #(
1815 *${as_nl}*)
1816 case $ac_var in #(
1817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1819 esac
1820 case $ac_var in #(
1821 _ | IFS | as_nl) ;; #(
1822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1823 *) { eval $ac_var=; unset $ac_var;} ;;
1824 esac ;;
1825 esac
1826 done
1827 (set) 2>&1 |
1828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829 *${as_nl}ac_space=\ *)
1830 sed -n \
1831 "s/'\''/'\''\\\\'\'''\''/g;
1832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 ;; #(
1834 *)
1835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1836 ;;
1837 esac |
1838 sort
1839 )
1840 echo
1841
1842 $as_echo "## ----------------- ##
1843 ## Output variables. ##
1844 ## ----------------- ##"
1845 echo
1846 for ac_var in $ac_subst_vars
1847 do
1848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 $as_echo "$ac_var='\''$ac_val'\''"
1853 done | sort
1854 echo
1855
1856 if test -n "$ac_subst_files"; then
1857 $as_echo "## ------------------- ##
1858 ## File substitutions. ##
1859 ## ------------------- ##"
1860 echo
1861 for ac_var in $ac_subst_files
1862 do
1863 eval ac_val=\$$ac_var
1864 case $ac_val in
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1866 esac
1867 $as_echo "$ac_var='\''$ac_val'\''"
1868 done | sort
1869 echo
1870 fi
1871
1872 if test -s confdefs.h; then
1873 $as_echo "## ----------- ##
1874 ## confdefs.h. ##
1875 ## ----------- ##"
1876 echo
1877 cat confdefs.h
1878 echo
1879 fi
1880 test "$ac_signal" != 0 &&
1881 $as_echo "$as_me: caught signal $ac_signal"
1882 $as_echo "$as_me: exit $exit_status"
1883 } >&5
1884 rm -f core *.core core.conftest.* &&
1885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1886 exit $exit_status
1887 ' 0
1888 for ac_signal in 1 2 13 15; do
1889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1890 done
1891 ac_signal=0
1892
1893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1894 rm -f -r conftest* confdefs.h
1895
1896 $as_echo "/* confdefs.h */" > confdefs.h
1897
1898 # Predefined preprocessor variables.
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_NAME "$PACKAGE_NAME"
1902 _ACEOF
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906 _ACEOF
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1910 _ACEOF
1911
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_STRING "$PACKAGE_STRING"
1914 _ACEOF
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 _ACEOF
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_URL "$PACKAGE_URL"
1922 _ACEOF
1923
1924
1925 # Let the site file select an alternate cache file if it wants to.
1926 # Prefer an explicitly selected file to automatically selected ones.
1927 ac_site_file1=NONE
1928 ac_site_file2=NONE
1929 if test -n "$CONFIG_SITE"; then
1930 # We do not want a PATH search for config.site.
1931 case $CONFIG_SITE in #((
1932 -*) ac_site_file1=./$CONFIG_SITE;;
1933 */*) ac_site_file1=$CONFIG_SITE;;
1934 *) ac_site_file1=./$CONFIG_SITE;;
1935 esac
1936 elif test "x$prefix" != xNONE; then
1937 ac_site_file1=$prefix/share/config.site
1938 ac_site_file2=$prefix/etc/config.site
1939 else
1940 ac_site_file1=$ac_default_prefix/share/config.site
1941 ac_site_file2=$ac_default_prefix/etc/config.site
1942 fi
1943 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1944 do
1945 test "x$ac_site_file" = xNONE && continue
1946 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1948 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file" \
1951 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1953 as_fn_error $? "failed to load site script $ac_site_file
1954 See \`config.log' for more details" "$LINENO" 5; }
1955 fi
1956 done
1957
1958 if test -r "$cache_file"; then
1959 # Some versions of bash will fail to source /dev/null (special files
1960 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1961 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1963 $as_echo "$as_me: loading cache $cache_file" >&6;}
1964 case $cache_file in
1965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1966 *) . "./$cache_file";;
1967 esac
1968 fi
1969 else
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1971 $as_echo "$as_me: creating cache $cache_file" >&6;}
1972 >$cache_file
1973 fi
1974
1975 # Check that the precious variables saved in the cache have kept the same
1976 # value.
1977 ac_cache_corrupted=false
1978 for ac_var in $ac_precious_vars; do
1979 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1980 eval ac_new_set=\$ac_env_${ac_var}_set
1981 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1982 eval ac_new_val=\$ac_env_${ac_var}_value
1983 case $ac_old_set,$ac_new_set in
1984 set,)
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,set)
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,);;
1993 *)
1994 if test "x$ac_old_val" != "x$ac_new_val"; then
1995 # differences in whitespace do not lead to failure.
1996 ac_old_val_w=`echo x $ac_old_val`
1997 ac_new_val_w=`echo x $ac_new_val`
1998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 ac_cache_corrupted=:
2002 else
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2005 eval $ac_var=\$ac_old_val
2006 fi
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2008 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2010 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2011 fi;;
2012 esac
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2015 case $ac_new_val in
2016 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 *) ac_arg=$ac_var=$ac_new_val ;;
2018 esac
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2022 esac
2023 fi
2024 done
2025 if $ac_cache_corrupted; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2031 fi
2032 ## -------------------- ##
2033 ## Main body of script. ##
2034 ## -------------------- ##
2035
2036 ac_ext=c
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041
2042
2043 ac_ext=cpp
2044 ac_cpp='$CXXCPP $CPPFLAGS'
2045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2048
2049
2050 ac_aux_dir=
2051 for ac_dir in scripts "$srcdir"/scripts; do
2052 if test -f "$ac_dir/install-sh"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install-sh -c"
2055 break
2056 elif test -f "$ac_dir/install.sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install.sh -c"
2059 break
2060 elif test -f "$ac_dir/shtool"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/shtool install -c"
2063 break
2064 fi
2065 done
2066 if test -z "$ac_aux_dir"; then
2067 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
2078
2079 # Make sure we can run config.sub.
2080 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2081 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2082
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2084 $as_echo_n "checking build system type... " >&6; }
2085 if ${ac_cv_build+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 ac_build_alias=$build_alias
2089 test "x$ac_build_alias" = x &&
2090 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2091 test "x$ac_build_alias" = x &&
2092 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2093 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2094 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2095
2096 fi
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2098 $as_echo "$ac_cv_build" >&6; }
2099 case $ac_cv_build in
2100 *-*-*) ;;
2101 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2102 esac
2103 build=$ac_cv_build
2104 ac_save_IFS=$IFS; IFS='-'
2105 set x $ac_cv_build
2106 shift
2107 build_cpu=$1
2108 build_vendor=$2
2109 shift; shift
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2112 build_os=$*
2113 IFS=$ac_save_IFS
2114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2115
2116
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2118 $as_echo_n "checking host system type... " >&6; }
2119 if ${ac_cv_host+:} false; then :
2120 $as_echo_n "(cached) " >&6
2121 else
2122 if test "x$host_alias" = x; then
2123 ac_cv_host=$ac_cv_build
2124 else
2125 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2126 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2127 fi
2128
2129 fi
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2131 $as_echo "$ac_cv_host" >&6; }
2132 case $ac_cv_host in
2133 *-*-*) ;;
2134 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2135 esac
2136 host=$ac_cv_host
2137 ac_save_IFS=$IFS; IFS='-'
2138 set x $ac_cv_host
2139 shift
2140 host_cpu=$1
2141 host_vendor=$2
2142 shift; shift
2143 # Remember, the first character of IFS is used to create $*,
2144 # except with old shells:
2145 host_os=$*
2146 IFS=$ac_save_IFS
2147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148
2149
2150
2151 #-------------------------------------------------------------------------
2152 # Checks for programs
2153 #-------------------------------------------------------------------------
2154
2155 ac_ext=c
2156 ac_cpp='$CPP $CPPFLAGS'
2157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2160 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2164 $as_echo_n "checking for $ac_word... " >&6; }
2165 if ${ac_cv_prog_CC+:} false; then :
2166 $as_echo_n "(cached) " >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2181 fi
2182 done
2183 done
2184 IFS=$as_save_IFS
2185
2186 fi
2187 fi
2188 CC=$ac_cv_prog_CC
2189 if test -n "$CC"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2191 $as_echo "$CC" >&6; }
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194 $as_echo "no" >&6; }
2195 fi
2196
2197
2198 fi
2199 if test -z "$ac_cv_prog_CC"; then
2200 ac_ct_CC=$CC
2201 # Extract the first word of "gcc", so it can be a program name with args.
2202 set dummy gcc; ac_word=$2
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2204 $as_echo_n "checking for $ac_word... " >&6; }
2205 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 if test -n "$ac_ct_CC"; then
2209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_ac_ct_CC="gcc"
2219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2221 fi
2222 done
2223 done
2224 IFS=$as_save_IFS
2225
2226 fi
2227 fi
2228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2229 if test -n "$ac_ct_CC"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2231 $as_echo "$ac_ct_CC" >&6; }
2232 else
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2234 $as_echo "no" >&6; }
2235 fi
2236
2237 if test "x$ac_ct_CC" = x; then
2238 CC=""
2239 else
2240 case $cross_compiling:$ac_tool_warned in
2241 yes:)
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2244 ac_tool_warned=yes ;;
2245 esac
2246 CC=$ac_ct_CC
2247 fi
2248 else
2249 CC="$ac_cv_prog_CC"
2250 fi
2251
2252 if test -z "$CC"; then
2253 if test -n "$ac_tool_prefix"; then
2254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2255 set dummy ${ac_tool_prefix}cc; ac_word=$2
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257 $as_echo_n "checking for $ac_word... " >&6; }
2258 if ${ac_cv_prog_CC+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2271 ac_cv_prog_CC="${ac_tool_prefix}cc"
2272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 break 2
2274 fi
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279 fi
2280 fi
2281 CC=$ac_cv_prog_CC
2282 if test -n "$CC"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2284 $as_echo "$CC" >&6; }
2285 else
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287 $as_echo "no" >&6; }
2288 fi
2289
2290
2291 fi
2292 fi
2293 if test -z "$CC"; then
2294 # Extract the first word of "cc", so it can be a program name with args.
2295 set dummy cc; ac_word=$2
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297 $as_echo_n "checking for $ac_word... " >&6; }
2298 if ${ac_cv_prog_CC+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 ac_prog_rejected=no
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 for as_dir in $PATH
2307 do
2308 IFS=$as_save_IFS
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2313 ac_prog_rejected=yes
2314 continue
2315 fi
2316 ac_cv_prog_CC="cc"
2317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 break 2
2319 fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 if test $ac_prog_rejected = yes; then
2325 # We found a bogon in the path, so make sure we never use it.
2326 set dummy $ac_cv_prog_CC
2327 shift
2328 if test $# != 0; then
2329 # We chose a different compiler from the bogus one.
2330 # However, it has the same basename, so the bogon will be chosen
2331 # first if we set CC to just the basename; use the full file name.
2332 shift
2333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334 fi
2335 fi
2336 fi
2337 fi
2338 CC=$ac_cv_prog_CC
2339 if test -n "$CC"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341 $as_echo "$CC" >&6; }
2342 else
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2345 fi
2346
2347
2348 fi
2349 if test -z "$CC"; then
2350 if test -n "$ac_tool_prefix"; then
2351 for ac_prog in cl.exe
2352 do
2353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_CC+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2373 fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 CC=$ac_cv_prog_CC
2381 if test -n "$CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2383 $as_echo "$CC" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2387 fi
2388
2389
2390 test -n "$CC" && break
2391 done
2392 fi
2393 if test -z "$CC"; then
2394 ac_ct_CC=$CC
2395 for ac_prog in cl.exe
2396 do
2397 # Extract the first word of "$ac_prog", so it can be a program name with args.
2398 set dummy $ac_prog; ac_word=$2
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_ac_ct_CC="$ac_prog"
2415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2427 $as_echo "$ac_ct_CC" >&6; }
2428 else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2430 $as_echo "no" >&6; }
2431 fi
2432
2433
2434 test -n "$ac_ct_CC" && break
2435 done
2436
2437 if test "x$ac_ct_CC" = x; then
2438 CC=""
2439 else
2440 case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2444 ac_tool_warned=yes ;;
2445 esac
2446 CC=$ac_ct_CC
2447 fi
2448 fi
2449
2450 fi
2451
2452
2453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 as_fn_error $? "no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details" "$LINENO" 5; }
2457
2458 # Provide some information about the compiler.
2459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2460 set X $ac_compile
2461 ac_compiler=$2
2462 for ac_option in --version -v -V -qversion; do
2463 { { ac_try="$ac_compiler $ac_option >&5"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469 $as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2471 ac_status=$?
2472 if test -s conftest.err; then
2473 sed '10a\
2474 ... rest of stderr output deleted ...
2475 10q' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 fi
2478 rm -f conftest.er1 conftest.err
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; }
2481 done
2482
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2485
2486 int
2487 main ()
2488 {
2489
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 ac_clean_files_save=$ac_clean_files
2495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2496 # Try to create an executable without -o first, disregard a.out.
2497 # It will help us diagnose broken compilers, and finding out an intuition
2498 # of exeext.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2500 $as_echo_n "checking whether the C compiler works... " >&6; }
2501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502
2503 # The possible output files:
2504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2505
2506 ac_rmfiles=
2507 for ac_file in $ac_files
2508 do
2509 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2512 esac
2513 done
2514 rm -f $ac_rmfiles
2515
2516 if { { ac_try="$ac_link_default"
2517 case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_link_default") 2>&5
2524 ac_status=$?
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; }; then :
2527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2530 # so that the user can short-circuit this test for compilers unknown to
2531 # Autoconf.
2532 for ac_file in $ac_files ''
2533 do
2534 test -f "$ac_file" || continue
2535 case $ac_file in
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2537 ;;
2538 [ab].out )
2539 # We found the default executable, but exeext='' is most
2540 # certainly right.
2541 break;;
2542 *.* )
2543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544 then :; else
2545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 fi
2547 # We set ac_cv_exeext here because the later test for it is not
2548 # safe: cross compilers may not add the suffix if given an `-o'
2549 # argument, so we may need to know it at that point already.
2550 # Even if this section looks crufty: it has the advantage of
2551 # actually working.
2552 break;;
2553 * )
2554 break;;
2555 esac
2556 done
2557 test "$ac_cv_exeext" = no && ac_cv_exeext=
2558
2559 else
2560 ac_file=''
2561 fi
2562 if test -z "$ac_file"; then :
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 $as_echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 as_fn_error 77 "C compiler cannot create executables
2571 See \`config.log' for more details" "$LINENO" 5; }
2572 else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574 $as_echo "yes" >&6; }
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2577 $as_echo_n "checking for C compiler default output file name... " >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2579 $as_echo "$ac_file" >&6; }
2580 ac_exeext=$ac_cv_exeext
2581
2582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2583 ac_clean_files=$ac_clean_files_save
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2585 $as_echo_n "checking for suffix of executables... " >&6; }
2586 if { { ac_try="$ac_link"
2587 case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590 esac
2591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592 $as_echo "$ac_try_echo"; } >&5
2593 (eval "$ac_link") 2>&5
2594 ac_status=$?
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; }; then :
2597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2599 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 # `rm'.
2601 for ac_file in conftest.exe conftest conftest.*; do
2602 test -f "$ac_file" || continue
2603 case $ac_file in
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606 break;;
2607 * ) break;;
2608 esac
2609 done
2610 else
2611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details" "$LINENO" 5; }
2615 fi
2616 rm -f conftest conftest$ac_cv_exeext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2618 $as_echo "$ac_cv_exeext" >&6; }
2619
2620 rm -f conftest.$ac_ext
2621 EXEEXT=$ac_cv_exeext
2622 ac_exeext=$EXEEXT
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 #include <stdio.h>
2626 int
2627 main ()
2628 {
2629 FILE *f = fopen ("conftest.out", "w");
2630 return ferror (f) || fclose (f) != 0;
2631
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 ac_clean_files="$ac_clean_files conftest.out"
2637 # Check that the compiler produces executables we can run. If not, either
2638 # the compiler is broken, or we cross compile.
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2640 $as_echo_n "checking whether we are cross compiling... " >&6; }
2641 if test "$cross_compiling" != yes; then
2642 { { ac_try="$ac_link"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>&5
2650 ac_status=$?
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; }
2653 if { ac_try='./conftest$ac_cv_exeext'
2654 { { case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_try") 2>&5
2661 ac_status=$?
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; }; }; then
2664 cross_compiling=no
2665 else
2666 if test "$cross_compiling" = maybe; then
2667 cross_compiling=yes
2668 else
2669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 as_fn_error $? "cannot run C compiled programs.
2672 If you meant to cross compile, use \`--host'.
2673 See \`config.log' for more details" "$LINENO" 5; }
2674 fi
2675 fi
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2678 $as_echo "$cross_compiling" >&6; }
2679
2680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2681 ac_clean_files=$ac_clean_files_save
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2683 $as_echo_n "checking for suffix of object files... " >&6; }
2684 if ${ac_cv_objext+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689
2690 int
2691 main ()
2692 {
2693
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.o conftest.obj
2699 if { { ac_try="$ac_compile"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_compile") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; }; then :
2710 for ac_file in conftest.o conftest.obj conftest.*; do
2711 test -f "$ac_file" || continue;
2712 case $ac_file in
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2715 break;;
2716 esac
2717 done
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 as_fn_error $? "cannot compute suffix of object files: cannot compile
2725 See \`config.log' for more details" "$LINENO" 5; }
2726 fi
2727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2728 fi
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2730 $as_echo "$ac_cv_objext" >&6; }
2731 OBJEXT=$ac_cv_objext
2732 ac_objext=$OBJEXT
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2735 if ${ac_cv_c_compiler_gnu+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740
2741 int
2742 main ()
2743 {
2744 #ifndef __GNUC__
2745 choke me
2746 #endif
2747
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_compiler_gnu=yes
2754 else
2755 ac_compiler_gnu=no
2756 fi
2757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2759
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2763 if test $ac_compiler_gnu = yes; then
2764 GCC=yes
2765 else
2766 GCC=
2767 fi
2768 ac_test_CFLAGS=${CFLAGS+set}
2769 ac_save_CFLAGS=$CFLAGS
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2772 if ${ac_cv_prog_cc_g+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 ac_save_c_werror_flag=$ac_c_werror_flag
2776 ac_c_werror_flag=yes
2777 ac_cv_prog_cc_g=no
2778 CFLAGS="-g"
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2781
2782 int
2783 main ()
2784 {
2785
2786 ;
2787 return 0;
2788 }
2789 _ACEOF
2790 if ac_fn_c_try_compile "$LINENO"; then :
2791 ac_cv_prog_cc_g=yes
2792 else
2793 CFLAGS=""
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796
2797 int
2798 main ()
2799 {
2800
2801 ;
2802 return 0;
2803 }
2804 _ACEOF
2805 if ac_fn_c_try_compile "$LINENO"; then :
2806
2807 else
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2809 CFLAGS="-g"
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2812
2813 int
2814 main ()
2815 {
2816
2817 ;
2818 return 0;
2819 }
2820 _ACEOF
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_cv_prog_cc_g=yes
2823 fi
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 fi
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 fi
2828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 ac_c_werror_flag=$ac_save_c_werror_flag
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2832 $as_echo "$ac_cv_prog_cc_g" >&6; }
2833 if test "$ac_test_CFLAGS" = set; then
2834 CFLAGS=$ac_save_CFLAGS
2835 elif test $ac_cv_prog_cc_g = yes; then
2836 if test "$GCC" = yes; then
2837 CFLAGS="-g -O2"
2838 else
2839 CFLAGS="-g"
2840 fi
2841 else
2842 if test "$GCC" = yes; then
2843 CFLAGS="-O2"
2844 else
2845 CFLAGS=
2846 fi
2847 fi
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2850 if ${ac_cv_prog_cc_c89+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 ac_cv_prog_cc_c89=no
2854 ac_save_CC=$CC
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2857 #include <stdarg.h>
2858 #include <stdio.h>
2859 struct stat;
2860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2861 struct buf { int x; };
2862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2863 static char *e (p, i)
2864 char **p;
2865 int i;
2866 {
2867 return p[i];
2868 }
2869 static char *f (char * (*g) (char **, int), char **p, ...)
2870 {
2871 char *s;
2872 va_list v;
2873 va_start (v,p);
2874 s = g (p, va_arg (v,int));
2875 va_end (v);
2876 return s;
2877 }
2878
2879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2880 function prototypes and stuff, but not '\xHH' hex character constants.
2881 These don't provoke an error unfortunately, instead are silently treated
2882 as 'x'. The following induces an error, until -std is added to get
2883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2884 array size at least. It's necessary to write '\x00'==0 to get something
2885 that's true only with -std. */
2886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2887
2888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2889 inside strings and character constants. */
2890 #define FOO(x) 'x'
2891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2892
2893 int test (int i, double x);
2894 struct s1 {int (*f) (int a);};
2895 struct s2 {int (*f) (double a);};
2896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2897 int argc;
2898 char **argv;
2899 int
2900 main ()
2901 {
2902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909 do
2910 CC="$ac_save_CC $ac_arg"
2911 if ac_fn_c_try_compile "$LINENO"; then :
2912 ac_cv_prog_cc_c89=$ac_arg
2913 fi
2914 rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
2916 done
2917 rm -f conftest.$ac_ext
2918 CC=$ac_save_CC
2919
2920 fi
2921 # AC_CACHE_VAL
2922 case "x$ac_cv_prog_cc_c89" in
2923 x)
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2925 $as_echo "none needed" >&6; } ;;
2926 xno)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2928 $as_echo "unsupported" >&6; } ;;
2929 *)
2930 CC="$CC $ac_cv_prog_cc_c89"
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2933 esac
2934 if test "x$ac_cv_prog_cc_c89" != xno; then :
2935
2936 fi
2937
2938 ac_ext=cpp
2939 ac_cpp='$CXXCPP $CPPFLAGS'
2940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2943
2944 ac_ext=cpp
2945 ac_cpp='$CXXCPP $CPPFLAGS'
2946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2949 if test -z "$CXX"; then
2950 if test -n "$CCC"; then
2951 CXX=$CCC
2952 else
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2955 do
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CXX+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CXX"; then
2964 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CXX=$ac_cv_prog_CXX
2984 if test -n "$CXX"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2986 $as_echo "$CXX" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 test -n "$CXX" && break
2994 done
2995 fi
2996 if test -z "$CXX"; then
2997 ac_ct_CXX=$CXX
2998 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2999 do
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$ac_ct_CXX"; then
3008 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_ac_ct_CXX="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3028 if test -n "$ac_ct_CXX"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3030 $as_echo "$ac_ct_CXX" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 test -n "$ac_ct_CXX" && break
3038 done
3039
3040 if test "x$ac_ct_CXX" = x; then
3041 CXX="g++"
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049 CXX=$ac_ct_CXX
3050 fi
3051 fi
3052
3053 fi
3054 fi
3055 # Provide some information about the compiler.
3056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3057 set X $ac_compile
3058 ac_compiler=$2
3059 for ac_option in --version -v -V -qversion; do
3060 { { ac_try="$ac_compiler $ac_option >&5"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3068 ac_status=$?
3069 if test -s conftest.err; then
3070 sed '10a\
3071 ... rest of stderr output deleted ...
3072 10q' conftest.err >conftest.er1
3073 cat conftest.er1 >&5
3074 fi
3075 rm -f conftest.er1 conftest.err
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }
3078 done
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3081 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3082 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087
3088 int
3089 main ()
3090 {
3091 #ifndef __GNUC__
3092 choke me
3093 #endif
3094
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 if ac_fn_cxx_try_compile "$LINENO"; then :
3100 ac_compiler_gnu=yes
3101 else
3102 ac_compiler_gnu=no
3103 fi
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3106
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3109 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3110 if test $ac_compiler_gnu = yes; then
3111 GXX=yes
3112 else
3113 GXX=
3114 fi
3115 ac_test_CXXFLAGS=${CXXFLAGS+set}
3116 ac_save_CXXFLAGS=$CXXFLAGS
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3118 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3119 if ${ac_cv_prog_cxx_g+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3123 ac_cxx_werror_flag=yes
3124 ac_cv_prog_cxx_g=no
3125 CXXFLAGS="-g"
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 if ac_fn_cxx_try_compile "$LINENO"; then :
3138 ac_cv_prog_cxx_g=yes
3139 else
3140 CXXFLAGS=""
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143
3144 int
3145 main ()
3146 {
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 if ac_fn_cxx_try_compile "$LINENO"; then :
3153
3154 else
3155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 CXXFLAGS="-g"
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 if ac_fn_cxx_try_compile "$LINENO"; then :
3169 ac_cv_prog_cxx_g=yes
3170 fi
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 fi
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3179 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3180 if test "$ac_test_CXXFLAGS" = set; then
3181 CXXFLAGS=$ac_save_CXXFLAGS
3182 elif test $ac_cv_prog_cxx_g = yes; then
3183 if test "$GXX" = yes; then
3184 CXXFLAGS="-g -O2"
3185 else
3186 CXXFLAGS="-g"
3187 fi
3188 else
3189 if test "$GXX" = yes; then
3190 CXXFLAGS="-O2"
3191 else
3192 CXXFLAGS=
3193 fi
3194 fi
3195 ac_ext=cpp
3196 ac_cpp='$CXXCPP $CPPFLAGS'
3197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3200
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3203 set dummy ${ac_tool_prefix}ar; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_AR+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$AR"; then
3210 ac_cv_prog_AR="$AR" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_AR="${ac_tool_prefix}ar"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 AR=$ac_cv_prog_AR
3230 if test -n "$AR"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3232 $as_echo "$AR" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238
3239 fi
3240 if test -z "$ac_cv_prog_AR"; then
3241 ac_ct_AR=$AR
3242 # Extract the first word of "ar", so it can be a program name with args.
3243 set dummy ar; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$ac_ct_AR"; then
3250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_ac_ct_AR="ar"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3270 if test -n "$ac_ct_AR"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3272 $as_echo "$ac_ct_AR" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278 if test "x$ac_ct_AR" = x; then
3279 AR=""
3280 else
3281 case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3286 esac
3287 AR=$ac_ct_AR
3288 fi
3289 else
3290 AR="$ac_cv_prog_AR"
3291 fi
3292
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_RANLIB+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$RANLIB"; then
3302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 RANLIB=$ac_cv_prog_RANLIB
3322 if test -n "$RANLIB"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3324 $as_echo "$RANLIB" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3328 fi
3329
3330
3331 fi
3332 if test -z "$ac_cv_prog_RANLIB"; then
3333 ac_ct_RANLIB=$RANLIB
3334 # Extract the first word of "ranlib", so it can be a program name with args.
3335 set dummy ranlib; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$ac_ct_RANLIB"; then
3342 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_ac_ct_RANLIB="ranlib"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3362 if test -n "$ac_ct_RANLIB"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3364 $as_echo "$ac_ct_RANLIB" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370 if test "x$ac_ct_RANLIB" = x; then
3371 RANLIB=""
3372 else
3373 case $cross_compiling:$ac_tool_warned in
3374 yes:)
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3377 ac_tool_warned=yes ;;
3378 esac
3379 RANLIB=$ac_ct_RANLIB
3380 fi
3381 else
3382 RANLIB="$ac_cv_prog_RANLIB"
3383 fi
3384
3385 # Extract the first word of "dtc", so it can be a program name with args.
3386 set dummy dtc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_path_DTC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 case $DTC in
3393 [\\/]* | ?:[\\/]*)
3394 ac_cv_path_DTC="$DTC" # Let the user override the test with a path.
3395 ;;
3396 *)
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_path_DTC="$as_dir/$ac_word$ac_exec_ext"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 test -z "$ac_cv_path_DTC" && ac_cv_path_DTC="no"
3413 ;;
3414 esac
3415 fi
3416 DTC=$ac_cv_path_DTC
3417 if test -n "$DTC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
3419 $as_echo "$DTC" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 fi
3424
3425
3426 if test x"$DTC" == xno; then :
3427 as_fn_error $? "device-tree-compiler not found" "$LINENO" 5
3428 fi
3429
3430 cat >>confdefs.h <<_ACEOF
3431 #define DTC "$DTC"
3432 _ACEOF
3433
3434
3435
3436 ac_ext=cpp
3437 ac_cpp='$CXXCPP $CPPFLAGS'
3438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3442 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3443 if test -z "$CXXCPP"; then
3444 if ${ac_cv_prog_CXXCPP+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 # Double quotes because CXXCPP needs to be expanded
3448 for CXXCPP in "$CXX -E" "/lib/cpp"
3449 do
3450 ac_preproc_ok=false
3451 for ac_cxx_preproc_warn_flag in '' yes
3452 do
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #ifdef __STDC__
3462 # include <limits.h>
3463 #else
3464 # include <assert.h>
3465 #endif
3466 Syntax error
3467 _ACEOF
3468 if ac_fn_cxx_try_cpp "$LINENO"; then :
3469
3470 else
3471 # Broken: fails on valid input.
3472 continue
3473 fi
3474 rm -f conftest.err conftest.i conftest.$ac_ext
3475
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if ac_fn_cxx_try_cpp "$LINENO"; then :
3483 # Broken: success on invalid input.
3484 continue
3485 else
3486 # Passes both tests.
3487 ac_preproc_ok=:
3488 break
3489 fi
3490 rm -f conftest.err conftest.i conftest.$ac_ext
3491
3492 done
3493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494 rm -f conftest.i conftest.err conftest.$ac_ext
3495 if $ac_preproc_ok; then :
3496 break
3497 fi
3498
3499 done
3500 ac_cv_prog_CXXCPP=$CXXCPP
3501
3502 fi
3503 CXXCPP=$ac_cv_prog_CXXCPP
3504 else
3505 ac_cv_prog_CXXCPP=$CXXCPP
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3508 $as_echo "$CXXCPP" >&6; }
3509 ac_preproc_ok=false
3510 for ac_cxx_preproc_warn_flag in '' yes
3511 do
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #ifdef __STDC__
3521 # include <limits.h>
3522 #else
3523 # include <assert.h>
3524 #endif
3525 Syntax error
3526 _ACEOF
3527 if ac_fn_cxx_try_cpp "$LINENO"; then :
3528
3529 else
3530 # Broken: fails on valid input.
3531 continue
3532 fi
3533 rm -f conftest.err conftest.i conftest.$ac_ext
3534
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539 #include <ac_nonexistent.h>
3540 _ACEOF
3541 if ac_fn_cxx_try_cpp "$LINENO"; then :
3542 # Broken: success on invalid input.
3543 continue
3544 else
3545 # Passes both tests.
3546 ac_preproc_ok=:
3547 break
3548 fi
3549 rm -f conftest.err conftest.i conftest.$ac_ext
3550
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.i conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then :
3555
3556 else
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3560 See \`config.log' for more details" "$LINENO" 5; }
3561 fi
3562
3563 ac_ext=cpp
3564 ac_cpp='$CXXCPP $CPPFLAGS'
3565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572 if ${ac_cv_path_GREP+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -z "$GREP"; then
3576 ac_path_GREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in grep ggrep; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586 as_fn_executable_p "$ac_path_GREP" || continue
3587 # Check for GNU ac_path_GREP and select it if it is found.
3588 # Check for GNU $ac_path_GREP
3589 case `"$ac_path_GREP" --version 2>&1` in
3590 *GNU*)
3591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592 *)
3593 ac_count=0
3594 $as_echo_n 0123456789 >"conftest.in"
3595 while :
3596 do
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'GREP' >> "conftest.nl"
3601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 as_fn_arith $ac_count + 1 && ac_count=$as_val
3604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_GREP="$ac_path_GREP"
3607 ac_path_GREP_max=$ac_count
3608 fi
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3611 done
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613 esac
3614
3615 $ac_path_GREP_found && break 3
3616 done
3617 done
3618 done
3619 IFS=$as_save_IFS
3620 if test -z "$ac_cv_path_GREP"; then
3621 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3622 fi
3623 else
3624 ac_cv_path_GREP=$GREP
3625 fi
3626
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3629 $as_echo "$ac_cv_path_GREP" >&6; }
3630 GREP="$ac_cv_path_GREP"
3631
3632
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3634 $as_echo_n "checking for egrep... " >&6; }
3635 if ${ac_cv_path_EGREP+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3639 then ac_cv_path_EGREP="$GREP -E"
3640 else
3641 if test -z "$EGREP"; then
3642 ac_path_EGREP_found=false
3643 # Loop through the user's path and test for each of PROGNAME-LIST
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3646 do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_prog in egrep; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3652 as_fn_executable_p "$ac_path_EGREP" || continue
3653 # Check for GNU ac_path_EGREP and select it if it is found.
3654 # Check for GNU $ac_path_EGREP
3655 case `"$ac_path_EGREP" --version 2>&1` in
3656 *GNU*)
3657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3658 *)
3659 ac_count=0
3660 $as_echo_n 0123456789 >"conftest.in"
3661 while :
3662 do
3663 cat "conftest.in" "conftest.in" >"conftest.tmp"
3664 mv "conftest.tmp" "conftest.in"
3665 cp "conftest.in" "conftest.nl"
3666 $as_echo 'EGREP' >> "conftest.nl"
3667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3669 as_fn_arith $ac_count + 1 && ac_count=$as_val
3670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3671 # Best one so far, save it but keep looking for a better one
3672 ac_cv_path_EGREP="$ac_path_EGREP"
3673 ac_path_EGREP_max=$ac_count
3674 fi
3675 # 10*(2^10) chars as input seems more than enough
3676 test $ac_count -gt 10 && break
3677 done
3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3679 esac
3680
3681 $ac_path_EGREP_found && break 3
3682 done
3683 done
3684 done
3685 IFS=$as_save_IFS
3686 if test -z "$ac_cv_path_EGREP"; then
3687 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3688 fi
3689 else
3690 ac_cv_path_EGREP=$EGREP
3691 fi
3692
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3696 $as_echo "$ac_cv_path_EGREP" >&6; }
3697 EGREP="$ac_cv_path_EGREP"
3698
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3701 $as_echo_n "checking for ANSI C header files... " >&6; }
3702 if ${ac_cv_header_stdc+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <stdlib.h>
3708 #include <stdarg.h>
3709 #include <string.h>
3710 #include <float.h>
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_cxx_try_compile "$LINENO"; then :
3721 ac_cv_header_stdc=yes
3722 else
3723 ac_cv_header_stdc=no
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726
3727 if test $ac_cv_header_stdc = yes; then
3728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <string.h>
3732
3733 _ACEOF
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 $EGREP "memchr" >/dev/null 2>&1; then :
3736
3737 else
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f conftest*
3741
3742 fi
3743
3744 if test $ac_cv_header_stdc = yes; then
3745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <stdlib.h>
3749
3750 _ACEOF
3751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752 $EGREP "free" >/dev/null 2>&1; then :
3753
3754 else
3755 ac_cv_header_stdc=no
3756 fi
3757 rm -f conftest*
3758
3759 fi
3760
3761 if test $ac_cv_header_stdc = yes; then
3762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3763 if test "$cross_compiling" = yes; then :
3764 :
3765 else
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <ctype.h>
3769 #include <stdlib.h>
3770 #if ((' ' & 0x0FF) == 0x020)
3771 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3772 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3773 #else
3774 # define ISLOWER(c) \
3775 (('a' <= (c) && (c) <= 'i') \
3776 || ('j' <= (c) && (c) <= 'r') \
3777 || ('s' <= (c) && (c) <= 'z'))
3778 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3779 #endif
3780
3781 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3782 int
3783 main ()
3784 {
3785 int i;
3786 for (i = 0; i < 256; i++)
3787 if (XOR (islower (i), ISLOWER (i))
3788 || toupper (i) != TOUPPER (i))
3789 return 2;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_cxx_try_run "$LINENO"; then :
3794
3795 else
3796 ac_cv_header_stdc=no
3797 fi
3798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3799 conftest.$ac_objext conftest.beam conftest.$ac_ext
3800 fi
3801
3802 fi
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3805 $as_echo "$ac_cv_header_stdc" >&6; }
3806 if test $ac_cv_header_stdc = yes; then
3807
3808 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3809
3810 fi
3811
3812 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814 inttypes.h stdint.h unistd.h
3815 do :
3816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3818 "
3819 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3820 cat >>confdefs.h <<_ACEOF
3821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3822 _ACEOF
3823
3824 fi
3825
3826 done
3827
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3830 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3831 if ${ac_cv_c_bigendian+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 ac_cv_c_bigendian=unknown
3835 # See if we're dealing with a universal compiler.
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3838 #ifndef __APPLE_CC__
3839 not a universal capable compiler
3840 #endif
3841 typedef int dummy;
3842
3843 _ACEOF
3844 if ac_fn_cxx_try_compile "$LINENO"; then :
3845
3846 # Check for potential -arch flags. It is not universal unless
3847 # there are at least two -arch flags with different values.
3848 ac_arch=
3849 ac_prev=
3850 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3851 if test -n "$ac_prev"; then
3852 case $ac_word in
3853 i?86 | x86_64 | ppc | ppc64)
3854 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3855 ac_arch=$ac_word
3856 else
3857 ac_cv_c_bigendian=universal
3858 break
3859 fi
3860 ;;
3861 esac
3862 ac_prev=
3863 elif test "x$ac_word" = "x-arch"; then
3864 ac_prev=arch
3865 fi
3866 done
3867 fi
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 if test $ac_cv_c_bigendian = unknown; then
3870 # See if sys/param.h defines the BYTE_ORDER macro.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <sys/types.h>
3874 #include <sys/param.h>
3875
3876 int
3877 main ()
3878 {
3879 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3880 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3881 && LITTLE_ENDIAN)
3882 bogus endian macros
3883 #endif
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_cxx_try_compile "$LINENO"; then :
3890 # It does; now see whether it defined to BIG_ENDIAN or not.
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893 #include <sys/types.h>
3894 #include <sys/param.h>
3895
3896 int
3897 main ()
3898 {
3899 #if BYTE_ORDER != BIG_ENDIAN
3900 not big endian
3901 #endif
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_cxx_try_compile "$LINENO"; then :
3908 ac_cv_c_bigendian=yes
3909 else
3910 ac_cv_c_bigendian=no
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 if test $ac_cv_c_bigendian = unknown; then
3917 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <limits.h>
3921
3922 int
3923 main ()
3924 {
3925 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3926 bogus endian macros
3927 #endif
3928
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_cxx_try_compile "$LINENO"; then :
3934 # It does; now see whether it defined to _BIG_ENDIAN or not.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <limits.h>
3938
3939 int
3940 main ()
3941 {
3942 #ifndef _BIG_ENDIAN
3943 not big endian
3944 #endif
3945
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_cxx_try_compile "$LINENO"; then :
3951 ac_cv_c_bigendian=yes
3952 else
3953 ac_cv_c_bigendian=no
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958 fi
3959 if test $ac_cv_c_bigendian = unknown; then
3960 # Compile a test program.
3961 if test "$cross_compiling" = yes; then :
3962 # Try to guess by grepping values from an object file.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 short int ascii_mm[] =
3966 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3967 short int ascii_ii[] =
3968 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3969 int use_ascii (int i) {
3970 return ascii_mm[i] + ascii_ii[i];
3971 }
3972 short int ebcdic_ii[] =
3973 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3974 short int ebcdic_mm[] =
3975 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3976 int use_ebcdic (int i) {
3977 return ebcdic_mm[i] + ebcdic_ii[i];
3978 }
3979 extern int foo;
3980
3981 int
3982 main ()
3983 {
3984 return use_ascii (foo) == use_ebcdic (foo);
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 if ac_fn_cxx_try_compile "$LINENO"; then :
3990 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3991 ac_cv_c_bigendian=yes
3992 fi
3993 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3994 if test "$ac_cv_c_bigendian" = unknown; then
3995 ac_cv_c_bigendian=no
3996 else
3997 # finding both strings is unlikely to happen, but who knows?
3998 ac_cv_c_bigendian=unknown
3999 fi
4000 fi
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 $ac_includes_default
4007 int
4008 main ()
4009 {
4010
4011 /* Are we little or big endian? From Harbison&Steele. */
4012 union
4013 {
4014 long int l;
4015 char c[sizeof (long int)];
4016 } u;
4017 u.l = 1;
4018 return u.c[sizeof (long int) - 1] == 1;
4019
4020 ;
4021 return 0;
4022 }
4023 _ACEOF
4024 if ac_fn_cxx_try_run "$LINENO"; then :
4025 ac_cv_c_bigendian=no
4026 else
4027 ac_cv_c_bigendian=yes
4028 fi
4029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4030 conftest.$ac_objext conftest.beam conftest.$ac_ext
4031 fi
4032
4033 fi
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4036 $as_echo "$ac_cv_c_bigendian" >&6; }
4037 case $ac_cv_c_bigendian in #(
4038 yes)
4039 as_fn_error $? "Spike requires a little-endian host" "$LINENO" 5;; #(
4040 no)
4041 ;; #(
4042 universal)
4043
4044 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4045
4046 ;; #(
4047 *)
4048 as_fn_error $? "unknown endianness
4049 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4050 esac
4051
4052
4053 #-------------------------------------------------------------------------
4054 # MCPPBS specific program checks
4055 #-------------------------------------------------------------------------
4056 # These macros check to see if we can do a stow-based install and also
4057 # check for an isa simulator suitable for running the unit test programs
4058 # via the makefile.
4059
4060 # Find a good install program. We prefer a C program (faster),
4061 # so one script is as good as another. But avoid the broken or
4062 # incompatible versions:
4063 # SysV /etc/install, /usr/sbin/install
4064 # SunOS /usr/etc/install
4065 # IRIX /sbin/install
4066 # AIX /bin/install
4067 # AmigaOS /C/install, which installs bootblocks on floppy discs
4068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071 # OS/2's system install, which has a completely different semantic
4072 # ./install, which can be erroneously created by make from ./install.sh.
4073 # Reject install programs that cannot install multiple files.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4075 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4076 if test -z "$INSTALL"; then
4077 if ${ac_cv_path_install+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 # Account for people who put trailing slashes in PATH elements.
4086 case $as_dir/ in #((
4087 ./ | .// | /[cC]/* | \
4088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4089 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4090 /usr/ucb/* ) ;;
4091 *)
4092 # OSF1 and SCO ODT 3.0 have their own names for install.
4093 # Don't use installbsd from OSF since it installs stuff as root
4094 # by default.
4095 for ac_prog in ginstall scoinst install; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4098 if test $ac_prog = install &&
4099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # AIX install. It has an incompatible calling convention.
4101 :
4102 elif test $ac_prog = install &&
4103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4104 # program-specific install script used by HP pwplus--don't use.
4105 :
4106 else
4107 rm -rf conftest.one conftest.two conftest.dir
4108 echo one > conftest.one
4109 echo two > conftest.two
4110 mkdir conftest.dir
4111 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4112 test -s conftest.one && test -s conftest.two &&
4113 test -s conftest.dir/conftest.one &&
4114 test -s conftest.dir/conftest.two
4115 then
4116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4117 break 3
4118 fi
4119 fi
4120 fi
4121 done
4122 done
4123 ;;
4124 esac
4125
4126 done
4127 IFS=$as_save_IFS
4128
4129 rm -rf conftest.one conftest.two conftest.dir
4130
4131 fi
4132 if test "${ac_cv_path_install+set}" = set; then
4133 INSTALL=$ac_cv_path_install
4134 else
4135 # As a last resort, use the slow shell script. Don't cache a
4136 # value for INSTALL within a source directory, because that will
4137 # break other packages using the cache if that directory is
4138 # removed, or if the value is a relative name.
4139 INSTALL=$ac_install_sh
4140 fi
4141 fi
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4143 $as_echo "$INSTALL" >&6; }
4144
4145 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4146 # It thinks the first close brace ends the variable substitution.
4147 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4148
4149 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4150
4151 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4152
4153
4154
4155 # Configure command line option
4156
4157 # Check whether --enable-stow was given.
4158 if test "${enable_stow+set}" = set; then :
4159 enableval=$enable_stow; enable_stow="yes"
4160 else
4161 enable_stow="no"
4162 fi
4163
4164
4165
4166
4167 # Environment variables
4168
4169
4170
4171
4172 # Check for install script
4173
4174
4175
4176 # Deterimine if native build and set prefix appropriately
4177
4178 if test ${enable_stow} = "yes" ; then :
4179
4180 for ac_prog in stow
4181 do
4182 # Extract the first word of "$ac_prog", so it can be a program name with args.
4183 set dummy $ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_stow+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$stow"; then
4190 ac_cv_prog_stow="$stow" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_stow="$ac_prog"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 stow=$ac_cv_prog_stow
4210 if test -n "$stow"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stow" >&5
4212 $as_echo "$stow" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 test -n "$stow" && break
4220 done
4221 test -n "$stow" || stow="no"
4222
4223 if test ${stow} = "no" ; then :
4224
4225 as_fn_error $? "Cannot use --enable-stow since stow is not available" "$LINENO" 5
4226
4227 fi
4228
4229 # Check if native or non-native build
4230
4231 if test "${build}" = "${host}" ; then :
4232
4233
4234 # build == host so this is a native build. Make sure --prefix not
4235 # set and $STOW_PREFIX is set, then set prefix=$STOW_PREFIX.
4236
4237 if test "${prefix}" = "NONE" && test -n "${STOW_PREFIX}" ; then :
4238
4239 prefix="${STOW_PREFIX}"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_PREFIX from environment" >&5
4241 $as_echo "$as_me: Using \$STOW_PREFIX from environment" >&6;}
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4243 $as_echo "$as_me: prefix=${prefix}" >&6;}
4244
4245 fi
4246
4247
4248 else
4249
4250
4251 # build != host so this is a non-native build. Make sure --prefix
4252 # not set and $STOW_ROOT is set, then set
4253 # prefix=$STOW_ROOT/${host_alias}.
4254
4255 if test "${prefix}" = "NONE" && test -n "${STOW_ROOT}" ; then :
4256
4257 prefix="${STOW_ROOT}/${host_alias}"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: Using \$STOW_ROOT from environment" >&5
4259 $as_echo "$as_me: Using \$STOW_ROOT from environment" >&6;}
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: prefix=${prefix}" >&5
4261 $as_echo "$as_me: prefix=${prefix}" >&6;}
4262
4263 fi
4264
4265
4266 fi
4267
4268
4269 fi
4270
4271
4272
4273 #-------------------------------------------------------------------------
4274 # Checks for header files
4275 #-------------------------------------------------------------------------
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4278 $as_echo_n "checking for ANSI C header files... " >&6; }
4279 if ${ac_cv_header_stdc+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <stdlib.h>
4285 #include <stdarg.h>
4286 #include <string.h>
4287 #include <float.h>
4288
4289 int
4290 main ()
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_cxx_try_compile "$LINENO"; then :
4298 ac_cv_header_stdc=yes
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <string.h>
4309
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "memchr" >/dev/null 2>&1; then :
4313
4314 else
4315 ac_cv_header_stdc=no
4316 fi
4317 rm -f conftest*
4318
4319 fi
4320
4321 if test $ac_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then :
4330
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then :
4341 :
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ctype.h>
4346 #include <stdlib.h>
4347 #if ((' ' & 0x0FF) == 0x020)
4348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4350 #else
4351 # define ISLOWER(c) \
4352 (('a' <= (c) && (c) <= 'i') \
4353 || ('j' <= (c) && (c) <= 'r') \
4354 || ('s' <= (c) && (c) <= 'z'))
4355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #endif
4357
4358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4359 int
4360 main ()
4361 {
4362 int i;
4363 for (i = 0; i < 256; i++)
4364 if (XOR (islower (i), ISLOWER (i))
4365 || toupper (i) != TOUPPER (i))
4366 return 2;
4367 return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_cxx_try_run "$LINENO"; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376 conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 fi
4378
4379 fi
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4382 $as_echo "$ac_cv_header_stdc" >&6; }
4383 if test $ac_cv_header_stdc = yes; then
4384
4385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4386
4387 fi
4388
4389
4390 #-------------------------------------------------------------------------
4391 # Default compiler flags
4392 #-------------------------------------------------------------------------
4393
4394 CFLAGS="-Wall -Wno-unused -g -O2"
4395
4396 CXXFLAGS="-Wall -Wno-unused -g -O2 -std=c++11"
4397
4398
4399 #-------------------------------------------------------------------------
4400 # MCPPBS subproject list
4401 #-------------------------------------------------------------------------
4402 # Order list so that subprojects only depend on those listed earlier.
4403 # The '*' suffix indicates an optional subproject. The '**' suffix
4404 # indicates an optional subproject which is also the name of a group.
4405
4406
4407
4408 # Add command line argument to enable all optional subprojects
4409
4410 # Check whether --enable-optional-subprojects was given.
4411 if test "${enable_optional_subprojects+set}" = set; then :
4412 enableval=$enable_optional_subprojects;
4413 fi
4414
4415
4416 # Loop through the subprojects given in the macro argument
4417
4418
4419
4420 # Determine if this is a required or an optional subproject
4421
4422
4423
4424 # Determine if there is a group with the same name
4425
4426
4427
4428 # Create variations of the subproject name suitable for use as a CPP
4429 # enabled define, a shell enabled variable, and a shell function
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 # Add subproject to our running list
4442
4443 subprojects="$subprojects riscv"
4444
4445 # Process the subproject appropriately. If enabled add it to the
4446 # $enabled_subprojects running shell variable, set a
4447 # SUBPROJECT_ENABLED C define, and include the appropriate
4448 # 'subproject.ac'.
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4452 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4453 ac_config_files="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4454
4455 enable_riscv_sproj="yes"
4456 subprojects_enabled="$subprojects_enabled riscv"
4457
4458 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4459
4460 ac_ext=cpp
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465
4466
4467
4468 # Check whether --with-isa was given.
4469 if test "${with_isa+set}" = set; then :
4470 withval=$with_isa;
4471 cat >>confdefs.h <<_ACEOF
4472 #define DEFAULT_ISA "$withval"
4473 _ACEOF
4474
4475 else
4476
4477 cat >>confdefs.h <<_ACEOF
4478 #define DEFAULT_ISA "RV64IMAFDC"
4479 _ACEOF
4480
4481 fi
4482
4483
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4485 $as_echo_n "checking for library containing dlopen... " >&6; }
4486 if ${ac_cv_search_dlopen+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_func_search_save_LIBS=$LIBS
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 /* Override any GCC internal prototype to avoid an error.
4494 Use char because int might match the return type of a GCC
4495 builtin and then its argument prototype would still apply. */
4496 #ifdef __cplusplus
4497 extern "C"
4498 #endif
4499 char dlopen ();
4500 int
4501 main ()
4502 {
4503 return dlopen ();
4504 ;
4505 return 0;
4506 }
4507 _ACEOF
4508 for ac_lib in '' dl dld; do
4509 if test -z "$ac_lib"; then
4510 ac_res="none required"
4511 else
4512 ac_res=-l$ac_lib
4513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4514 fi
4515 if ac_fn_cxx_try_link "$LINENO"; then :
4516 ac_cv_search_dlopen=$ac_res
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext \
4519 conftest$ac_exeext
4520 if ${ac_cv_search_dlopen+:} false; then :
4521 break
4522 fi
4523 done
4524 if ${ac_cv_search_dlopen+:} false; then :
4525
4526 else
4527 ac_cv_search_dlopen=no
4528 fi
4529 rm conftest.$ac_ext
4530 LIBS=$ac_func_search_save_LIBS
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4533 $as_echo "$ac_cv_search_dlopen" >&6; }
4534 ac_res=$ac_cv_search_dlopen
4535 if test "$ac_res" != no; then :
4536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4537
4538 else
4539
4540 as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
4541
4542 fi
4543
4544
4545
4546 # Check whether --with-fesvr was given.
4547 if test "${with_fesvr+set}" = set; then :
4548 withval=$with_fesvr;
4549 LDFLAGS="-L$withval/lib $LDFLAGS"
4550 CPPFLAGS="-I$withval/include $CPPFLAGS"
4551
4552
4553 fi
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4557 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4558 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_check_lib_save_LIBS=$LIBS
4562 LIBS="-lfesvr -pthread $LIBS"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 /* Override any GCC internal prototype to avoid an error.
4567 Use char because int might match the return type of a GCC
4568 builtin and then its argument prototype would still apply. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 char libfesvr_is_present ();
4573 int
4574 main ()
4575 {
4576 return libfesvr_is_present ();
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_cxx_try_link "$LINENO"; then :
4582 ac_cv_lib_fesvr_libfesvr_is_present=yes
4583 else
4584 ac_cv_lib_fesvr_libfesvr_is_present=no
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4588 LIBS=$ac_check_lib_save_LIBS
4589 fi
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4591 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4592 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes; then :
4593 cat >>confdefs.h <<_ACEOF
4594 #define HAVE_LIBFESVR 1
4595 _ACEOF
4596
4597 LIBS="-lfesvr $LIBS"
4598
4599 else
4600 as_fn_error $? "libfesvr is required" "$LINENO" 5
4601 fi
4602
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4605 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4606 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 ac_check_lib_save_LIBS=$LIBS
4610 LIBS="-lpthread $LIBS"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613
4614 /* Override any GCC internal prototype to avoid an error.
4615 Use char because int might match the return type of a GCC
4616 builtin and then its argument prototype would still apply. */
4617 #ifdef __cplusplus
4618 extern "C"
4619 #endif
4620 char pthread_create ();
4621 int
4622 main ()
4623 {
4624 return pthread_create ();
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_cxx_try_link "$LINENO"; then :
4630 ac_cv_lib_pthread_pthread_create=yes
4631 else
4632 ac_cv_lib_pthread_pthread_create=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4639 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4640 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4641 cat >>confdefs.h <<_ACEOF
4642 #define HAVE_LIBPTHREAD 1
4643 _ACEOF
4644
4645 LIBS="-lpthread $LIBS"
4646
4647 else
4648 as_fn_error $? "libpthread is required" "$LINENO" 5
4649 fi
4650
4651
4652 # Check whether --enable-commitlog was given.
4653 if test "${enable_commitlog+set}" = set; then :
4654 enableval=$enable_commitlog;
4655 fi
4656
4657 if test "x$enable_commitlog" = "xyes"; then :
4658
4659
4660 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4661
4662
4663 fi
4664
4665 # Check whether --enable-histogram was given.
4666 if test "${enable_histogram+set}" = set; then :
4667 enableval=$enable_histogram;
4668 fi
4669
4670 if test "x$enable_histogram" = "xyes"; then :
4671
4672
4673 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4674
4675
4676 fi
4677
4678 # Check whether --enable-dirty was given.
4679 if test "${enable_dirty+set}" = set; then :
4680 enableval=$enable_dirty;
4681 fi
4682
4683 if test "x$enable_dirty" = "xyes"; then :
4684
4685
4686 $as_echo "#define RISCV_ENABLE_DIRTY /**/" >>confdefs.h
4687
4688
4689 fi
4690
4691 # Check whether --enable-misaligned was given.
4692 if test "${enable_misaligned+set}" = set; then :
4693 enableval=$enable_misaligned;
4694 fi
4695
4696 if test "x$enable_misaligned" = "xyes"; then :
4697
4698
4699 $as_echo "#define RISCV_ENABLE_MISALIGNED /**/" >>confdefs.h
4700
4701
4702 fi
4703
4704
4705
4706
4707
4708 # Determine if this is a required or an optional subproject
4709
4710
4711
4712 # Determine if there is a group with the same name
4713
4714
4715
4716 # Create variations of the subproject name suitable for use as a CPP
4717 # enabled define, a shell enabled variable, and a shell function
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 # Add subproject to our running list
4730
4731 subprojects="$subprojects dummy_rocc"
4732
4733 # Process the subproject appropriately. If enabled add it to the
4734 # $enabled_subprojects running shell variable, set a
4735 # SUBPROJECT_ENABLED C define, and include the appropriate
4736 # 'subproject.ac'.
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4740 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4741 ac_config_files="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4742
4743 enable_dummy_rocc_sproj="yes"
4744 subprojects_enabled="$subprojects_enabled dummy_rocc"
4745
4746 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4747
4748
4749
4750
4751
4752
4753 # Determine if this is a required or an optional subproject
4754
4755
4756
4757 # Determine if there is a group with the same name
4758
4759
4760
4761 # Create variations of the subproject name suitable for use as a CPP
4762 # enabled define, a shell enabled variable, and a shell function
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 # Add subproject to our running list
4775
4776 subprojects="$subprojects softfloat"
4777
4778 # Process the subproject appropriately. If enabled add it to the
4779 # $enabled_subprojects running shell variable, set a
4780 # SUBPROJECT_ENABLED C define, and include the appropriate
4781 # 'subproject.ac'.
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4785 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4786 ac_config_files="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4787
4788 enable_softfloat_sproj="yes"
4789 subprojects_enabled="$subprojects_enabled softfloat"
4790
4791 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4792
4793
4794
4795
4796
4797
4798 # Determine if this is a required or an optional subproject
4799
4800
4801
4802 # Determine if there is a group with the same name
4803
4804
4805
4806 # Create variations of the subproject name suitable for use as a CPP
4807 # enabled define, a shell enabled variable, and a shell function
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819 # Add subproject to our running list
4820
4821 subprojects="$subprojects spike_main"
4822
4823 # Process the subproject appropriately. If enabled add it to the
4824 # $enabled_subprojects running shell variable, set a
4825 # SUBPROJECT_ENABLED C define, and include the appropriate
4826 # 'subproject.ac'.
4827
4828
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4830 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4831 ac_config_files="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4832
4833 enable_spike_main_sproj="yes"
4834 subprojects_enabled="$subprojects_enabled spike_main"
4835
4836 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4837
4838
4839
4840
4841
4842
4843 # Output make variables
4844
4845
4846
4847
4848
4849
4850 #-------------------------------------------------------------------------
4851 # MCPPBS subproject groups
4852 #-------------------------------------------------------------------------
4853 # If a group has the same name as a subproject then you must add the
4854 # '**' suffix in the subproject list above. The list of subprojects in a
4855 # group should be ordered so that subprojets only depend on those listed
4856 # earlier. Here is an example:
4857 #
4858 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4859 #
4860
4861 #-------------------------------------------------------------------------
4862 # Output
4863 #-------------------------------------------------------------------------
4864
4865 ac_config_headers="$ac_config_headers config.h"
4866
4867 ac_config_files="$ac_config_files Makefile"
4868
4869 ac_config_files="$ac_config_files riscv-spike.pc"
4870
4871 ac_config_files="$ac_config_files riscv-riscv.pc"
4872
4873 ac_config_files="$ac_config_files riscv-softfloat.pc"
4874
4875 ac_config_files="$ac_config_files riscv-dummy_rocc.pc"
4876
4877 ac_config_files="$ac_config_files riscv-spike_main.pc"
4878
4879 cat >confcache <<\_ACEOF
4880 # This file is a shell script that caches the results of configure
4881 # tests run on this system so they can be shared between configure
4882 # scripts and configure runs, see configure's option --config-cache.
4883 # It is not useful on other systems. If it contains results you don't
4884 # want to keep, you may remove or edit it.
4885 #
4886 # config.status only pays attention to the cache file if you give it
4887 # the --recheck option to rerun configure.
4888 #
4889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4891 # following values.
4892
4893 _ACEOF
4894
4895 # The following way of writing the cache mishandles newlines in values,
4896 # but we know of no workaround that is simple, portable, and efficient.
4897 # So, we kill variables containing newlines.
4898 # Ultrix sh set writes to stderr and can't be redirected directly,
4899 # and sets the high bit in the cache file unless we assign to the vars.
4900 (
4901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4902 eval ac_val=\$$ac_var
4903 case $ac_val in #(
4904 *${as_nl}*)
4905 case $ac_var in #(
4906 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4907 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4908 esac
4909 case $ac_var in #(
4910 _ | IFS | as_nl) ;; #(
4911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4912 *) { eval $ac_var=; unset $ac_var;} ;;
4913 esac ;;
4914 esac
4915 done
4916
4917 (set) 2>&1 |
4918 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4919 *${as_nl}ac_space=\ *)
4920 # `set' does not quote correctly, so add quotes: double-quote
4921 # substitution turns \\\\ into \\, and sed turns \\ into \.
4922 sed -n \
4923 "s/'/'\\\\''/g;
4924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4925 ;; #(
4926 *)
4927 # `set' quotes correctly as required by POSIX, so do not add quotes.
4928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4929 ;;
4930 esac |
4931 sort
4932 ) |
4933 sed '
4934 /^ac_cv_env_/b end
4935 t clear
4936 :clear
4937 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4938 t end
4939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4940 :end' >>confcache
4941 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4942 if test -w "$cache_file"; then
4943 if test "x$cache_file" != "x/dev/null"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4945 $as_echo "$as_me: updating cache $cache_file" >&6;}
4946 if test ! -f "$cache_file" || test -h "$cache_file"; then
4947 cat confcache >"$cache_file"
4948 else
4949 case $cache_file in #(
4950 */* | ?:*)
4951 mv -f confcache "$cache_file"$$ &&
4952 mv -f "$cache_file"$$ "$cache_file" ;; #(
4953 *)
4954 mv -f confcache "$cache_file" ;;
4955 esac
4956 fi
4957 fi
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4960 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4961 fi
4962 fi
4963 rm -f confcache
4964
4965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4966 # Let make expand exec_prefix.
4967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4968
4969 DEFS=-DHAVE_CONFIG_H
4970
4971 ac_libobjs=
4972 ac_ltlibobjs=
4973 U=
4974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4975 # 1. Remove the extension, and $U if already installed.
4976 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4977 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4978 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4979 # will be set to the directory where LIBOBJS objects are built.
4980 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4981 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4982 done
4983 LIBOBJS=$ac_libobjs
4984
4985 LTLIBOBJS=$ac_ltlibobjs
4986
4987
4988
4989
4990 : "${CONFIG_STATUS=./config.status}"
4991 ac_write_fail=0
4992 ac_clean_files_save=$ac_clean_files
4993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4995 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4996 as_write_fail=0
4997 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4998 #! $SHELL
4999 # Generated by $as_me.
5000 # Run this file to recreate the current configuration.
5001 # Compiler output produced by configure, useful for debugging
5002 # configure, is in config.log if it exists.
5003
5004 debug=false
5005 ac_cs_recheck=false
5006 ac_cs_silent=false
5007
5008 SHELL=\${CONFIG_SHELL-$SHELL}
5009 export SHELL
5010 _ASEOF
5011 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5012 ## -------------------- ##
5013 ## M4sh Initialization. ##
5014 ## -------------------- ##
5015
5016 # Be more Bourne compatible
5017 DUALCASE=1; export DUALCASE # for MKS sh
5018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5019 emulate sh
5020 NULLCMD=:
5021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5022 # is contrary to our usage. Disable this feature.
5023 alias -g '${1+"$@"}'='"$@"'
5024 setopt NO_GLOB_SUBST
5025 else
5026 case `(set -o) 2>/dev/null` in #(
5027 *posix*) :
5028 set -o posix ;; #(
5029 *) :
5030 ;;
5031 esac
5032 fi
5033
5034
5035 as_nl='
5036 '
5037 export as_nl
5038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5042 # Prefer a ksh shell builtin over an external printf program on Solaris,
5043 # but without wasting forks for bash or zsh.
5044 if test -z "$BASH_VERSION$ZSH_VERSION" \
5045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5046 as_echo='print -r --'
5047 as_echo_n='print -rn --'
5048 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5049 as_echo='printf %s\n'
5050 as_echo_n='printf %s'
5051 else
5052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5054 as_echo_n='/usr/ucb/echo -n'
5055 else
5056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5057 as_echo_n_body='eval
5058 arg=$1;
5059 case $arg in #(
5060 *"$as_nl"*)
5061 expr "X$arg" : "X\\(.*\\)$as_nl";
5062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5063 esac;
5064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5065 '
5066 export as_echo_n_body
5067 as_echo_n='sh -c $as_echo_n_body as_echo'
5068 fi
5069 export as_echo_body
5070 as_echo='sh -c $as_echo_body as_echo'
5071 fi
5072
5073 # The user is always right.
5074 if test "${PATH_SEPARATOR+set}" != set; then
5075 PATH_SEPARATOR=:
5076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5078 PATH_SEPARATOR=';'
5079 }
5080 fi
5081
5082
5083 # IFS
5084 # We need space, tab and new line, in precisely that order. Quoting is
5085 # there to prevent editors from complaining about space-tab.
5086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5087 # splitting by setting IFS to empty value.)
5088 IFS=" "" $as_nl"
5089
5090 # Find who we are. Look in the path if we contain no directory separator.
5091 as_myself=
5092 case $0 in #((
5093 *[\\/]* ) as_myself=$0 ;;
5094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5100 done
5101 IFS=$as_save_IFS
5102
5103 ;;
5104 esac
5105 # We did not find ourselves, most probably we were run as `sh COMMAND'
5106 # in which case we are not to be found in the path.
5107 if test "x$as_myself" = x; then
5108 as_myself=$0
5109 fi
5110 if test ! -f "$as_myself"; then
5111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5112 exit 1
5113 fi
5114
5115 # Unset variables that we do not need and which cause bugs (e.g. in
5116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5117 # suppresses any "Segmentation fault" message there. '((' could
5118 # trigger a bug in pdksh 5.2.14.
5119 for as_var in BASH_ENV ENV MAIL MAILPATH
5120 do eval test x\${$as_var+set} = xset \
5121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5122 done
5123 PS1='$ '
5124 PS2='> '
5125 PS4='+ '
5126
5127 # NLS nuisances.
5128 LC_ALL=C
5129 export LC_ALL
5130 LANGUAGE=C
5131 export LANGUAGE
5132
5133 # CDPATH.
5134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5135
5136
5137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5138 # ----------------------------------------
5139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5141 # script with STATUS, using 1 if that was 0.
5142 as_fn_error ()
5143 {
5144 as_status=$1; test $as_status -eq 0 && as_status=1
5145 if test "$4"; then
5146 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5148 fi
5149 $as_echo "$as_me: error: $2" >&2
5150 as_fn_exit $as_status
5151 } # as_fn_error
5152
5153
5154 # as_fn_set_status STATUS
5155 # -----------------------
5156 # Set $? to STATUS, without forking.
5157 as_fn_set_status ()
5158 {
5159 return $1
5160 } # as_fn_set_status
5161
5162 # as_fn_exit STATUS
5163 # -----------------
5164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5165 as_fn_exit ()
5166 {
5167 set +e
5168 as_fn_set_status $1
5169 exit $1
5170 } # as_fn_exit
5171
5172 # as_fn_unset VAR
5173 # ---------------
5174 # Portably unset VAR.
5175 as_fn_unset ()
5176 {
5177 { eval $1=; unset $1;}
5178 }
5179 as_unset=as_fn_unset
5180 # as_fn_append VAR VALUE
5181 # ----------------------
5182 # Append the text in VALUE to the end of the definition contained in VAR. Take
5183 # advantage of any shell optimizations that allow amortized linear growth over
5184 # repeated appends, instead of the typical quadratic growth present in naive
5185 # implementations.
5186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5187 eval 'as_fn_append ()
5188 {
5189 eval $1+=\$2
5190 }'
5191 else
5192 as_fn_append ()
5193 {
5194 eval $1=\$$1\$2
5195 }
5196 fi # as_fn_append
5197
5198 # as_fn_arith ARG...
5199 # ------------------
5200 # Perform arithmetic evaluation on the ARGs, and store the result in the
5201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5202 # must be portable across $(()) and expr.
5203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5204 eval 'as_fn_arith ()
5205 {
5206 as_val=$(( $* ))
5207 }'
5208 else
5209 as_fn_arith ()
5210 {
5211 as_val=`expr "$@" || test $? -eq 1`
5212 }
5213 fi # as_fn_arith
5214
5215
5216 if expr a : '\(a\)' >/dev/null 2>&1 &&
5217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5218 as_expr=expr
5219 else
5220 as_expr=false
5221 fi
5222
5223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5224 as_basename=basename
5225 else
5226 as_basename=false
5227 fi
5228
5229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5230 as_dirname=dirname
5231 else
5232 as_dirname=false
5233 fi
5234
5235 as_me=`$as_basename -- "$0" ||
5236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5237 X"$0" : 'X\(//\)$' \| \
5238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5239 $as_echo X/"$0" |
5240 sed '/^.*\/\([^/][^/]*\)\/*$/{
5241 s//\1/
5242 q
5243 }
5244 /^X\/\(\/\/\)$/{
5245 s//\1/
5246 q
5247 }
5248 /^X\/\(\/\).*/{
5249 s//\1/
5250 q
5251 }
5252 s/.*/./; q'`
5253
5254 # Avoid depending upon Character Ranges.
5255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5258 as_cr_digits='0123456789'
5259 as_cr_alnum=$as_cr_Letters$as_cr_digits
5260
5261 ECHO_C= ECHO_N= ECHO_T=
5262 case `echo -n x` in #(((((
5263 -n*)
5264 case `echo 'xy\c'` in
5265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5266 xy) ECHO_C='\c';;
5267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5268 ECHO_T=' ';;
5269 esac;;
5270 *)
5271 ECHO_N='-n';;
5272 esac
5273
5274 rm -f conf$$ conf$$.exe conf$$.file
5275 if test -d conf$$.dir; then
5276 rm -f conf$$.dir/conf$$.file
5277 else
5278 rm -f conf$$.dir
5279 mkdir conf$$.dir 2>/dev/null
5280 fi
5281 if (echo >conf$$.file) 2>/dev/null; then
5282 if ln -s conf$$.file conf$$ 2>/dev/null; then
5283 as_ln_s='ln -s'
5284 # ... but there are two gotchas:
5285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5287 # In both cases, we have to default to `cp -pR'.
5288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5289 as_ln_s='cp -pR'
5290 elif ln conf$$.file conf$$ 2>/dev/null; then
5291 as_ln_s=ln
5292 else
5293 as_ln_s='cp -pR'
5294 fi
5295 else
5296 as_ln_s='cp -pR'
5297 fi
5298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5299 rmdir conf$$.dir 2>/dev/null
5300
5301
5302 # as_fn_mkdir_p
5303 # -------------
5304 # Create "$as_dir" as a directory, including parents if necessary.
5305 as_fn_mkdir_p ()
5306 {
5307
5308 case $as_dir in #(
5309 -*) as_dir=./$as_dir;;
5310 esac
5311 test -d "$as_dir" || eval $as_mkdir_p || {
5312 as_dirs=
5313 while :; do
5314 case $as_dir in #(
5315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5316 *) as_qdir=$as_dir;;
5317 esac
5318 as_dirs="'$as_qdir' $as_dirs"
5319 as_dir=`$as_dirname -- "$as_dir" ||
5320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5321 X"$as_dir" : 'X\(//\)[^/]' \| \
5322 X"$as_dir" : 'X\(//\)$' \| \
5323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5324 $as_echo X"$as_dir" |
5325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5326 s//\1/
5327 q
5328 }
5329 /^X\(\/\/\)[^/].*/{
5330 s//\1/
5331 q
5332 }
5333 /^X\(\/\/\)$/{
5334 s//\1/
5335 q
5336 }
5337 /^X\(\/\).*/{
5338 s//\1/
5339 q
5340 }
5341 s/.*/./; q'`
5342 test -d "$as_dir" && break
5343 done
5344 test -z "$as_dirs" || eval "mkdir $as_dirs"
5345 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5346
5347
5348 } # as_fn_mkdir_p
5349 if mkdir -p . 2>/dev/null; then
5350 as_mkdir_p='mkdir -p "$as_dir"'
5351 else
5352 test -d ./-p && rmdir ./-p
5353 as_mkdir_p=false
5354 fi
5355
5356
5357 # as_fn_executable_p FILE
5358 # -----------------------
5359 # Test if FILE is an executable regular file.
5360 as_fn_executable_p ()
5361 {
5362 test -f "$1" && test -x "$1"
5363 } # as_fn_executable_p
5364 as_test_x='test -x'
5365 as_executable_p=as_fn_executable_p
5366
5367 # Sed expression to map a string onto a valid CPP name.
5368 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5369
5370 # Sed expression to map a string onto a valid variable name.
5371 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5372
5373
5374 exec 6>&1
5375 ## ----------------------------------- ##
5376 ## Main body of $CONFIG_STATUS script. ##
5377 ## ----------------------------------- ##
5378 _ASEOF
5379 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5380
5381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5382 # Save the log message, to keep $0 and so on meaningful, and to
5383 # report actual input values of CONFIG_FILES etc. instead of their
5384 # values after options handling.
5385 ac_log="
5386 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5387 generated by GNU Autoconf 2.69. Invocation command line was
5388
5389 CONFIG_FILES = $CONFIG_FILES
5390 CONFIG_HEADERS = $CONFIG_HEADERS
5391 CONFIG_LINKS = $CONFIG_LINKS
5392 CONFIG_COMMANDS = $CONFIG_COMMANDS
5393 $ $0 $@
5394
5395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5396 "
5397
5398 _ACEOF
5399
5400 case $ac_config_files in *"
5401 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5402 esac
5403
5404 case $ac_config_headers in *"
5405 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5406 esac
5407
5408
5409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5410 # Files that config.status was made for.
5411 config_files="$ac_config_files"
5412 config_headers="$ac_config_headers"
5413
5414 _ACEOF
5415
5416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5417 ac_cs_usage="\
5418 \`$as_me' instantiates files and other configuration actions
5419 from templates according to the current configuration. Unless the files
5420 and actions are specified as TAGs, all are instantiated by default.
5421
5422 Usage: $0 [OPTION]... [TAG]...
5423
5424 -h, --help print this help, then exit
5425 -V, --version print version number and configuration settings, then exit
5426 --config print configuration, then exit
5427 -q, --quiet, --silent
5428 do not print progress messages
5429 -d, --debug don't remove temporary files
5430 --recheck update $as_me by reconfiguring in the same conditions
5431 --file=FILE[:TEMPLATE]
5432 instantiate the configuration file FILE
5433 --header=FILE[:TEMPLATE]
5434 instantiate the configuration header FILE
5435
5436 Configuration files:
5437 $config_files
5438
5439 Configuration headers:
5440 $config_headers
5441
5442 Report bugs to <Andrew Waterman>."
5443
5444 _ACEOF
5445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5446 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5447 ac_cs_version="\\
5448 RISC-V ISA Simulator config.status ?
5449 configured by $0, generated by GNU Autoconf 2.69,
5450 with options \\"\$ac_cs_config\\"
5451
5452 Copyright (C) 2012 Free Software Foundation, Inc.
5453 This config.status script is free software; the Free Software Foundation
5454 gives unlimited permission to copy, distribute and modify it."
5455
5456 ac_pwd='$ac_pwd'
5457 srcdir='$srcdir'
5458 INSTALL='$INSTALL'
5459 test -n "\$AWK" || AWK=awk
5460 _ACEOF
5461
5462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5463 # The default lists apply if the user does not specify any file.
5464 ac_need_defaults=:
5465 while test $# != 0
5466 do
5467 case $1 in
5468 --*=?*)
5469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5471 ac_shift=:
5472 ;;
5473 --*=)
5474 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5475 ac_optarg=
5476 ac_shift=:
5477 ;;
5478 *)
5479 ac_option=$1
5480 ac_optarg=$2
5481 ac_shift=shift
5482 ;;
5483 esac
5484
5485 case $ac_option in
5486 # Handling of the options.
5487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5488 ac_cs_recheck=: ;;
5489 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5490 $as_echo "$ac_cs_version"; exit ;;
5491 --config | --confi | --conf | --con | --co | --c )
5492 $as_echo "$ac_cs_config"; exit ;;
5493 --debug | --debu | --deb | --de | --d | -d )
5494 debug=: ;;
5495 --file | --fil | --fi | --f )
5496 $ac_shift
5497 case $ac_optarg in
5498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5499 '') as_fn_error $? "missing file argument" ;;
5500 esac
5501 as_fn_append CONFIG_FILES " '$ac_optarg'"
5502 ac_need_defaults=false;;
5503 --header | --heade | --head | --hea )
5504 $ac_shift
5505 case $ac_optarg in
5506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5507 esac
5508 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5509 ac_need_defaults=false;;
5510 --he | --h)
5511 # Conflict between --help and --header
5512 as_fn_error $? "ambiguous option: \`$1'
5513 Try \`$0 --help' for more information.";;
5514 --help | --hel | -h )
5515 $as_echo "$ac_cs_usage"; exit ;;
5516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5517 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5518 ac_cs_silent=: ;;
5519
5520 # This is an error.
5521 -*) as_fn_error $? "unrecognized option: \`$1'
5522 Try \`$0 --help' for more information." ;;
5523
5524 *) as_fn_append ac_config_targets " $1"
5525 ac_need_defaults=false ;;
5526
5527 esac
5528 shift
5529 done
5530
5531 ac_configure_extra_args=
5532
5533 if $ac_cs_silent; then
5534 exec 6>/dev/null
5535 ac_configure_extra_args="$ac_configure_extra_args --silent"
5536 fi
5537
5538 _ACEOF
5539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5540 if \$ac_cs_recheck; then
5541 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5542 shift
5543 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5544 CONFIG_SHELL='$SHELL'
5545 export CONFIG_SHELL
5546 exec "\$@"
5547 fi
5548
5549 _ACEOF
5550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5551 exec 5>>config.log
5552 {
5553 echo
5554 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5555 ## Running $as_me. ##
5556 _ASBOX
5557 $as_echo "$ac_log"
5558 } >&5
5559
5560 _ACEOF
5561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5562 _ACEOF
5563
5564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5565
5566 # Handling of arguments.
5567 for ac_config_target in $ac_config_targets
5568 do
5569 case $ac_config_target in
5570 "riscv.mk") CONFIG_FILES="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5571 "dummy_rocc.mk") CONFIG_FILES="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5572 "softfloat.mk") CONFIG_FILES="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5573 "spike_main.mk") CONFIG_FILES="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5574 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5576 "riscv-spike.pc") CONFIG_FILES="$CONFIG_FILES riscv-spike.pc" ;;
5577 "riscv-riscv.pc") CONFIG_FILES="$CONFIG_FILES riscv-riscv.pc" ;;
5578 "riscv-softfloat.pc") CONFIG_FILES="$CONFIG_FILES riscv-softfloat.pc" ;;
5579 "riscv-dummy_rocc.pc") CONFIG_FILES="$CONFIG_FILES riscv-dummy_rocc.pc" ;;
5580 "riscv-spike_main.pc") CONFIG_FILES="$CONFIG_FILES riscv-spike_main.pc" ;;
5581
5582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5583 esac
5584 done
5585
5586
5587 # If the user did not use the arguments to specify the items to instantiate,
5588 # then the envvar interface is used. Set only those that are not.
5589 # We use the long form for the default assignment because of an extremely
5590 # bizarre bug on SunOS 4.1.3.
5591 if $ac_need_defaults; then
5592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5594 fi
5595
5596 # Have a temporary directory for convenience. Make it in the build tree
5597 # simply because there is no reason against having it here, and in addition,
5598 # creating and moving files from /tmp can sometimes cause problems.
5599 # Hook for its removal unless debugging.
5600 # Note that there is a small window in which the directory will not be cleaned:
5601 # after its creation but before its name has been assigned to `$tmp'.
5602 $debug ||
5603 {
5604 tmp= ac_tmp=
5605 trap 'exit_status=$?
5606 : "${ac_tmp:=$tmp}"
5607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5608 ' 0
5609 trap 'as_fn_exit 1' 1 2 13 15
5610 }
5611 # Create a (secure) tmp directory for tmp files.
5612
5613 {
5614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5615 test -d "$tmp"
5616 } ||
5617 {
5618 tmp=./conf$$-$RANDOM
5619 (umask 077 && mkdir "$tmp")
5620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5621 ac_tmp=$tmp
5622
5623 # Set up the scripts for CONFIG_FILES section.
5624 # No need to generate them if there are no CONFIG_FILES.
5625 # This happens for instance with `./config.status config.h'.
5626 if test -n "$CONFIG_FILES"; then
5627
5628
5629 ac_cr=`echo X | tr X '\015'`
5630 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5631 # But we know of no other shell where ac_cr would be empty at this
5632 # point, so we can use a bashism as a fallback.
5633 if test "x$ac_cr" = x; then
5634 eval ac_cr=\$\'\\r\'
5635 fi
5636 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5637 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5638 ac_cs_awk_cr='\\r'
5639 else
5640 ac_cs_awk_cr=$ac_cr
5641 fi
5642
5643 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5644 _ACEOF
5645
5646
5647 {
5648 echo "cat >conf$$subs.awk <<_ACEOF" &&
5649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5650 echo "_ACEOF"
5651 } >conf$$subs.sh ||
5652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5653 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5654 ac_delim='%!_!# '
5655 for ac_last_try in false false false false false :; do
5656 . ./conf$$subs.sh ||
5657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5658
5659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5660 if test $ac_delim_n = $ac_delim_num; then
5661 break
5662 elif $ac_last_try; then
5663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5664 else
5665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5666 fi
5667 done
5668 rm -f conf$$subs.sh
5669
5670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5671 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5672 _ACEOF
5673 sed -n '
5674 h
5675 s/^/S["/; s/!.*/"]=/
5676 p
5677 g
5678 s/^[^!]*!//
5679 :repl
5680 t repl
5681 s/'"$ac_delim"'$//
5682 t delim
5683 :nl
5684 h
5685 s/\(.\{148\}\)..*/\1/
5686 t more1
5687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5688 p
5689 n
5690 b repl
5691 :more1
5692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5693 p
5694 g
5695 s/.\{148\}//
5696 t nl
5697 :delim
5698 h
5699 s/\(.\{148\}\)..*/\1/
5700 t more2
5701 s/["\\]/\\&/g; s/^/"/; s/$/"/
5702 p
5703 b
5704 :more2
5705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5706 p
5707 g
5708 s/.\{148\}//
5709 t delim
5710 ' <conf$$subs.awk | sed '
5711 /^[^""]/{
5712 N
5713 s/\n//
5714 }
5715 ' >>$CONFIG_STATUS || ac_write_fail=1
5716 rm -f conf$$subs.awk
5717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5718 _ACAWK
5719 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5720 for (key in S) S_is_set[key] = 1
5721 FS = "\a"
5722
5723 }
5724 {
5725 line = $ 0
5726 nfields = split(line, field, "@")
5727 substed = 0
5728 len = length(field[1])
5729 for (i = 2; i < nfields; i++) {
5730 key = field[i]
5731 keylen = length(key)
5732 if (S_is_set[key]) {
5733 value = S[key]
5734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5735 len += length(value) + length(field[++i])
5736 substed = 1
5737 } else
5738 len += 1 + keylen
5739 }
5740
5741 print line
5742 }
5743
5744 _ACAWK
5745 _ACEOF
5746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5749 else
5750 cat
5751 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5753 _ACEOF
5754
5755 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5756 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5757 # trailing colons and then remove the whole line if VPATH becomes empty
5758 # (actually we leave an empty line to preserve line numbers).
5759 if test "x$srcdir" = x.; then
5760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5761 h
5762 s///
5763 s/^/:/
5764 s/[ ]*$/:/
5765 s/:\$(srcdir):/:/g
5766 s/:\${srcdir}:/:/g
5767 s/:@srcdir@:/:/g
5768 s/^:*//
5769 s/:*$//
5770 x
5771 s/\(=[ ]*\).*/\1/
5772 G
5773 s/\n//
5774 s/^[^=]*=[ ]*$//
5775 }'
5776 fi
5777
5778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5779 fi # test -n "$CONFIG_FILES"
5780
5781 # Set up the scripts for CONFIG_HEADERS section.
5782 # No need to generate them if there are no CONFIG_HEADERS.
5783 # This happens for instance with `./config.status Makefile'.
5784 if test -n "$CONFIG_HEADERS"; then
5785 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5786 BEGIN {
5787 _ACEOF
5788
5789 # Transform confdefs.h into an awk script `defines.awk', embedded as
5790 # here-document in config.status, that substitutes the proper values into
5791 # config.h.in to produce config.h.
5792
5793 # Create a delimiter string that does not exist in confdefs.h, to ease
5794 # handling of long lines.
5795 ac_delim='%!_!# '
5796 for ac_last_try in false false :; do
5797 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5798 if test -z "$ac_tt"; then
5799 break
5800 elif $ac_last_try; then
5801 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5802 else
5803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5804 fi
5805 done
5806
5807 # For the awk script, D is an array of macro values keyed by name,
5808 # likewise P contains macro parameters if any. Preserve backslash
5809 # newline sequences.
5810
5811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5812 sed -n '
5813 s/.\{148\}/&'"$ac_delim"'/g
5814 t rset
5815 :rset
5816 s/^[ ]*#[ ]*define[ ][ ]*/ /
5817 t def
5818 d
5819 :def
5820 s/\\$//
5821 t bsnl
5822 s/["\\]/\\&/g
5823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5824 D["\1"]=" \3"/p
5825 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5826 d
5827 :bsnl
5828 s/["\\]/\\&/g
5829 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5830 D["\1"]=" \3\\\\\\n"\\/p
5831 t cont
5832 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5833 t cont
5834 d
5835 :cont
5836 n
5837 s/.\{148\}/&'"$ac_delim"'/g
5838 t clear
5839 :clear
5840 s/\\$//
5841 t bsnlc
5842 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5843 d
5844 :bsnlc
5845 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5846 b cont
5847 ' <confdefs.h | sed '
5848 s/'"$ac_delim"'/"\\\
5849 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5850
5851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5852 for (key in D) D_is_set[key] = 1
5853 FS = "\a"
5854 }
5855 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5856 line = \$ 0
5857 split(line, arg, " ")
5858 if (arg[1] == "#") {
5859 defundef = arg[2]
5860 mac1 = arg[3]
5861 } else {
5862 defundef = substr(arg[1], 2)
5863 mac1 = arg[2]
5864 }
5865 split(mac1, mac2, "(") #)
5866 macro = mac2[1]
5867 prefix = substr(line, 1, index(line, defundef) - 1)
5868 if (D_is_set[macro]) {
5869 # Preserve the white space surrounding the "#".
5870 print prefix "define", macro P[macro] D[macro]
5871 next
5872 } else {
5873 # Replace #undef with comments. This is necessary, for example,
5874 # in the case of _POSIX_SOURCE, which is predefined and required
5875 # on some systems where configure will not decide to define it.
5876 if (defundef == "undef") {
5877 print "/*", prefix defundef, macro, "*/"
5878 next
5879 }
5880 }
5881 }
5882 { print }
5883 _ACAWK
5884 _ACEOF
5885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5886 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5887 fi # test -n "$CONFIG_HEADERS"
5888
5889
5890 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5891 shift
5892 for ac_tag
5893 do
5894 case $ac_tag in
5895 :[FHLC]) ac_mode=$ac_tag; continue;;
5896 esac
5897 case $ac_mode$ac_tag in
5898 :[FHL]*:*);;
5899 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5900 :[FH]-) ac_tag=-:-;;
5901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5902 esac
5903 ac_save_IFS=$IFS
5904 IFS=:
5905 set x $ac_tag
5906 IFS=$ac_save_IFS
5907 shift
5908 ac_file=$1
5909 shift
5910
5911 case $ac_mode in
5912 :L) ac_source=$1;;
5913 :[FH])
5914 ac_file_inputs=
5915 for ac_f
5916 do
5917 case $ac_f in
5918 -) ac_f="$ac_tmp/stdin";;
5919 *) # Look for the file first in the build tree, then in the source tree
5920 # (if the path is not absolute). The absolute path cannot be DOS-style,
5921 # because $ac_f cannot contain `:'.
5922 test -f "$ac_f" ||
5923 case $ac_f in
5924 [\\/$]*) false;;
5925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5926 esac ||
5927 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5928 esac
5929 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5930 as_fn_append ac_file_inputs " '$ac_f'"
5931 done
5932
5933 # Let's still pretend it is `configure' which instantiates (i.e., don't
5934 # use $as_me), people would be surprised to read:
5935 # /* config.h. Generated by config.status. */
5936 configure_input='Generated from '`
5937 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5938 `' by configure.'
5939 if test x"$ac_file" != x-; then
5940 configure_input="$ac_file. $configure_input"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5942 $as_echo "$as_me: creating $ac_file" >&6;}
5943 fi
5944 # Neutralize special characters interpreted by sed in replacement strings.
5945 case $configure_input in #(
5946 *\&* | *\|* | *\\* )
5947 ac_sed_conf_input=`$as_echo "$configure_input" |
5948 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5949 *) ac_sed_conf_input=$configure_input;;
5950 esac
5951
5952 case $ac_tag in
5953 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5955 esac
5956 ;;
5957 esac
5958
5959 ac_dir=`$as_dirname -- "$ac_file" ||
5960 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5961 X"$ac_file" : 'X\(//\)[^/]' \| \
5962 X"$ac_file" : 'X\(//\)$' \| \
5963 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5964 $as_echo X"$ac_file" |
5965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5966 s//\1/
5967 q
5968 }
5969 /^X\(\/\/\)[^/].*/{
5970 s//\1/
5971 q
5972 }
5973 /^X\(\/\/\)$/{
5974 s//\1/
5975 q
5976 }
5977 /^X\(\/\).*/{
5978 s//\1/
5979 q
5980 }
5981 s/.*/./; q'`
5982 as_dir="$ac_dir"; as_fn_mkdir_p
5983 ac_builddir=.
5984
5985 case "$ac_dir" in
5986 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5987 *)
5988 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5989 # A ".." for each directory in $ac_dir_suffix.
5990 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5991 case $ac_top_builddir_sub in
5992 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5993 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5994 esac ;;
5995 esac
5996 ac_abs_top_builddir=$ac_pwd
5997 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5998 # for backward compatibility:
5999 ac_top_builddir=$ac_top_build_prefix
6000
6001 case $srcdir in
6002 .) # We are building in place.
6003 ac_srcdir=.
6004 ac_top_srcdir=$ac_top_builddir_sub
6005 ac_abs_top_srcdir=$ac_pwd ;;
6006 [\\/]* | ?:[\\/]* ) # Absolute name.
6007 ac_srcdir=$srcdir$ac_dir_suffix;
6008 ac_top_srcdir=$srcdir
6009 ac_abs_top_srcdir=$srcdir ;;
6010 *) # Relative name.
6011 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6012 ac_top_srcdir=$ac_top_build_prefix$srcdir
6013 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6014 esac
6015 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6016
6017
6018 case $ac_mode in
6019 :F)
6020 #
6021 # CONFIG_FILE
6022 #
6023
6024 case $INSTALL in
6025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6026 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6027 esac
6028 _ACEOF
6029
6030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031 # If the template does not know about datarootdir, expand it.
6032 # FIXME: This hack should be removed a few years after 2.60.
6033 ac_datarootdir_hack=; ac_datarootdir_seen=
6034 ac_sed_dataroot='
6035 /datarootdir/ {
6036 p
6037 q
6038 }
6039 /@datadir@/p
6040 /@docdir@/p
6041 /@infodir@/p
6042 /@localedir@/p
6043 /@mandir@/p'
6044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6045 *datarootdir*) ac_datarootdir_seen=yes;;
6046 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6049 _ACEOF
6050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6051 ac_datarootdir_hack='
6052 s&@datadir@&$datadir&g
6053 s&@docdir@&$docdir&g
6054 s&@infodir@&$infodir&g
6055 s&@localedir@&$localedir&g
6056 s&@mandir@&$mandir&g
6057 s&\\\${datarootdir}&$datarootdir&g' ;;
6058 esac
6059 _ACEOF
6060
6061 # Neutralize VPATH when `$srcdir' = `.'.
6062 # Shell code in configure.ac might set extrasub.
6063 # FIXME: do we really want to maintain this feature?
6064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6065 ac_sed_extra="$ac_vpsub
6066 $extrasub
6067 _ACEOF
6068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6069 :t
6070 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6071 s|@configure_input@|$ac_sed_conf_input|;t t
6072 s&@top_builddir@&$ac_top_builddir_sub&;t t
6073 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6074 s&@srcdir@&$ac_srcdir&;t t
6075 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6076 s&@top_srcdir@&$ac_top_srcdir&;t t
6077 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6078 s&@builddir@&$ac_builddir&;t t
6079 s&@abs_builddir@&$ac_abs_builddir&;t t
6080 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6081 s&@INSTALL@&$ac_INSTALL&;t t
6082 $ac_datarootdir_hack
6083 "
6084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6085 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6086
6087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6090 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6092 which seems to be undefined. Please make sure it is defined" >&5
6093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6094 which seems to be undefined. Please make sure it is defined" >&2;}
6095
6096 rm -f "$ac_tmp/stdin"
6097 case $ac_file in
6098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6100 esac \
6101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6102 ;;
6103 :H)
6104 #
6105 # CONFIG_HEADER
6106 #
6107 if test x"$ac_file" != x-; then
6108 {
6109 $as_echo "/* $configure_input */" \
6110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6111 } >"$ac_tmp/config.h" \
6112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6113 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6116 else
6117 rm -f "$ac_file"
6118 mv "$ac_tmp/config.h" "$ac_file" \
6119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6120 fi
6121 else
6122 $as_echo "/* $configure_input */" \
6123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6124 || as_fn_error $? "could not create -" "$LINENO" 5
6125 fi
6126 ;;
6127
6128
6129 esac
6130
6131 done # for ac_tag
6132
6133
6134 as_fn_exit 0
6135 _ACEOF
6136 ac_clean_files=$ac_clean_files_save
6137
6138 test $ac_write_fail = 0 ||
6139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6140
6141
6142 # configure is writing to config.log, and then calls config.status.
6143 # config.status does its own redirection, appending to config.log.
6144 # Unfortunately, on DOS this fails, as config.log is still kept open
6145 # by configure, so config.status won't be able to write to it; its
6146 # output is simply discarded. So we exec the FD to /dev/null,
6147 # effectively closing config.log, so it can be properly (re)opened and
6148 # appended to by config.status. When coming back to configure, we
6149 # need to make the FD available again.
6150 if test "$no_create" != yes; then
6151 ac_cs_success=:
6152 ac_config_status_args=
6153 test "$silent" = yes &&
6154 ac_config_status_args="$ac_config_status_args --quiet"
6155 exec 5>/dev/null
6156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6157 exec 5>>config.log
6158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6159 # would make configure fail if this is the last instruction.
6160 $ac_cs_success || as_fn_exit 1
6161 fi
6162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6165 fi
6166