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