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