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