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