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