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