Update IPI test to work with new mechanism
[riscv-tests.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for riscv-tests 1.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 # Preserve -v and -x to the replacement shell.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 case $- in # ((((
223 *v*x* | *x*v* ) as_opts=-vx ;;
224 *v* ) as_opts=-v ;;
225 *x* ) as_opts=-x ;;
226 * ) as_opts= ;;
227 esac
228 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
229 fi
230
231 if test x$as_have_required = xno; then :
232 $as_echo "$0: This script requires a shell more modern than all"
233 $as_echo "$0: the shells that I found on your system."
234 if test x${ZSH_VERSION+set} = xset ; then
235 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
236 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 else
238 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
239 $0: including any error possibly output before this
240 $0: message. Then install a modern shell, or manually run
241 $0: the script under such a shell if you do have one."
242 fi
243 exit 1
244 fi
245 fi
246 fi
247 SHELL=${CONFIG_SHELL-/bin/sh}
248 export SHELL
249 # Unset more variables known to interfere with behavior of common tools.
250 CLICOLOR_FORCE= GREP_OPTIONS=
251 unset CLICOLOR_FORCE GREP_OPTIONS
252
253 ## --------------------- ##
254 ## M4sh Shell Functions. ##
255 ## --------------------- ##
256 # as_fn_unset VAR
257 # ---------------
258 # Portably unset VAR.
259 as_fn_unset ()
260 {
261 { eval $1=; unset $1;}
262 }
263 as_unset=as_fn_unset
264
265 # as_fn_set_status STATUS
266 # -----------------------
267 # Set $? to STATUS, without forking.
268 as_fn_set_status ()
269 {
270 return $1
271 } # as_fn_set_status
272
273 # as_fn_exit STATUS
274 # -----------------
275 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 as_fn_exit ()
277 {
278 set +e
279 as_fn_set_status $1
280 exit $1
281 } # as_fn_exit
282
283 # as_fn_mkdir_p
284 # -------------
285 # Create "$as_dir" as a directory, including parents if necessary.
286 as_fn_mkdir_p ()
287 {
288
289 case $as_dir in #(
290 -*) as_dir=./$as_dir;;
291 esac
292 test -d "$as_dir" || eval $as_mkdir_p || {
293 as_dirs=
294 while :; do
295 case $as_dir in #(
296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 *) as_qdir=$as_dir;;
298 esac
299 as_dirs="'$as_qdir' $as_dirs"
300 as_dir=`$as_dirname -- "$as_dir" ||
301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
302 X"$as_dir" : 'X\(//\)[^/]' \| \
303 X"$as_dir" : 'X\(//\)$' \| \
304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
305 $as_echo X"$as_dir" |
306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)[^/].*/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\).*/{
319 s//\1/
320 q
321 }
322 s/.*/./; q'`
323 test -d "$as_dir" && break
324 done
325 test -z "$as_dirs" || eval "mkdir $as_dirs"
326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327
328
329 } # as_fn_mkdir_p
330 # as_fn_append VAR VALUE
331 # ----------------------
332 # Append the text in VALUE to the end of the definition contained in VAR. Take
333 # advantage of any shell optimizations that allow amortized linear growth over
334 # repeated appends, instead of the typical quadratic growth present in naive
335 # implementations.
336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
337 eval 'as_fn_append ()
338 {
339 eval $1+=\$2
340 }'
341 else
342 as_fn_append ()
343 {
344 eval $1=\$$1\$2
345 }
346 fi # as_fn_append
347
348 # as_fn_arith ARG...
349 # ------------------
350 # Perform arithmetic evaluation on the ARGs, and store the result in the
351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
352 # must be portable across $(()) and expr.
353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 eval 'as_fn_arith ()
355 {
356 as_val=$(( $* ))
357 }'
358 else
359 as_fn_arith ()
360 {
361 as_val=`expr "$@" || test $? -eq 1`
362 }
363 fi # as_fn_arith
364
365
366 # as_fn_error STATUS ERROR [LINENO LOG_FD]
367 # ----------------------------------------
368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
370 # script with STATUS, using 1 if that was 0.
371 as_fn_error ()
372 {
373 as_status=$1; test $as_status -eq 0 && as_status=1
374 if test "$4"; then
375 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
377 fi
378 $as_echo "$as_me: error: $2" >&2
379 as_fn_exit $as_status
380 } # as_fn_error
381
382 if expr a : '\(a\)' >/dev/null 2>&1 &&
383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
384 as_expr=expr
385 else
386 as_expr=false
387 fi
388
389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 as_basename=basename
391 else
392 as_basename=false
393 fi
394
395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
396 as_dirname=dirname
397 else
398 as_dirname=false
399 fi
400
401 as_me=`$as_basename -- "$0" ||
402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
403 X"$0" : 'X\(//\)$' \| \
404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 $as_echo X/"$0" |
406 sed '/^.*\/\([^/][^/]*\)\/*$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\/\)$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\).*/{
415 s//\1/
416 q
417 }
418 s/.*/./; q'`
419
420 # Avoid depending upon Character Ranges.
421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
424 as_cr_digits='0123456789'
425 as_cr_alnum=$as_cr_Letters$as_cr_digits
426
427
428 as_lineno_1=$LINENO as_lineno_1a=$LINENO
429 as_lineno_2=$LINENO as_lineno_2a=$LINENO
430 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
431 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
433 sed -n '
434 p
435 /[$]LINENO/=
436 ' <$as_myself |
437 sed '
438 s/[$]LINENO.*/&-/
439 t lineno
440 b
441 :lineno
442 N
443 :loop
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 t loop
446 s/-\n.*//
447 ' >$as_me.lineno &&
448 chmod +x "$as_me.lineno" ||
449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
461 -n*)
462 case `echo 'xy\c'` in
463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 xy) ECHO_C='\c';;
465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 ECHO_T=' ';;
467 esac;;
468 *)
469 ECHO_N='-n';;
470 esac
471
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474 rm -f conf$$.dir/conf$$.file
475 else
476 rm -f conf$$.dir
477 mkdir conf$$.dir 2>/dev/null
478 fi
479 if (echo >conf$$.file) 2>/dev/null; then
480 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s='ln -s'
482 # ... but there are two gotchas:
483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485 # In both cases, we have to default to `cp -p'.
486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 as_ln_s='cp -p'
488 elif ln conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s=ln
490 else
491 as_ln_s='cp -p'
492 fi
493 else
494 as_ln_s='cp -p'
495 fi
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
498
499 if mkdir -p . 2>/dev/null; then
500 as_mkdir_p='mkdir -p "$as_dir"'
501 else
502 test -d ./-p && rmdir ./-p
503 as_mkdir_p=false
504 fi
505
506 if test -x / >/dev/null 2>&1; then
507 as_test_x='test -x'
508 else
509 if ls -dL / >/dev/null 2>&1; then
510 as_ls_L_option=L
511 else
512 as_ls_L_option=
513 fi
514 as_test_x='
515 eval sh -c '\''
516 if test -d "$1"; then
517 test -d "$1/.";
518 else
519 case $1 in #(
520 -*)set "./$1";;
521 esac;
522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523 ???[sx]*):;;*)false;;esac;fi
524 '\'' sh
525 '
526 fi
527 as_executable_p=$as_test_x
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536 test -n "$DJDIR" || exec 7<&0 </dev/null
537 exec 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='riscv-tests'
558 PACKAGE_TARNAME='riscv-tests'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='riscv-tests 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_subst_vars='LTLIBOBJS
565 LIBOBJS
566 OBJEXT
567 EXEEXT
568 ac_ct_CC
569 CPPFLAGS
570 LDFLAGS
571 CFLAGS
572 CC
573 target_alias
574 host_alias
575 build_alias
576 LIBS
577 ECHO_T
578 ECHO_N
579 ECHO_C
580 DEFS
581 mandir
582 localedir
583 libdir
584 psdir
585 pdfdir
586 dvidir
587 htmldir
588 infodir
589 docdir
590 oldincludedir
591 includedir
592 localstatedir
593 sharedstatedir
594 sysconfdir
595 datadir
596 datarootdir
597 libexecdir
598 sbindir
599 bindir
600 program_transform_name
601 prefix
602 exec_prefix
603 PACKAGE_URL
604 PACKAGE_BUGREPORT
605 PACKAGE_STRING
606 PACKAGE_VERSION
607 PACKAGE_TARNAME
608 PACKAGE_NAME
609 PATH_SEPARATOR
610 SHELL'
611 ac_subst_files=''
612 ac_user_opts='
613 enable_option_checking
614 '
615 ac_precious_vars='build_alias
616 host_alias
617 target_alias
618 CC
619 CFLAGS
620 LDFLAGS
621 LIBS
622 CPPFLAGS'
623
624
625 # Initialize some variables set by options.
626 ac_init_help=
627 ac_init_version=false
628 ac_unrecognized_opts=
629 ac_unrecognized_sep=
630 # The variables have the same names as the options, with
631 # dashes changed to underlines.
632 cache_file=/dev/null
633 exec_prefix=NONE
634 no_create=
635 no_recursion=
636 prefix=NONE
637 program_prefix=NONE
638 program_suffix=NONE
639 program_transform_name=s,x,x,
640 silent=
641 site=
642 srcdir=
643 verbose=
644 x_includes=NONE
645 x_libraries=NONE
646
647 # Installation directory options.
648 # These are left unexpanded so users can "make install exec_prefix=/foo"
649 # and all the variables that are supposed to be based on exec_prefix
650 # by default will actually change.
651 # Use braces instead of parens because sh, perl, etc. also accept them.
652 # (The list follows the same order as the GNU Coding Standards.)
653 bindir='${exec_prefix}/bin'
654 sbindir='${exec_prefix}/sbin'
655 libexecdir='${exec_prefix}/libexec'
656 datarootdir='${prefix}/share'
657 datadir='${datarootdir}'
658 sysconfdir='${prefix}/etc'
659 sharedstatedir='${prefix}/com'
660 localstatedir='${prefix}/var'
661 includedir='${prefix}/include'
662 oldincludedir='/usr/include'
663 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
664 infodir='${datarootdir}/info'
665 htmldir='${docdir}'
666 dvidir='${docdir}'
667 pdfdir='${docdir}'
668 psdir='${docdir}'
669 libdir='${exec_prefix}/lib'
670 localedir='${datarootdir}/locale'
671 mandir='${datarootdir}/man'
672
673 ac_prev=
674 ac_dashdash=
675 for ac_option
676 do
677 # If the previous option needs an argument, assign it.
678 if test -n "$ac_prev"; then
679 eval $ac_prev=\$ac_option
680 ac_prev=
681 continue
682 fi
683
684 case $ac_option in
685 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
686 *=) ac_optarg= ;;
687 *) ac_optarg=yes ;;
688 esac
689
690 # Accept the important Cygnus configure options, so we can diagnose typos.
691
692 case $ac_dashdash$ac_option in
693 --)
694 ac_dashdash=yes ;;
695
696 -bindir | --bindir | --bindi | --bind | --bin | --bi)
697 ac_prev=bindir ;;
698 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
699 bindir=$ac_optarg ;;
700
701 -build | --build | --buil | --bui | --bu)
702 ac_prev=build_alias ;;
703 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
704 build_alias=$ac_optarg ;;
705
706 -cache-file | --cache-file | --cache-fil | --cache-fi \
707 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
708 ac_prev=cache_file ;;
709 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
710 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
711 cache_file=$ac_optarg ;;
712
713 --config-cache | -C)
714 cache_file=config.cache ;;
715
716 -datadir | --datadir | --datadi | --datad)
717 ac_prev=datadir ;;
718 -datadir=* | --datadir=* | --datadi=* | --datad=*)
719 datadir=$ac_optarg ;;
720
721 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
722 | --dataroo | --dataro | --datar)
723 ac_prev=datarootdir ;;
724 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
725 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
726 datarootdir=$ac_optarg ;;
727
728 -disable-* | --disable-*)
729 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
730 # Reject names that are not valid shell variable names.
731 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
732 as_fn_error $? "invalid feature name: $ac_useropt"
733 ac_useropt_orig=$ac_useropt
734 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
735 case $ac_user_opts in
736 *"
737 "enable_$ac_useropt"
738 "*) ;;
739 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
740 ac_unrecognized_sep=', ';;
741 esac
742 eval enable_$ac_useropt=no ;;
743
744 -docdir | --docdir | --docdi | --doc | --do)
745 ac_prev=docdir ;;
746 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
747 docdir=$ac_optarg ;;
748
749 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
750 ac_prev=dvidir ;;
751 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
752 dvidir=$ac_optarg ;;
753
754 -enable-* | --enable-*)
755 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
758 as_fn_error $? "invalid feature name: $ac_useropt"
759 ac_useropt_orig=$ac_useropt
760 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
761 case $ac_user_opts in
762 *"
763 "enable_$ac_useropt"
764 "*) ;;
765 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
766 ac_unrecognized_sep=', ';;
767 esac
768 eval enable_$ac_useropt=\$ac_optarg ;;
769
770 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
771 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
772 | --exec | --exe | --ex)
773 ac_prev=exec_prefix ;;
774 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
775 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
776 | --exec=* | --exe=* | --ex=*)
777 exec_prefix=$ac_optarg ;;
778
779 -gas | --gas | --ga | --g)
780 # Obsolete; use --with-gas.
781 with_gas=yes ;;
782
783 -help | --help | --hel | --he | -h)
784 ac_init_help=long ;;
785 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
786 ac_init_help=recursive ;;
787 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
788 ac_init_help=short ;;
789
790 -host | --host | --hos | --ho)
791 ac_prev=host_alias ;;
792 -host=* | --host=* | --hos=* | --ho=*)
793 host_alias=$ac_optarg ;;
794
795 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
796 ac_prev=htmldir ;;
797 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
798 | --ht=*)
799 htmldir=$ac_optarg ;;
800
801 -includedir | --includedir | --includedi | --included | --include \
802 | --includ | --inclu | --incl | --inc)
803 ac_prev=includedir ;;
804 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
805 | --includ=* | --inclu=* | --incl=* | --inc=*)
806 includedir=$ac_optarg ;;
807
808 -infodir | --infodir | --infodi | --infod | --info | --inf)
809 ac_prev=infodir ;;
810 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
811 infodir=$ac_optarg ;;
812
813 -libdir | --libdir | --libdi | --libd)
814 ac_prev=libdir ;;
815 -libdir=* | --libdir=* | --libdi=* | --libd=*)
816 libdir=$ac_optarg ;;
817
818 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
819 | --libexe | --libex | --libe)
820 ac_prev=libexecdir ;;
821 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
822 | --libexe=* | --libex=* | --libe=*)
823 libexecdir=$ac_optarg ;;
824
825 -localedir | --localedir | --localedi | --localed | --locale)
826 ac_prev=localedir ;;
827 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
828 localedir=$ac_optarg ;;
829
830 -localstatedir | --localstatedir | --localstatedi | --localstated \
831 | --localstate | --localstat | --localsta | --localst | --locals)
832 ac_prev=localstatedir ;;
833 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
834 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
835 localstatedir=$ac_optarg ;;
836
837 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
838 ac_prev=mandir ;;
839 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
840 mandir=$ac_optarg ;;
841
842 -nfp | --nfp | --nf)
843 # Obsolete; use --without-fp.
844 with_fp=no ;;
845
846 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
847 | --no-cr | --no-c | -n)
848 no_create=yes ;;
849
850 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
851 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
852 no_recursion=yes ;;
853
854 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
855 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
856 | --oldin | --oldi | --old | --ol | --o)
857 ac_prev=oldincludedir ;;
858 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
859 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
860 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
861 oldincludedir=$ac_optarg ;;
862
863 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
864 ac_prev=prefix ;;
865 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
866 prefix=$ac_optarg ;;
867
868 -program-prefix | --program-prefix | --program-prefi | --program-pref \
869 | --program-pre | --program-pr | --program-p)
870 ac_prev=program_prefix ;;
871 -program-prefix=* | --program-prefix=* | --program-prefi=* \
872 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
873 program_prefix=$ac_optarg ;;
874
875 -program-suffix | --program-suffix | --program-suffi | --program-suff \
876 | --program-suf | --program-su | --program-s)
877 ac_prev=program_suffix ;;
878 -program-suffix=* | --program-suffix=* | --program-suffi=* \
879 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
880 program_suffix=$ac_optarg ;;
881
882 -program-transform-name | --program-transform-name \
883 | --program-transform-nam | --program-transform-na \
884 | --program-transform-n | --program-transform- \
885 | --program-transform | --program-transfor \
886 | --program-transfo | --program-transf \
887 | --program-trans | --program-tran \
888 | --progr-tra | --program-tr | --program-t)
889 ac_prev=program_transform_name ;;
890 -program-transform-name=* | --program-transform-name=* \
891 | --program-transform-nam=* | --program-transform-na=* \
892 | --program-transform-n=* | --program-transform-=* \
893 | --program-transform=* | --program-transfor=* \
894 | --program-transfo=* | --program-transf=* \
895 | --program-trans=* | --program-tran=* \
896 | --progr-tra=* | --program-tr=* | --program-t=*)
897 program_transform_name=$ac_optarg ;;
898
899 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
900 ac_prev=pdfdir ;;
901 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
902 pdfdir=$ac_optarg ;;
903
904 -psdir | --psdir | --psdi | --psd | --ps)
905 ac_prev=psdir ;;
906 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
907 psdir=$ac_optarg ;;
908
909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
910 | -silent | --silent | --silen | --sile | --sil)
911 silent=yes ;;
912
913 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
914 ac_prev=sbindir ;;
915 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
916 | --sbi=* | --sb=*)
917 sbindir=$ac_optarg ;;
918
919 -sharedstatedir | --sharedstatedir | --sharedstatedi \
920 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
921 | --sharedst | --shareds | --shared | --share | --shar \
922 | --sha | --sh)
923 ac_prev=sharedstatedir ;;
924 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
925 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
926 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
927 | --sha=* | --sh=*)
928 sharedstatedir=$ac_optarg ;;
929
930 -site | --site | --sit)
931 ac_prev=site ;;
932 -site=* | --site=* | --sit=*)
933 site=$ac_optarg ;;
934
935 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
936 ac_prev=srcdir ;;
937 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
938 srcdir=$ac_optarg ;;
939
940 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
941 | --syscon | --sysco | --sysc | --sys | --sy)
942 ac_prev=sysconfdir ;;
943 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
944 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
945 sysconfdir=$ac_optarg ;;
946
947 -target | --target | --targe | --targ | --tar | --ta | --t)
948 ac_prev=target_alias ;;
949 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
950 target_alias=$ac_optarg ;;
951
952 -v | -verbose | --verbose | --verbos | --verbo | --verb)
953 verbose=yes ;;
954
955 -version | --version | --versio | --versi | --vers | -V)
956 ac_init_version=: ;;
957
958 -with-* | --with-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid package name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "with_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval with_$ac_useropt=\$ac_optarg ;;
973
974 -without-* | --without-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid package name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "with_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval with_$ac_useropt=no ;;
989
990 --x)
991 # Obsolete; use --with-x.
992 with_x=yes ;;
993
994 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
995 | --x-incl | --x-inc | --x-in | --x-i)
996 ac_prev=x_includes ;;
997 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
998 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
999 x_includes=$ac_optarg ;;
1000
1001 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1002 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1003 ac_prev=x_libraries ;;
1004 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1005 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1006 x_libraries=$ac_optarg ;;
1007
1008 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1009 Try \`$0 --help' for more information"
1010 ;;
1011
1012 *=*)
1013 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1014 # Reject names that are not valid shell variable names.
1015 case $ac_envvar in #(
1016 '' | [0-9]* | *[!_$as_cr_alnum]* )
1017 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1018 esac
1019 eval $ac_envvar=\$ac_optarg
1020 export $ac_envvar ;;
1021
1022 *)
1023 # FIXME: should be removed in autoconf 3.0.
1024 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1025 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1027 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1028 ;;
1029
1030 esac
1031 done
1032
1033 if test -n "$ac_prev"; then
1034 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1035 as_fn_error $? "missing argument to $ac_option"
1036 fi
1037
1038 if test -n "$ac_unrecognized_opts"; then
1039 case $enable_option_checking in
1040 no) ;;
1041 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1042 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1043 esac
1044 fi
1045
1046 # Check all directory arguments for consistency.
1047 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1048 datadir sysconfdir sharedstatedir localstatedir includedir \
1049 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1050 libdir localedir mandir
1051 do
1052 eval ac_val=\$$ac_var
1053 # Remove trailing slashes.
1054 case $ac_val in
1055 */ )
1056 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1057 eval $ac_var=\$ac_val;;
1058 esac
1059 # Be sure to have absolute directory names.
1060 case $ac_val in
1061 [\\/$]* | ?:[\\/]* ) continue;;
1062 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1063 esac
1064 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1065 done
1066
1067 # There might be people who depend on the old broken behavior: `$host'
1068 # used to hold the argument of --host etc.
1069 # FIXME: To remove some day.
1070 build=$build_alias
1071 host=$host_alias
1072 target=$target_alias
1073
1074 # FIXME: To remove some day.
1075 if test "x$host_alias" != x; then
1076 if test "x$build_alias" = x; then
1077 cross_compiling=maybe
1078 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1079 If a cross compiler is detected then cross compile mode will be used" >&2
1080 elif test "x$build_alias" != "x$host_alias"; then
1081 cross_compiling=yes
1082 fi
1083 fi
1084
1085 ac_tool_prefix=
1086 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1087
1088 test "$silent" = yes && exec 6>/dev/null
1089
1090
1091 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1092 ac_ls_di=`ls -di .` &&
1093 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1094 as_fn_error $? "working directory cannot be determined"
1095 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1096 as_fn_error $? "pwd does not report name of working directory"
1097
1098
1099 # Find the source files, if location was not specified.
1100 if test -z "$srcdir"; then
1101 ac_srcdir_defaulted=yes
1102 # Try the directory containing this script, then the parent directory.
1103 ac_confdir=`$as_dirname -- "$as_myself" ||
1104 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1105 X"$as_myself" : 'X\(//\)[^/]' \| \
1106 X"$as_myself" : 'X\(//\)$' \| \
1107 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1108 $as_echo X"$as_myself" |
1109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1110 s//\1/
1111 q
1112 }
1113 /^X\(\/\/\)[^/].*/{
1114 s//\1/
1115 q
1116 }
1117 /^X\(\/\/\)$/{
1118 s//\1/
1119 q
1120 }
1121 /^X\(\/\).*/{
1122 s//\1/
1123 q
1124 }
1125 s/.*/./; q'`
1126 srcdir=$ac_confdir
1127 if test ! -r "$srcdir/$ac_unique_file"; then
1128 srcdir=..
1129 fi
1130 else
1131 ac_srcdir_defaulted=no
1132 fi
1133 if test ! -r "$srcdir/$ac_unique_file"; then
1134 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1135 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1136 fi
1137 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1138 ac_abs_confdir=`(
1139 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1140 pwd)`
1141 # When building in place, set srcdir=.
1142 if test "$ac_abs_confdir" = "$ac_pwd"; then
1143 srcdir=.
1144 fi
1145 # Remove unnecessary trailing slashes from srcdir.
1146 # Double slashes in file names in object file debugging info
1147 # mess up M-x gdb in Emacs.
1148 case $srcdir in
1149 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1150 esac
1151 for ac_var in $ac_precious_vars; do
1152 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1153 eval ac_env_${ac_var}_value=\$${ac_var}
1154 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1155 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1156 done
1157
1158 #
1159 # Report the --help message.
1160 #
1161 if test "$ac_init_help" = "long"; then
1162 # Omit some internal or obsolete options to make the list less imposing.
1163 # This message is too long to be a string in the A/UX 3.1 sh.
1164 cat <<_ACEOF
1165 \`configure' configures riscv-tests 1.0 to adapt to many kinds of systems.
1166
1167 Usage: $0 [OPTION]... [VAR=VALUE]...
1168
1169 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1170 VAR=VALUE. See below for descriptions of some of the useful variables.
1171
1172 Defaults for the options are specified in brackets.
1173
1174 Configuration:
1175 -h, --help display this help and exit
1176 --help=short display options specific to this package
1177 --help=recursive display the short help of all the included packages
1178 -V, --version display version information and exit
1179 -q, --quiet, --silent do not print \`checking ...' messages
1180 --cache-file=FILE cache test results in FILE [disabled]
1181 -C, --config-cache alias for \`--cache-file=config.cache'
1182 -n, --no-create do not create output files
1183 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1184
1185 Installation directories:
1186 --prefix=PREFIX install architecture-independent files in PREFIX
1187 [$ac_default_prefix]
1188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1189 [PREFIX]
1190
1191 By default, \`make install' will install all the files in
1192 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1193 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1194 for instance \`--prefix=\$HOME'.
1195
1196 For better control, use the options below.
1197
1198 Fine tuning of the installation directories:
1199 --bindir=DIR user executables [EPREFIX/bin]
1200 --sbindir=DIR system admin executables [EPREFIX/sbin]
1201 --libexecdir=DIR program executables [EPREFIX/libexec]
1202 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1203 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1204 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1205 --libdir=DIR object code libraries [EPREFIX/lib]
1206 --includedir=DIR C header files [PREFIX/include]
1207 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1208 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1209 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1210 --infodir=DIR info documentation [DATAROOTDIR/info]
1211 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1212 --mandir=DIR man documentation [DATAROOTDIR/man]
1213 --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-tests]
1214 --htmldir=DIR html documentation [DOCDIR]
1215 --dvidir=DIR dvi documentation [DOCDIR]
1216 --pdfdir=DIR pdf documentation [DOCDIR]
1217 --psdir=DIR ps documentation [DOCDIR]
1218 _ACEOF
1219
1220 cat <<\_ACEOF
1221 _ACEOF
1222 fi
1223
1224 if test -n "$ac_init_help"; then
1225 case $ac_init_help in
1226 short | recursive ) echo "Configuration of riscv-tests 1.0:";;
1227 esac
1228 cat <<\_ACEOF
1229
1230 Some influential environment variables:
1231 CC C compiler command
1232 CFLAGS C compiler flags
1233 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1234 nonstandard directory <lib dir>
1235 LIBS libraries to pass to the linker, e.g. -l<library>
1236 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1237 you have headers in a nonstandard directory <include dir>
1238
1239 Use these variables to override the choices made by `configure' or to help
1240 it to find libraries and programs with nonstandard names/locations.
1241
1242 Report bugs to the package provider.
1243 _ACEOF
1244 ac_status=$?
1245 fi
1246
1247 if test "$ac_init_help" = "recursive"; then
1248 # If there are subdirs, report their specific --help.
1249 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1250 test -d "$ac_dir" ||
1251 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1252 continue
1253 ac_builddir=.
1254
1255 case "$ac_dir" in
1256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1257 *)
1258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1259 # A ".." for each directory in $ac_dir_suffix.
1260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1261 case $ac_top_builddir_sub in
1262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1264 esac ;;
1265 esac
1266 ac_abs_top_builddir=$ac_pwd
1267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1268 # for backward compatibility:
1269 ac_top_builddir=$ac_top_build_prefix
1270
1271 case $srcdir in
1272 .) # We are building in place.
1273 ac_srcdir=.
1274 ac_top_srcdir=$ac_top_builddir_sub
1275 ac_abs_top_srcdir=$ac_pwd ;;
1276 [\\/]* | ?:[\\/]* ) # Absolute name.
1277 ac_srcdir=$srcdir$ac_dir_suffix;
1278 ac_top_srcdir=$srcdir
1279 ac_abs_top_srcdir=$srcdir ;;
1280 *) # Relative name.
1281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1282 ac_top_srcdir=$ac_top_build_prefix$srcdir
1283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1284 esac
1285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1286
1287 cd "$ac_dir" || { ac_status=$?; continue; }
1288 # Check for guested configure.
1289 if test -f "$ac_srcdir/configure.gnu"; then
1290 echo &&
1291 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1292 elif test -f "$ac_srcdir/configure"; then
1293 echo &&
1294 $SHELL "$ac_srcdir/configure" --help=recursive
1295 else
1296 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297 fi || ac_status=$?
1298 cd "$ac_pwd" || { ac_status=$?; break; }
1299 done
1300 fi
1301
1302 test -n "$ac_init_help" && exit $ac_status
1303 if $ac_init_version; then
1304 cat <<\_ACEOF
1305 riscv-tests configure 1.0
1306 generated by GNU Autoconf 2.68
1307
1308 Copyright (C) 2010 Free Software Foundation, Inc.
1309 This configure script is free software; the Free Software Foundation
1310 gives unlimited permission to copy, distribute and modify it.
1311 _ACEOF
1312 exit
1313 fi
1314
1315 ## ------------------------ ##
1316 ## Autoconf initialization. ##
1317 ## ------------------------ ##
1318
1319 # ac_fn_c_try_compile LINENO
1320 # --------------------------
1321 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1322 ac_fn_c_try_compile ()
1323 {
1324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1325 rm -f conftest.$ac_objext
1326 if { { ac_try="$ac_compile"
1327 case "(($ac_try" in
1328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1329 *) ac_try_echo=$ac_try;;
1330 esac
1331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1332 $as_echo "$ac_try_echo"; } >&5
1333 (eval "$ac_compile") 2>conftest.err
1334 ac_status=$?
1335 if test -s conftest.err; then
1336 grep -v '^ *+' conftest.err >conftest.er1
1337 cat conftest.er1 >&5
1338 mv -f conftest.er1 conftest.err
1339 fi
1340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1341 test $ac_status = 0; } && {
1342 test -z "$ac_c_werror_flag" ||
1343 test ! -s conftest.err
1344 } && test -s conftest.$ac_objext; then :
1345 ac_retval=0
1346 else
1347 $as_echo "$as_me: failed program was:" >&5
1348 sed 's/^/| /' conftest.$ac_ext >&5
1349
1350 ac_retval=1
1351 fi
1352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1353 as_fn_set_status $ac_retval
1354
1355 } # ac_fn_c_try_compile
1356 cat >config.log <<_ACEOF
1357 This file contains any messages produced by compilers while
1358 running configure, to aid debugging if configure makes a mistake.
1359
1360 It was created by riscv-tests $as_me 1.0, which was
1361 generated by GNU Autoconf 2.68. Invocation command line was
1362
1363 $ $0 $@
1364
1365 _ACEOF
1366 exec 5>>config.log
1367 {
1368 cat <<_ASUNAME
1369 ## --------- ##
1370 ## Platform. ##
1371 ## --------- ##
1372
1373 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1374 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1375 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1376 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1377 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1378
1379 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1380 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1381
1382 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1383 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1384 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1385 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1386 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1387 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1388 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1389
1390 _ASUNAME
1391
1392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1394 do
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 $as_echo "PATH: $as_dir"
1398 done
1399 IFS=$as_save_IFS
1400
1401 } >&5
1402
1403 cat >&5 <<_ACEOF
1404
1405
1406 ## ----------- ##
1407 ## Core tests. ##
1408 ## ----------- ##
1409
1410 _ACEOF
1411
1412
1413 # Keep a trace of the command line.
1414 # Strip out --no-create and --no-recursion so they do not pile up.
1415 # Strip out --silent because we don't want to record it for future runs.
1416 # Also quote any args containing shell meta-characters.
1417 # Make two passes to allow for proper duplicate-argument suppression.
1418 ac_configure_args=
1419 ac_configure_args0=
1420 ac_configure_args1=
1421 ac_must_keep_next=false
1422 for ac_pass in 1 2
1423 do
1424 for ac_arg
1425 do
1426 case $ac_arg in
1427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1429 | -silent | --silent | --silen | --sile | --sil)
1430 continue ;;
1431 *\'*)
1432 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1433 esac
1434 case $ac_pass in
1435 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1436 2)
1437 as_fn_append ac_configure_args1 " '$ac_arg'"
1438 if test $ac_must_keep_next = true; then
1439 ac_must_keep_next=false # Got value, back to normal.
1440 else
1441 case $ac_arg in
1442 *=* | --config-cache | -C | -disable-* | --disable-* \
1443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1445 | -with-* | --with-* | -without-* | --without-* | --x)
1446 case "$ac_configure_args0 " in
1447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1448 esac
1449 ;;
1450 -* ) ac_must_keep_next=true ;;
1451 esac
1452 fi
1453 as_fn_append ac_configure_args " '$ac_arg'"
1454 ;;
1455 esac
1456 done
1457 done
1458 { ac_configure_args0=; unset ac_configure_args0;}
1459 { ac_configure_args1=; unset ac_configure_args1;}
1460
1461 # When interrupted or exit'd, cleanup temporary files, and complete
1462 # config.log. We remove comments because anyway the quotes in there
1463 # would cause problems or look ugly.
1464 # WARNING: Use '\'' to represent an apostrophe within the trap.
1465 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1466 trap 'exit_status=$?
1467 # Save into config.log some information that might help in debugging.
1468 {
1469 echo
1470
1471 $as_echo "## ---------------- ##
1472 ## Cache variables. ##
1473 ## ---------------- ##"
1474 echo
1475 # The following way of writing the cache mishandles newlines in values,
1476 (
1477 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1478 eval ac_val=\$$ac_var
1479 case $ac_val in #(
1480 *${as_nl}*)
1481 case $ac_var in #(
1482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1484 esac
1485 case $ac_var in #(
1486 _ | IFS | as_nl) ;; #(
1487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1488 *) { eval $ac_var=; unset $ac_var;} ;;
1489 esac ;;
1490 esac
1491 done
1492 (set) 2>&1 |
1493 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1494 *${as_nl}ac_space=\ *)
1495 sed -n \
1496 "s/'\''/'\''\\\\'\'''\''/g;
1497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1498 ;; #(
1499 *)
1500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1501 ;;
1502 esac |
1503 sort
1504 )
1505 echo
1506
1507 $as_echo "## ----------------- ##
1508 ## Output variables. ##
1509 ## ----------------- ##"
1510 echo
1511 for ac_var in $ac_subst_vars
1512 do
1513 eval ac_val=\$$ac_var
1514 case $ac_val in
1515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1516 esac
1517 $as_echo "$ac_var='\''$ac_val'\''"
1518 done | sort
1519 echo
1520
1521 if test -n "$ac_subst_files"; then
1522 $as_echo "## ------------------- ##
1523 ## File substitutions. ##
1524 ## ------------------- ##"
1525 echo
1526 for ac_var in $ac_subst_files
1527 do
1528 eval ac_val=\$$ac_var
1529 case $ac_val in
1530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1531 esac
1532 $as_echo "$ac_var='\''$ac_val'\''"
1533 done | sort
1534 echo
1535 fi
1536
1537 if test -s confdefs.h; then
1538 $as_echo "## ----------- ##
1539 ## confdefs.h. ##
1540 ## ----------- ##"
1541 echo
1542 cat confdefs.h
1543 echo
1544 fi
1545 test "$ac_signal" != 0 &&
1546 $as_echo "$as_me: caught signal $ac_signal"
1547 $as_echo "$as_me: exit $exit_status"
1548 } >&5
1549 rm -f core *.core core.conftest.* &&
1550 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1551 exit $exit_status
1552 ' 0
1553 for ac_signal in 1 2 13 15; do
1554 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1555 done
1556 ac_signal=0
1557
1558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1559 rm -f -r conftest* confdefs.h
1560
1561 $as_echo "/* confdefs.h */" > confdefs.h
1562
1563 # Predefined preprocessor variables.
1564
1565 cat >>confdefs.h <<_ACEOF
1566 #define PACKAGE_NAME "$PACKAGE_NAME"
1567 _ACEOF
1568
1569 cat >>confdefs.h <<_ACEOF
1570 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1571 _ACEOF
1572
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1575 _ACEOF
1576
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_STRING "$PACKAGE_STRING"
1579 _ACEOF
1580
1581 cat >>confdefs.h <<_ACEOF
1582 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1583 _ACEOF
1584
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_URL "$PACKAGE_URL"
1587 _ACEOF
1588
1589
1590 # Let the site file select an alternate cache file if it wants to.
1591 # Prefer an explicitly selected file to automatically selected ones.
1592 ac_site_file1=NONE
1593 ac_site_file2=NONE
1594 if test -n "$CONFIG_SITE"; then
1595 # We do not want a PATH search for config.site.
1596 case $CONFIG_SITE in #((
1597 -*) ac_site_file1=./$CONFIG_SITE;;
1598 */*) ac_site_file1=$CONFIG_SITE;;
1599 *) ac_site_file1=./$CONFIG_SITE;;
1600 esac
1601 elif test "x$prefix" != xNONE; then
1602 ac_site_file1=$prefix/share/config.site
1603 ac_site_file2=$prefix/etc/config.site
1604 else
1605 ac_site_file1=$ac_default_prefix/share/config.site
1606 ac_site_file2=$ac_default_prefix/etc/config.site
1607 fi
1608 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1609 do
1610 test "x$ac_site_file" = xNONE && continue
1611 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1613 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1614 sed 's/^/| /' "$ac_site_file" >&5
1615 . "$ac_site_file" \
1616 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1618 as_fn_error $? "failed to load site script $ac_site_file
1619 See \`config.log' for more details" "$LINENO" 5; }
1620 fi
1621 done
1622
1623 if test -r "$cache_file"; then
1624 # Some versions of bash will fail to source /dev/null (special files
1625 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1626 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1628 $as_echo "$as_me: loading cache $cache_file" >&6;}
1629 case $cache_file in
1630 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1631 *) . "./$cache_file";;
1632 esac
1633 fi
1634 else
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1636 $as_echo "$as_me: creating cache $cache_file" >&6;}
1637 >$cache_file
1638 fi
1639
1640 # Check that the precious variables saved in the cache have kept the same
1641 # value.
1642 ac_cache_corrupted=false
1643 for ac_var in $ac_precious_vars; do
1644 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1645 eval ac_new_set=\$ac_env_${ac_var}_set
1646 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1647 eval ac_new_val=\$ac_env_${ac_var}_value
1648 case $ac_old_set,$ac_new_set in
1649 set,)
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1651 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1652 ac_cache_corrupted=: ;;
1653 ,set)
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1655 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1656 ac_cache_corrupted=: ;;
1657 ,);;
1658 *)
1659 if test "x$ac_old_val" != "x$ac_new_val"; then
1660 # differences in whitespace do not lead to failure.
1661 ac_old_val_w=`echo x $ac_old_val`
1662 ac_new_val_w=`echo x $ac_new_val`
1663 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1665 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1666 ac_cache_corrupted=:
1667 else
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1669 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1670 eval $ac_var=\$ac_old_val
1671 fi
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1673 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1675 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1676 fi;;
1677 esac
1678 # Pass precious variables to config.status.
1679 if test "$ac_new_set" = set; then
1680 case $ac_new_val in
1681 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1682 *) ac_arg=$ac_var=$ac_new_val ;;
1683 esac
1684 case " $ac_configure_args " in
1685 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1686 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1687 esac
1688 fi
1689 done
1690 if $ac_cache_corrupted; then
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1694 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1695 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1696 fi
1697 ## -------------------- ##
1698 ## Main body of script. ##
1699 ## -------------------- ##
1700
1701 ac_ext=c
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1706
1707
1708
1709 cross_compiling=yes
1710 ac_ext=c
1711 ac_cpp='$CPP $CPPFLAGS'
1712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1715 if test -n "$ac_tool_prefix"; then
1716 for ac_prog in riscv64-unknown-elf-gcc
1717 do
1718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1721 $as_echo_n "checking for $ac_word... " >&6; }
1722 if ${ac_cv_prog_CC+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 if test -n "$CC"; then
1726 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739 done
1740 done
1741 IFS=$as_save_IFS
1742
1743 fi
1744 fi
1745 CC=$ac_cv_prog_CC
1746 if test -n "$CC"; then
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1748 $as_echo "$CC" >&6; }
1749 else
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1751 $as_echo "no" >&6; }
1752 fi
1753
1754
1755 test -n "$CC" && break
1756 done
1757 fi
1758 if test -z "$CC"; then
1759 ac_ct_CC=$CC
1760 for ac_prog in riscv64-unknown-elf-gcc
1761 do
1762 # Extract the first word of "$ac_prog", so it can be a program name with args.
1763 set dummy $ac_prog; ac_word=$2
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1765 $as_echo_n "checking for $ac_word... " >&6; }
1766 if ${ac_cv_prog_ac_ct_CC+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 if test -n "$ac_ct_CC"; then
1770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1779 ac_cv_prog_ac_ct_CC="$ac_prog"
1780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1782 fi
1783 done
1784 done
1785 IFS=$as_save_IFS
1786
1787 fi
1788 fi
1789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1790 if test -n "$ac_ct_CC"; then
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1792 $as_echo "$ac_ct_CC" >&6; }
1793 else
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1795 $as_echo "no" >&6; }
1796 fi
1797
1798
1799 test -n "$ac_ct_CC" && break
1800 done
1801
1802 if test "x$ac_ct_CC" = x; then
1803 CC=""
1804 else
1805 case $cross_compiling:$ac_tool_warned in
1806 yes:)
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1809 ac_tool_warned=yes ;;
1810 esac
1811 CC=$ac_ct_CC
1812 fi
1813 fi
1814
1815
1816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818 as_fn_error $? "no acceptable C compiler found in \$PATH
1819 See \`config.log' for more details" "$LINENO" 5; }
1820
1821 # Provide some information about the compiler.
1822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1823 set X $ac_compile
1824 ac_compiler=$2
1825 for ac_option in --version -v -V -qversion; do
1826 { { ac_try="$ac_compiler $ac_option >&5"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 sed '10a\
1837 ... rest of stderr output deleted ...
1838 10q' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 fi
1841 rm -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }
1844 done
1845
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848
1849 int
1850 main ()
1851 {
1852
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 ac_clean_files_save=$ac_clean_files
1858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1859 # Try to create an executable without -o first, disregard a.out.
1860 # It will help us diagnose broken compilers, and finding out an intuition
1861 # of exeext.
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
1863 $as_echo_n "checking whether the C compiler works... " >&6; }
1864 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1865
1866 # The possible output files:
1867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1868
1869 ac_rmfiles=
1870 for ac_file in $ac_files
1871 do
1872 case $ac_file in
1873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1875 esac
1876 done
1877 rm -f $ac_rmfiles
1878
1879 if { { ac_try="$ac_link_default"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link_default") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; then :
1890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
1893 # so that the user can short-circuit this test for compilers unknown to
1894 # Autoconf.
1895 for ac_file in $ac_files ''
1896 do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1900 ;;
1901 [ab].out )
1902 # We found the default executable, but exeext='' is most
1903 # certainly right.
1904 break;;
1905 *.* )
1906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1907 then :; else
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 fi
1910 # We set ac_cv_exeext here because the later test for it is not
1911 # safe: cross compilers may not add the suffix if given an `-o'
1912 # argument, so we may need to know it at that point already.
1913 # Even if this section looks crufty: it has the advantage of
1914 # actually working.
1915 break;;
1916 * )
1917 break;;
1918 esac
1919 done
1920 test "$ac_cv_exeext" = no && ac_cv_exeext=
1921
1922 else
1923 ac_file=''
1924 fi
1925 if test -z "$ac_file"; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1927 $as_echo "no" >&6; }
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1933 as_fn_error 77 "C compiler cannot create executables
1934 See \`config.log' for more details" "$LINENO" 5; }
1935 else
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1937 $as_echo "yes" >&6; }
1938 fi
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
1940 $as_echo_n "checking for C compiler default output file name... " >&6; }
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
1942 $as_echo "$ac_file" >&6; }
1943 ac_exeext=$ac_cv_exeext
1944
1945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1946 ac_clean_files=$ac_clean_files_save
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1948 $as_echo_n "checking for suffix of executables... " >&6; }
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; then :
1960 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1961 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1962 # work properly (i.e., refer to `conftest.exe'), while it won't with
1963 # `rm'.
1964 for ac_file in conftest.exe conftest conftest.*; do
1965 test -f "$ac_file" || continue
1966 case $ac_file in
1967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 break;;
1970 * ) break;;
1971 esac
1972 done
1973 else
1974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1976 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1977 See \`config.log' for more details" "$LINENO" 5; }
1978 fi
1979 rm -f conftest conftest$ac_cv_exeext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1981 $as_echo "$ac_cv_exeext" >&6; }
1982
1983 rm -f conftest.$ac_ext
1984 EXEEXT=$ac_cv_exeext
1985 ac_exeext=$EXEEXT
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 #include <stdio.h>
1989 int
1990 main ()
1991 {
1992 FILE *f = fopen ("conftest.out", "w");
1993 return ferror (f) || fclose (f) != 0;
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 ac_clean_files="$ac_clean_files conftest.out"
2000 # Check that the compiler produces executables we can run. If not, either
2001 # the compiler is broken, or we cross compile.
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2003 $as_echo_n "checking whether we are cross compiling... " >&6; }
2004 if test "$cross_compiling" != yes; then
2005 { { ac_try="$ac_link"
2006 case "(($ac_try" in
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2009 esac
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_link") 2>&5
2013 ac_status=$?
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; }
2016 if { ac_try='./conftest$ac_cv_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then
2027 cross_compiling=no
2028 else
2029 if test "$cross_compiling" = maybe; then
2030 cross_compiling=yes
2031 else
2032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 as_fn_error $? "cannot run C compiled programs.
2035 If you meant to cross compile, use \`--host'.
2036 See \`config.log' for more details" "$LINENO" 5; }
2037 fi
2038 fi
2039 fi
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2041 $as_echo "$cross_compiling" >&6; }
2042
2043 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2044 ac_clean_files=$ac_clean_files_save
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2046 $as_echo_n "checking for suffix of object files... " >&6; }
2047 if ${ac_cv_objext+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052
2053 int
2054 main ()
2055 {
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 rm -f conftest.o conftest.obj
2062 if { { ac_try="$ac_compile"
2063 case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_compile") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; then :
2073 for ac_file in conftest.o conftest.obj conftest.*; do
2074 test -f "$ac_file" || continue;
2075 case $ac_file in
2076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2078 break;;
2079 esac
2080 done
2081 else
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2087 as_fn_error $? "cannot compute suffix of object files: cannot compile
2088 See \`config.log' for more details" "$LINENO" 5; }
2089 fi
2090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2091 fi
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2093 $as_echo "$ac_cv_objext" >&6; }
2094 OBJEXT=$ac_cv_objext
2095 ac_objext=$OBJEXT
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2098 if ${ac_cv_c_compiler_gnu+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103
2104 int
2105 main ()
2106 {
2107 #ifndef __GNUC__
2108 choke me
2109 #endif
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_compiler_gnu=yes
2117 else
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2126 if test $ac_compiler_gnu = yes; then
2127 GCC=yes
2128 else
2129 GCC=
2130 fi
2131 ac_test_CFLAGS=${CFLAGS+set}
2132 ac_save_CFLAGS=$CFLAGS
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2135 if ${ac_cv_prog_cc_g+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 ac_save_c_werror_flag=$ac_c_werror_flag
2139 ac_c_werror_flag=yes
2140 ac_cv_prog_cc_g=no
2141 CFLAGS="-g"
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144
2145 int
2146 main ()
2147 {
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_cv_prog_cc_g=yes
2155 else
2156 CFLAGS=""
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159
2160 int
2161 main ()
2162 {
2163
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169
2170 else
2171 ac_c_werror_flag=$ac_save_c_werror_flag
2172 CFLAGS="-g"
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2175
2176 int
2177 main ()
2178 {
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_cv_prog_cc_g=yes
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 ac_c_werror_flag=$ac_save_c_werror_flag
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2195 $as_echo "$ac_cv_prog_cc_g" >&6; }
2196 if test "$ac_test_CFLAGS" = set; then
2197 CFLAGS=$ac_save_CFLAGS
2198 elif test $ac_cv_prog_cc_g = yes; then
2199 if test "$GCC" = yes; then
2200 CFLAGS="-g -O2"
2201 else
2202 CFLAGS="-g"
2203 fi
2204 else
2205 if test "$GCC" = yes; then
2206 CFLAGS="-O2"
2207 else
2208 CFLAGS=
2209 fi
2210 fi
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2213 if ${ac_cv_prog_cc_c89+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 ac_cv_prog_cc_c89=no
2217 ac_save_CC=$CC
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 #include <stdarg.h>
2221 #include <stdio.h>
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2228 char **p;
2229 int i;
2230 {
2231 return p[i];
2232 }
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2234 {
2235 char *s;
2236 va_list v;
2237 va_start (v,p);
2238 s = g (p, va_arg (v,int));
2239 va_end (v);
2240 return s;
2241 }
2242
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2244 function prototypes and stuff, but not '\xHH' hex character constants.
2245 These don't provoke an error unfortunately, instead are silently treated
2246 as 'x'. The following induces an error, until -std is added to get
2247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2248 array size at least. It's necessary to write '\x00'==0 to get something
2249 that's true only with -std. */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251
2252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2253 inside strings and character constants. */
2254 #define FOO(x) 'x'
2255 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2256
2257 int test (int i, double x);
2258 struct s1 {int (*f) (int a);};
2259 struct s2 {int (*f) (double a);};
2260 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2261 int argc;
2262 char **argv;
2263 int
2264 main ()
2265 {
2266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2273 do
2274 CC="$ac_save_CC $ac_arg"
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_cv_prog_cc_c89=$ac_arg
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext
2279 test "x$ac_cv_prog_cc_c89" != "xno" && break
2280 done
2281 rm -f conftest.$ac_ext
2282 CC=$ac_save_CC
2283
2284 fi
2285 # AC_CACHE_VAL
2286 case "x$ac_cv_prog_cc_c89" in
2287 x)
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2289 $as_echo "none needed" >&6; } ;;
2290 xno)
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2292 $as_echo "unsupported" >&6; } ;;
2293 *)
2294 CC="$CC $ac_cv_prog_cc_c89"
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2296 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2297 esac
2298 if test "x$ac_cv_prog_cc_c89" != xno; then :
2299
2300 fi
2301
2302 ac_ext=c
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307
2308
2309 ac_config_files="$ac_config_files Makefile"
2310
2311 cat >confcache <<\_ACEOF
2312 # This file is a shell script that caches the results of configure
2313 # tests run on this system so they can be shared between configure
2314 # scripts and configure runs, see configure's option --config-cache.
2315 # It is not useful on other systems. If it contains results you don't
2316 # want to keep, you may remove or edit it.
2317 #
2318 # config.status only pays attention to the cache file if you give it
2319 # the --recheck option to rerun configure.
2320 #
2321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2323 # following values.
2324
2325 _ACEOF
2326
2327 # The following way of writing the cache mishandles newlines in values,
2328 # but we know of no workaround that is simple, portable, and efficient.
2329 # So, we kill variables containing newlines.
2330 # Ultrix sh set writes to stderr and can't be redirected directly,
2331 # and sets the high bit in the cache file unless we assign to the vars.
2332 (
2333 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in #(
2336 *${as_nl}*)
2337 case $ac_var in #(
2338 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2339 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2340 esac
2341 case $ac_var in #(
2342 _ | IFS | as_nl) ;; #(
2343 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2344 *) { eval $ac_var=; unset $ac_var;} ;;
2345 esac ;;
2346 esac
2347 done
2348
2349 (set) 2>&1 |
2350 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2352 # `set' does not quote correctly, so add quotes: double-quote
2353 # substitution turns \\\\ into \\, and sed turns \\ into \.
2354 sed -n \
2355 "s/'/'\\\\''/g;
2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2357 ;; #(
2358 *)
2359 # `set' quotes correctly as required by POSIX, so do not add quotes.
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 ;;
2362 esac |
2363 sort
2364 ) |
2365 sed '
2366 /^ac_cv_env_/b end
2367 t clear
2368 :clear
2369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2370 t end
2371 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2372 :end' >>confcache
2373 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2374 if test -w "$cache_file"; then
2375 if test "x$cache_file" != "x/dev/null"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2377 $as_echo "$as_me: updating cache $cache_file" >&6;}
2378 if test ! -f "$cache_file" || test -h "$cache_file"; then
2379 cat confcache >"$cache_file"
2380 else
2381 case $cache_file in #(
2382 */* | ?:*)
2383 mv -f confcache "$cache_file"$$ &&
2384 mv -f "$cache_file"$$ "$cache_file" ;; #(
2385 *)
2386 mv -f confcache "$cache_file" ;;
2387 esac
2388 fi
2389 fi
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2392 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2393 fi
2394 fi
2395 rm -f confcache
2396
2397 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2398 # Let make expand exec_prefix.
2399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2400
2401 # Transform confdefs.h into DEFS.
2402 # Protect against shell expansion while executing Makefile rules.
2403 # Protect against Makefile macro expansion.
2404 #
2405 # If the first sed substitution is executed (which looks for macros that
2406 # take arguments), then branch to the quote section. Otherwise,
2407 # look for a macro that doesn't take arguments.
2408 ac_script='
2409 :mline
2410 /\\$/{
2411 N
2412 s,\\\n,,
2413 b mline
2414 }
2415 t clear
2416 :clear
2417 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2418 t quote
2419 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2420 t quote
2421 b any
2422 :quote
2423 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2424 s/\[/\\&/g
2425 s/\]/\\&/g
2426 s/\$/$$/g
2427 H
2428 :any
2429 ${
2430 g
2431 s/^\n//
2432 s/\n/ /g
2433 p
2434 }
2435 '
2436 DEFS=`sed -n "$ac_script" confdefs.h`
2437
2438
2439 ac_libobjs=
2440 ac_ltlibobjs=
2441 U=
2442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2443 # 1. Remove the extension, and $U if already installed.
2444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2445 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2447 # will be set to the directory where LIBOBJS objects are built.
2448 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2449 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2450 done
2451 LIBOBJS=$ac_libobjs
2452
2453 LTLIBOBJS=$ac_ltlibobjs
2454
2455
2456
2457 : "${CONFIG_STATUS=./config.status}"
2458 ac_write_fail=0
2459 ac_clean_files_save=$ac_clean_files
2460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2462 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2463 as_write_fail=0
2464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2465 #! $SHELL
2466 # Generated by $as_me.
2467 # Run this file to recreate the current configuration.
2468 # Compiler output produced by configure, useful for debugging
2469 # configure, is in config.log if it exists.
2470
2471 debug=false
2472 ac_cs_recheck=false
2473 ac_cs_silent=false
2474
2475 SHELL=\${CONFIG_SHELL-$SHELL}
2476 export SHELL
2477 _ASEOF
2478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2479 ## -------------------- ##
2480 ## M4sh Initialization. ##
2481 ## -------------------- ##
2482
2483 # Be more Bourne compatible
2484 DUALCASE=1; export DUALCASE # for MKS sh
2485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2486 emulate sh
2487 NULLCMD=:
2488 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2489 # is contrary to our usage. Disable this feature.
2490 alias -g '${1+"$@"}'='"$@"'
2491 setopt NO_GLOB_SUBST
2492 else
2493 case `(set -o) 2>/dev/null` in #(
2494 *posix*) :
2495 set -o posix ;; #(
2496 *) :
2497 ;;
2498 esac
2499 fi
2500
2501
2502 as_nl='
2503 '
2504 export as_nl
2505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2506 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2509 # Prefer a ksh shell builtin over an external printf program on Solaris,
2510 # but without wasting forks for bash or zsh.
2511 if test -z "$BASH_VERSION$ZSH_VERSION" \
2512 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2513 as_echo='print -r --'
2514 as_echo_n='print -rn --'
2515 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2516 as_echo='printf %s\n'
2517 as_echo_n='printf %s'
2518 else
2519 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2520 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2521 as_echo_n='/usr/ucb/echo -n'
2522 else
2523 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2524 as_echo_n_body='eval
2525 arg=$1;
2526 case $arg in #(
2527 *"$as_nl"*)
2528 expr "X$arg" : "X\\(.*\\)$as_nl";
2529 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2530 esac;
2531 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2532 '
2533 export as_echo_n_body
2534 as_echo_n='sh -c $as_echo_n_body as_echo'
2535 fi
2536 export as_echo_body
2537 as_echo='sh -c $as_echo_body as_echo'
2538 fi
2539
2540 # The user is always right.
2541 if test "${PATH_SEPARATOR+set}" != set; then
2542 PATH_SEPARATOR=:
2543 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2544 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2545 PATH_SEPARATOR=';'
2546 }
2547 fi
2548
2549
2550 # IFS
2551 # We need space, tab and new line, in precisely that order. Quoting is
2552 # there to prevent editors from complaining about space-tab.
2553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2554 # splitting by setting IFS to empty value.)
2555 IFS=" "" $as_nl"
2556
2557 # Find who we are. Look in the path if we contain no directory separator.
2558 as_myself=
2559 case $0 in #((
2560 *[\\/]* ) as_myself=$0 ;;
2561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2567 done
2568 IFS=$as_save_IFS
2569
2570 ;;
2571 esac
2572 # We did not find ourselves, most probably we were run as `sh COMMAND'
2573 # in which case we are not to be found in the path.
2574 if test "x$as_myself" = x; then
2575 as_myself=$0
2576 fi
2577 if test ! -f "$as_myself"; then
2578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2579 exit 1
2580 fi
2581
2582 # Unset variables that we do not need and which cause bugs (e.g. in
2583 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
2584 # suppresses any "Segmentation fault" message there. '((' could
2585 # trigger a bug in pdksh 5.2.14.
2586 for as_var in BASH_ENV ENV MAIL MAILPATH
2587 do eval test x\${$as_var+set} = xset \
2588 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2589 done
2590 PS1='$ '
2591 PS2='> '
2592 PS4='+ '
2593
2594 # NLS nuisances.
2595 LC_ALL=C
2596 export LC_ALL
2597 LANGUAGE=C
2598 export LANGUAGE
2599
2600 # CDPATH.
2601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2602
2603
2604 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2605 # ----------------------------------------
2606 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2607 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2608 # script with STATUS, using 1 if that was 0.
2609 as_fn_error ()
2610 {
2611 as_status=$1; test $as_status -eq 0 && as_status=1
2612 if test "$4"; then
2613 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2615 fi
2616 $as_echo "$as_me: error: $2" >&2
2617 as_fn_exit $as_status
2618 } # as_fn_error
2619
2620
2621 # as_fn_set_status STATUS
2622 # -----------------------
2623 # Set $? to STATUS, without forking.
2624 as_fn_set_status ()
2625 {
2626 return $1
2627 } # as_fn_set_status
2628
2629 # as_fn_exit STATUS
2630 # -----------------
2631 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2632 as_fn_exit ()
2633 {
2634 set +e
2635 as_fn_set_status $1
2636 exit $1
2637 } # as_fn_exit
2638
2639 # as_fn_unset VAR
2640 # ---------------
2641 # Portably unset VAR.
2642 as_fn_unset ()
2643 {
2644 { eval $1=; unset $1;}
2645 }
2646 as_unset=as_fn_unset
2647 # as_fn_append VAR VALUE
2648 # ----------------------
2649 # Append the text in VALUE to the end of the definition contained in VAR. Take
2650 # advantage of any shell optimizations that allow amortized linear growth over
2651 # repeated appends, instead of the typical quadratic growth present in naive
2652 # implementations.
2653 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2654 eval 'as_fn_append ()
2655 {
2656 eval $1+=\$2
2657 }'
2658 else
2659 as_fn_append ()
2660 {
2661 eval $1=\$$1\$2
2662 }
2663 fi # as_fn_append
2664
2665 # as_fn_arith ARG...
2666 # ------------------
2667 # Perform arithmetic evaluation on the ARGs, and store the result in the
2668 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2669 # must be portable across $(()) and expr.
2670 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2671 eval 'as_fn_arith ()
2672 {
2673 as_val=$(( $* ))
2674 }'
2675 else
2676 as_fn_arith ()
2677 {
2678 as_val=`expr "$@" || test $? -eq 1`
2679 }
2680 fi # as_fn_arith
2681
2682
2683 if expr a : '\(a\)' >/dev/null 2>&1 &&
2684 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2685 as_expr=expr
2686 else
2687 as_expr=false
2688 fi
2689
2690 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2691 as_basename=basename
2692 else
2693 as_basename=false
2694 fi
2695
2696 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2697 as_dirname=dirname
2698 else
2699 as_dirname=false
2700 fi
2701
2702 as_me=`$as_basename -- "$0" ||
2703 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2704 X"$0" : 'X\(//\)$' \| \
2705 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2706 $as_echo X/"$0" |
2707 sed '/^.*\/\([^/][^/]*\)\/*$/{
2708 s//\1/
2709 q
2710 }
2711 /^X\/\(\/\/\)$/{
2712 s//\1/
2713 q
2714 }
2715 /^X\/\(\/\).*/{
2716 s//\1/
2717 q
2718 }
2719 s/.*/./; q'`
2720
2721 # Avoid depending upon Character Ranges.
2722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2725 as_cr_digits='0123456789'
2726 as_cr_alnum=$as_cr_Letters$as_cr_digits
2727
2728 ECHO_C= ECHO_N= ECHO_T=
2729 case `echo -n x` in #(((((
2730 -n*)
2731 case `echo 'xy\c'` in
2732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2733 xy) ECHO_C='\c';;
2734 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2735 ECHO_T=' ';;
2736 esac;;
2737 *)
2738 ECHO_N='-n';;
2739 esac
2740
2741 rm -f conf$$ conf$$.exe conf$$.file
2742 if test -d conf$$.dir; then
2743 rm -f conf$$.dir/conf$$.file
2744 else
2745 rm -f conf$$.dir
2746 mkdir conf$$.dir 2>/dev/null
2747 fi
2748 if (echo >conf$$.file) 2>/dev/null; then
2749 if ln -s conf$$.file conf$$ 2>/dev/null; then
2750 as_ln_s='ln -s'
2751 # ... but there are two gotchas:
2752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2754 # In both cases, we have to default to `cp -p'.
2755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2756 as_ln_s='cp -p'
2757 elif ln conf$$.file conf$$ 2>/dev/null; then
2758 as_ln_s=ln
2759 else
2760 as_ln_s='cp -p'
2761 fi
2762 else
2763 as_ln_s='cp -p'
2764 fi
2765 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2766 rmdir conf$$.dir 2>/dev/null
2767
2768
2769 # as_fn_mkdir_p
2770 # -------------
2771 # Create "$as_dir" as a directory, including parents if necessary.
2772 as_fn_mkdir_p ()
2773 {
2774
2775 case $as_dir in #(
2776 -*) as_dir=./$as_dir;;
2777 esac
2778 test -d "$as_dir" || eval $as_mkdir_p || {
2779 as_dirs=
2780 while :; do
2781 case $as_dir in #(
2782 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2783 *) as_qdir=$as_dir;;
2784 esac
2785 as_dirs="'$as_qdir' $as_dirs"
2786 as_dir=`$as_dirname -- "$as_dir" ||
2787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2788 X"$as_dir" : 'X\(//\)[^/]' \| \
2789 X"$as_dir" : 'X\(//\)$' \| \
2790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2791 $as_echo X"$as_dir" |
2792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2793 s//\1/
2794 q
2795 }
2796 /^X\(\/\/\)[^/].*/{
2797 s//\1/
2798 q
2799 }
2800 /^X\(\/\/\)$/{
2801 s//\1/
2802 q
2803 }
2804 /^X\(\/\).*/{
2805 s//\1/
2806 q
2807 }
2808 s/.*/./; q'`
2809 test -d "$as_dir" && break
2810 done
2811 test -z "$as_dirs" || eval "mkdir $as_dirs"
2812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2813
2814
2815 } # as_fn_mkdir_p
2816 if mkdir -p . 2>/dev/null; then
2817 as_mkdir_p='mkdir -p "$as_dir"'
2818 else
2819 test -d ./-p && rmdir ./-p
2820 as_mkdir_p=false
2821 fi
2822
2823 if test -x / >/dev/null 2>&1; then
2824 as_test_x='test -x'
2825 else
2826 if ls -dL / >/dev/null 2>&1; then
2827 as_ls_L_option=L
2828 else
2829 as_ls_L_option=
2830 fi
2831 as_test_x='
2832 eval sh -c '\''
2833 if test -d "$1"; then
2834 test -d "$1/.";
2835 else
2836 case $1 in #(
2837 -*)set "./$1";;
2838 esac;
2839 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
2840 ???[sx]*):;;*)false;;esac;fi
2841 '\'' sh
2842 '
2843 fi
2844 as_executable_p=$as_test_x
2845
2846 # Sed expression to map a string onto a valid CPP name.
2847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2848
2849 # Sed expression to map a string onto a valid variable name.
2850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2851
2852
2853 exec 6>&1
2854 ## ----------------------------------- ##
2855 ## Main body of $CONFIG_STATUS script. ##
2856 ## ----------------------------------- ##
2857 _ASEOF
2858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2859
2860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2861 # Save the log message, to keep $0 and so on meaningful, and to
2862 # report actual input values of CONFIG_FILES etc. instead of their
2863 # values after options handling.
2864 ac_log="
2865 This file was extended by riscv-tests $as_me 1.0, which was
2866 generated by GNU Autoconf 2.68. Invocation command line was
2867
2868 CONFIG_FILES = $CONFIG_FILES
2869 CONFIG_HEADERS = $CONFIG_HEADERS
2870 CONFIG_LINKS = $CONFIG_LINKS
2871 CONFIG_COMMANDS = $CONFIG_COMMANDS
2872 $ $0 $@
2873
2874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2875 "
2876
2877 _ACEOF
2878
2879 case $ac_config_files in *"
2880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
2881 esac
2882
2883
2884
2885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2886 # Files that config.status was made for.
2887 config_files="$ac_config_files"
2888
2889 _ACEOF
2890
2891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2892 ac_cs_usage="\
2893 \`$as_me' instantiates files and other configuration actions
2894 from templates according to the current configuration. Unless the files
2895 and actions are specified as TAGs, all are instantiated by default.
2896
2897 Usage: $0 [OPTION]... [TAG]...
2898
2899 -h, --help print this help, then exit
2900 -V, --version print version number and configuration settings, then exit
2901 --config print configuration, then exit
2902 -q, --quiet, --silent
2903 do not print progress messages
2904 -d, --debug don't remove temporary files
2905 --recheck update $as_me by reconfiguring in the same conditions
2906 --file=FILE[:TEMPLATE]
2907 instantiate the configuration file FILE
2908
2909 Configuration files:
2910 $config_files
2911
2912 Report bugs to the package provider."
2913
2914 _ACEOF
2915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2916 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2917 ac_cs_version="\\
2918 riscv-tests config.status 1.0
2919 configured by $0, generated by GNU Autoconf 2.68,
2920 with options \\"\$ac_cs_config\\"
2921
2922 Copyright (C) 2010 Free Software Foundation, Inc.
2923 This config.status script is free software; the Free Software Foundation
2924 gives unlimited permission to copy, distribute and modify it."
2925
2926 ac_pwd='$ac_pwd'
2927 srcdir='$srcdir'
2928 test -n "\$AWK" || AWK=awk
2929 _ACEOF
2930
2931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2932 # The default lists apply if the user does not specify any file.
2933 ac_need_defaults=:
2934 while test $# != 0
2935 do
2936 case $1 in
2937 --*=?*)
2938 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2939 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2940 ac_shift=:
2941 ;;
2942 --*=)
2943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2944 ac_optarg=
2945 ac_shift=:
2946 ;;
2947 *)
2948 ac_option=$1
2949 ac_optarg=$2
2950 ac_shift=shift
2951 ;;
2952 esac
2953
2954 case $ac_option in
2955 # Handling of the options.
2956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2957 ac_cs_recheck=: ;;
2958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2959 $as_echo "$ac_cs_version"; exit ;;
2960 --config | --confi | --conf | --con | --co | --c )
2961 $as_echo "$ac_cs_config"; exit ;;
2962 --debug | --debu | --deb | --de | --d | -d )
2963 debug=: ;;
2964 --file | --fil | --fi | --f )
2965 $ac_shift
2966 case $ac_optarg in
2967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2968 '') as_fn_error $? "missing file argument" ;;
2969 esac
2970 as_fn_append CONFIG_FILES " '$ac_optarg'"
2971 ac_need_defaults=false;;
2972 --he | --h | --help | --hel | -h )
2973 $as_echo "$ac_cs_usage"; exit ;;
2974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2976 ac_cs_silent=: ;;
2977
2978 # This is an error.
2979 -*) as_fn_error $? "unrecognized option: \`$1'
2980 Try \`$0 --help' for more information." ;;
2981
2982 *) as_fn_append ac_config_targets " $1"
2983 ac_need_defaults=false ;;
2984
2985 esac
2986 shift
2987 done
2988
2989 ac_configure_extra_args=
2990
2991 if $ac_cs_silent; then
2992 exec 6>/dev/null
2993 ac_configure_extra_args="$ac_configure_extra_args --silent"
2994 fi
2995
2996 _ACEOF
2997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2998 if \$ac_cs_recheck; then
2999 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3000 shift
3001 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3002 CONFIG_SHELL='$SHELL'
3003 export CONFIG_SHELL
3004 exec "\$@"
3005 fi
3006
3007 _ACEOF
3008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3009 exec 5>>config.log
3010 {
3011 echo
3012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3013 ## Running $as_me. ##
3014 _ASBOX
3015 $as_echo "$ac_log"
3016 } >&5
3017
3018 _ACEOF
3019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3020 _ACEOF
3021
3022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3023
3024 # Handling of arguments.
3025 for ac_config_target in $ac_config_targets
3026 do
3027 case $ac_config_target in
3028 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3029
3030 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3031 esac
3032 done
3033
3034
3035 # If the user did not use the arguments to specify the items to instantiate,
3036 # then the envvar interface is used. Set only those that are not.
3037 # We use the long form for the default assignment because of an extremely
3038 # bizarre bug on SunOS 4.1.3.
3039 if $ac_need_defaults; then
3040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3041 fi
3042
3043 # Have a temporary directory for convenience. Make it in the build tree
3044 # simply because there is no reason against having it here, and in addition,
3045 # creating and moving files from /tmp can sometimes cause problems.
3046 # Hook for its removal unless debugging.
3047 # Note that there is a small window in which the directory will not be cleaned:
3048 # after its creation but before its name has been assigned to `$tmp'.
3049 $debug ||
3050 {
3051 tmp= ac_tmp=
3052 trap 'exit_status=$?
3053 : "${ac_tmp:=$tmp}"
3054 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3055 ' 0
3056 trap 'as_fn_exit 1' 1 2 13 15
3057 }
3058 # Create a (secure) tmp directory for tmp files.
3059
3060 {
3061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3062 test -d "$tmp"
3063 } ||
3064 {
3065 tmp=./conf$$-$RANDOM
3066 (umask 077 && mkdir "$tmp")
3067 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3068 ac_tmp=$tmp
3069
3070 # Set up the scripts for CONFIG_FILES section.
3071 # No need to generate them if there are no CONFIG_FILES.
3072 # This happens for instance with `./config.status config.h'.
3073 if test -n "$CONFIG_FILES"; then
3074
3075
3076 ac_cr=`echo X | tr X '\015'`
3077 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3078 # But we know of no other shell where ac_cr would be empty at this
3079 # point, so we can use a bashism as a fallback.
3080 if test "x$ac_cr" = x; then
3081 eval ac_cr=\$\'\\r\'
3082 fi
3083 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3084 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3085 ac_cs_awk_cr='\\r'
3086 else
3087 ac_cs_awk_cr=$ac_cr
3088 fi
3089
3090 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3091 _ACEOF
3092
3093
3094 {
3095 echo "cat >conf$$subs.awk <<_ACEOF" &&
3096 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3097 echo "_ACEOF"
3098 } >conf$$subs.sh ||
3099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3100 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3101 ac_delim='%!_!# '
3102 for ac_last_try in false false false false false :; do
3103 . ./conf$$subs.sh ||
3104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3105
3106 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3107 if test $ac_delim_n = $ac_delim_num; then
3108 break
3109 elif $ac_last_try; then
3110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3111 else
3112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3113 fi
3114 done
3115 rm -f conf$$subs.sh
3116
3117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3118 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3119 _ACEOF
3120 sed -n '
3121 h
3122 s/^/S["/; s/!.*/"]=/
3123 p
3124 g
3125 s/^[^!]*!//
3126 :repl
3127 t repl
3128 s/'"$ac_delim"'$//
3129 t delim
3130 :nl
3131 h
3132 s/\(.\{148\}\)..*/\1/
3133 t more1
3134 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3135 p
3136 n
3137 b repl
3138 :more1
3139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3140 p
3141 g
3142 s/.\{148\}//
3143 t nl
3144 :delim
3145 h
3146 s/\(.\{148\}\)..*/\1/
3147 t more2
3148 s/["\\]/\\&/g; s/^/"/; s/$/"/
3149 p
3150 b
3151 :more2
3152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3153 p
3154 g
3155 s/.\{148\}//
3156 t delim
3157 ' <conf$$subs.awk | sed '
3158 /^[^""]/{
3159 N
3160 s/\n//
3161 }
3162 ' >>$CONFIG_STATUS || ac_write_fail=1
3163 rm -f conf$$subs.awk
3164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3165 _ACAWK
3166 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3167 for (key in S) S_is_set[key] = 1
3168 FS = "\a"
3169
3170 }
3171 {
3172 line = $ 0
3173 nfields = split(line, field, "@")
3174 substed = 0
3175 len = length(field[1])
3176 for (i = 2; i < nfields; i++) {
3177 key = field[i]
3178 keylen = length(key)
3179 if (S_is_set[key]) {
3180 value = S[key]
3181 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3182 len += length(value) + length(field[++i])
3183 substed = 1
3184 } else
3185 len += 1 + keylen
3186 }
3187
3188 print line
3189 }
3190
3191 _ACAWK
3192 _ACEOF
3193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3194 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3195 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3196 else
3197 cat
3198 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3199 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3200 _ACEOF
3201
3202 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3203 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3204 # trailing colons and then remove the whole line if VPATH becomes empty
3205 # (actually we leave an empty line to preserve line numbers).
3206 if test "x$srcdir" = x.; then
3207 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3208 h
3209 s///
3210 s/^/:/
3211 s/[ ]*$/:/
3212 s/:\$(srcdir):/:/g
3213 s/:\${srcdir}:/:/g
3214 s/:@srcdir@:/:/g
3215 s/^:*//
3216 s/:*$//
3217 x
3218 s/\(=[ ]*\).*/\1/
3219 G
3220 s/\n//
3221 s/^[^=]*=[ ]*$//
3222 }'
3223 fi
3224
3225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3226 fi # test -n "$CONFIG_FILES"
3227
3228
3229 eval set X " :F $CONFIG_FILES "
3230 shift
3231 for ac_tag
3232 do
3233 case $ac_tag in
3234 :[FHLC]) ac_mode=$ac_tag; continue;;
3235 esac
3236 case $ac_mode$ac_tag in
3237 :[FHL]*:*);;
3238 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3239 :[FH]-) ac_tag=-:-;;
3240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3241 esac
3242 ac_save_IFS=$IFS
3243 IFS=:
3244 set x $ac_tag
3245 IFS=$ac_save_IFS
3246 shift
3247 ac_file=$1
3248 shift
3249
3250 case $ac_mode in
3251 :L) ac_source=$1;;
3252 :[FH])
3253 ac_file_inputs=
3254 for ac_f
3255 do
3256 case $ac_f in
3257 -) ac_f="$ac_tmp/stdin";;
3258 *) # Look for the file first in the build tree, then in the source tree
3259 # (if the path is not absolute). The absolute path cannot be DOS-style,
3260 # because $ac_f cannot contain `:'.
3261 test -f "$ac_f" ||
3262 case $ac_f in
3263 [\\/$]*) false;;
3264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3265 esac ||
3266 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3267 esac
3268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3269 as_fn_append ac_file_inputs " '$ac_f'"
3270 done
3271
3272 # Let's still pretend it is `configure' which instantiates (i.e., don't
3273 # use $as_me), people would be surprised to read:
3274 # /* config.h. Generated by config.status. */
3275 configure_input='Generated from '`
3276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3277 `' by configure.'
3278 if test x"$ac_file" != x-; then
3279 configure_input="$ac_file. $configure_input"
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3281 $as_echo "$as_me: creating $ac_file" >&6;}
3282 fi
3283 # Neutralize special characters interpreted by sed in replacement strings.
3284 case $configure_input in #(
3285 *\&* | *\|* | *\\* )
3286 ac_sed_conf_input=`$as_echo "$configure_input" |
3287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3288 *) ac_sed_conf_input=$configure_input;;
3289 esac
3290
3291 case $ac_tag in
3292 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3294 esac
3295 ;;
3296 esac
3297
3298 ac_dir=`$as_dirname -- "$ac_file" ||
3299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3300 X"$ac_file" : 'X\(//\)[^/]' \| \
3301 X"$ac_file" : 'X\(//\)$' \| \
3302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3303 $as_echo X"$ac_file" |
3304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3305 s//\1/
3306 q
3307 }
3308 /^X\(\/\/\)[^/].*/{
3309 s//\1/
3310 q
3311 }
3312 /^X\(\/\/\)$/{
3313 s//\1/
3314 q
3315 }
3316 /^X\(\/\).*/{
3317 s//\1/
3318 q
3319 }
3320 s/.*/./; q'`
3321 as_dir="$ac_dir"; as_fn_mkdir_p
3322 ac_builddir=.
3323
3324 case "$ac_dir" in
3325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3326 *)
3327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3328 # A ".." for each directory in $ac_dir_suffix.
3329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3330 case $ac_top_builddir_sub in
3331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3333 esac ;;
3334 esac
3335 ac_abs_top_builddir=$ac_pwd
3336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3337 # for backward compatibility:
3338 ac_top_builddir=$ac_top_build_prefix
3339
3340 case $srcdir in
3341 .) # We are building in place.
3342 ac_srcdir=.