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