Merge branch 'netbsd-autoconf'
[riscv-isa-sim.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.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_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_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_c_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_c_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 # Add command line argument to enable all optional subprojects
4041
4042 # Check whether --enable-optional-subprojects was given.
4043 if test "${enable_optional_subprojects+set}" = set; then :
4044 enableval=$enable_optional_subprojects;
4045 fi
4046
4047
4048 # Loop through the subprojects given in the macro argument
4049
4050
4051
4052 # Determine if this is a required or an optional subproject
4053
4054
4055
4056 # Determine if there is a group with the same name
4057
4058
4059
4060 # Create variations of the subproject name suitable for use as a CPP
4061 # enabled define, a shell enabled variable, and a shell function
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 # Add subproject to our running list
4074
4075 subprojects="$subprojects riscv"
4076
4077 # Process the subproject appropriately. If enabled add it to the
4078 # $enabled_subprojects running shell variable, set a
4079 # SUBPROJECT_ENABLED C define, and include the appropriate
4080 # 'subproject.ac'.
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : riscv" >&5
4084 $as_echo "$as_me: configuring default subproject : riscv" >&6;}
4085 ac_config_files="$ac_config_files riscv.mk:riscv/riscv.mk.in"
4086
4087 enable_riscv_sproj="yes"
4088 subprojects_enabled="$subprojects_enabled riscv"
4089
4090 $as_echo "#define RISCV_ENABLED /**/" >>confdefs.h
4091
4092
4093 # Check whether --with-fesvr was given.
4094 if test "${with_fesvr+set}" = set; then :
4095 withval=$with_fesvr;
4096 LDFLAGS="-L$withval/lib $LDFLAGS"
4097 CPPFLAGS="-I$withval/include $CPPFLAGS"
4098
4099
4100 fi
4101
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfesvr_is_present in -lfesvr" >&5
4104 $as_echo_n "checking for libfesvr_is_present in -lfesvr... " >&6; }
4105 if ${ac_cv_lib_fesvr_libfesvr_is_present+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 ac_check_lib_save_LIBS=$LIBS
4109 LIBS="-lfesvr -pthread $LIBS"
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 /* Override any GCC internal prototype to avoid an error.
4114 Use char because int might match the return type of a GCC
4115 builtin and then its argument prototype would still apply. */
4116 #ifdef __cplusplus
4117 extern "C"
4118 #endif
4119 char libfesvr_is_present ();
4120 int
4121 main ()
4122 {
4123 return libfesvr_is_present ();
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_link "$LINENO"; then :
4129 ac_cv_lib_fesvr_libfesvr_is_present=yes
4130 else
4131 ac_cv_lib_fesvr_libfesvr_is_present=no
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext \
4134 conftest$ac_exeext conftest.$ac_ext
4135 LIBS=$ac_check_lib_save_LIBS
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fesvr_libfesvr_is_present" >&5
4138 $as_echo "$ac_cv_lib_fesvr_libfesvr_is_present" >&6; }
4139 if test "x$ac_cv_lib_fesvr_libfesvr_is_present" = xyes; then :
4140 cat >>confdefs.h <<_ACEOF
4141 #define HAVE_LIBFESVR 1
4142 _ACEOF
4143
4144 LIBS="-lfesvr $LIBS"
4145
4146 else
4147 as_fn_error $? "libfesvr is required" "$LINENO" 5
4148 fi
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4152 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4153 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_check_lib_save_LIBS=$LIBS
4157 LIBS="-lpthread $LIBS"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 /* Override any GCC internal prototype to avoid an error.
4162 Use char because int might match the return type of a GCC
4163 builtin and then its argument prototype would still apply. */
4164 #ifdef __cplusplus
4165 extern "C"
4166 #endif
4167 char pthread_create ();
4168 int
4169 main ()
4170 {
4171 return pthread_create ();
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_link "$LINENO"; then :
4177 ac_cv_lib_pthread_pthread_create=yes
4178 else
4179 ac_cv_lib_pthread_pthread_create=no
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext \
4182 conftest$ac_exeext conftest.$ac_ext
4183 LIBS=$ac_check_lib_save_LIBS
4184 fi
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4186 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4187 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4188 cat >>confdefs.h <<_ACEOF
4189 #define HAVE_LIBPTHREAD 1
4190 _ACEOF
4191
4192 LIBS="-lpthread $LIBS"
4193
4194 else
4195 as_fn_error $? "libpthread is required" "$LINENO" 5
4196 fi
4197
4198
4199 # Check whether --enable-fpu was given.
4200 if test "${enable_fpu+set}" = set; then :
4201 enableval=$enable_fpu;
4202 fi
4203
4204 if test "x$enable_fpu" != "xno"; then :
4205
4206
4207 $as_echo "#define RISCV_ENABLE_FPU /**/" >>confdefs.h
4208
4209
4210 fi
4211
4212 # Check whether --enable-64bit was given.
4213 if test "${enable_64bit+set}" = set; then :
4214 enableval=$enable_64bit;
4215 fi
4216
4217 if test "x$enable_64bit" != "xno"; then :
4218
4219
4220 $as_echo "#define RISCV_ENABLE_64BIT /**/" >>confdefs.h
4221
4222
4223 fi
4224
4225 # Check whether --enable-commitlog was given.
4226 if test "${enable_commitlog+set}" = set; then :
4227 enableval=$enable_commitlog;
4228 fi
4229
4230 if test "x$enable_commitlog" = "xyes"; then :
4231
4232
4233 $as_echo "#define RISCV_ENABLE_COMMITLOG /**/" >>confdefs.h
4234
4235
4236 fi
4237
4238 # Check whether --enable-histogram was given.
4239 if test "${enable_histogram+set}" = set; then :
4240 enableval=$enable_histogram;
4241 fi
4242
4243 if test "x$enable_histogram" = "xyes"; then :
4244
4245
4246 $as_echo "#define RISCV_ENABLE_HISTOGRAM /**/" >>confdefs.h
4247
4248
4249 fi
4250
4251
4252
4253
4254
4255 # Determine if this is a required or an optional subproject
4256
4257
4258
4259 # Determine if there is a group with the same name
4260
4261
4262
4263 # Create variations of the subproject name suitable for use as a CPP
4264 # enabled define, a shell enabled variable, and a shell function
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 # Add subproject to our running list
4277
4278 subprojects="$subprojects hwacha"
4279
4280 # Process the subproject appropriately. If enabled add it to the
4281 # $enabled_subprojects running shell variable, set a
4282 # SUBPROJECT_ENABLED C define, and include the appropriate
4283 # 'subproject.ac'.
4284
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : hwacha" >&5
4287 $as_echo "$as_me: configuring default subproject : hwacha" >&6;}
4288 ac_config_files="$ac_config_files hwacha.mk:hwacha/hwacha.mk.in"
4289
4290 enable_hwacha_sproj="yes"
4291 subprojects_enabled="$subprojects_enabled hwacha"
4292
4293 $as_echo "#define HWACHA_ENABLED /**/" >>confdefs.h
4294
4295
4296
4297
4298
4299
4300 # Determine if this is a required or an optional subproject
4301
4302
4303
4304 # Determine if there is a group with the same name
4305
4306
4307
4308 # Create variations of the subproject name suitable for use as a CPP
4309 # enabled define, a shell enabled variable, and a shell function
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 # Add subproject to our running list
4322
4323 subprojects="$subprojects dummy_rocc"
4324
4325 # Process the subproject appropriately. If enabled add it to the
4326 # $enabled_subprojects running shell variable, set a
4327 # SUBPROJECT_ENABLED C define, and include the appropriate
4328 # 'subproject.ac'.
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : dummy_rocc" >&5
4332 $as_echo "$as_me: configuring default subproject : dummy_rocc" >&6;}
4333 ac_config_files="$ac_config_files dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in"
4334
4335 enable_dummy_rocc_sproj="yes"
4336 subprojects_enabled="$subprojects_enabled dummy_rocc"
4337
4338 $as_echo "#define DUMMY_ROCC_ENABLED /**/" >>confdefs.h
4339
4340
4341
4342
4343
4344
4345 # Determine if this is a required or an optional subproject
4346
4347
4348
4349 # Determine if there is a group with the same name
4350
4351
4352
4353 # Create variations of the subproject name suitable for use as a CPP
4354 # enabled define, a shell enabled variable, and a shell function
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 # Add subproject to our running list
4367
4368 subprojects="$subprojects softfloat"
4369
4370 # Process the subproject appropriately. If enabled add it to the
4371 # $enabled_subprojects running shell variable, set a
4372 # SUBPROJECT_ENABLED C define, and include the appropriate
4373 # 'subproject.ac'.
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : softfloat" >&5
4377 $as_echo "$as_me: configuring default subproject : softfloat" >&6;}
4378 ac_config_files="$ac_config_files softfloat.mk:softfloat/softfloat.mk.in"
4379
4380 enable_softfloat_sproj="yes"
4381 subprojects_enabled="$subprojects_enabled softfloat"
4382
4383 $as_echo "#define SOFTFLOAT_ENABLED /**/" >>confdefs.h
4384
4385
4386
4387
4388
4389
4390 # Determine if this is a required or an optional subproject
4391
4392
4393
4394 # Determine if there is a group with the same name
4395
4396
4397
4398 # Create variations of the subproject name suitable for use as a CPP
4399 # enabled define, a shell enabled variable, and a shell function
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411 # Add subproject to our running list
4412
4413 subprojects="$subprojects spike_main"
4414
4415 # Process the subproject appropriately. If enabled add it to the
4416 # $enabled_subprojects running shell variable, set a
4417 # SUBPROJECT_ENABLED C define, and include the appropriate
4418 # 'subproject.ac'.
4419
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : spike_main" >&5
4422 $as_echo "$as_me: configuring default subproject : spike_main" >&6;}
4423 ac_config_files="$ac_config_files spike_main.mk:spike_main/spike_main.mk.in"
4424
4425 enable_spike_main_sproj="yes"
4426 subprojects_enabled="$subprojects_enabled spike_main"
4427
4428 $as_echo "#define SPIKE_MAIN_ENABLED /**/" >>confdefs.h
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4431 $as_echo_n "checking for library containing dlopen... " >&6; }
4432 if ${ac_cv_search_dlopen+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 ac_func_search_save_LIBS=$LIBS
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438
4439 /* Override any GCC internal prototype to avoid an error.
4440 Use char because int might match the return type of a GCC
4441 builtin and then its argument prototype would still apply. */
4442 #ifdef __cplusplus
4443 extern "C"
4444 #endif
4445 char dlopen ();
4446 int
4447 main ()
4448 {
4449 return dlopen ();
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 for ac_lib in '' dl dld; do
4455 if test -z "$ac_lib"; then
4456 ac_res="none required"
4457 else
4458 ac_res=-l$ac_lib
4459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4460 fi
4461 if ac_fn_c_try_link "$LINENO"; then :
4462 ac_cv_search_dlopen=$ac_res
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext
4466 if ${ac_cv_search_dlopen+:} false; then :
4467 break
4468 fi
4469 done
4470 if ${ac_cv_search_dlopen+:} false; then :
4471
4472 else
4473 ac_cv_search_dlopen=no
4474 fi
4475 rm conftest.$ac_ext
4476 LIBS=$ac_func_search_save_LIBS
4477 fi
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4479 $as_echo "$ac_cv_search_dlopen" >&6; }
4480 ac_res=$ac_cv_search_dlopen
4481 if test "$ac_res" != no; then :
4482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4483
4484 else
4485
4486 as_fn_error $? "unable to find the dlopen() function" "$LINENO" 5
4487
4488 fi
4489
4490
4491
4492
4493
4494
4495 # Output make variables
4496
4497
4498
4499
4500
4501
4502 #-------------------------------------------------------------------------
4503 # MCPPBS subproject groups
4504 #-------------------------------------------------------------------------
4505 # If a group has the same name as a subproject then you must add the
4506 # '**' suffix in the subproject list above. The list of subprojects in a
4507 # group should be ordered so that subprojets only depend on those listed
4508 # earlier. Here is an example:
4509 #
4510 # MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
4511 #
4512
4513 #-------------------------------------------------------------------------
4514 # Output
4515 #-------------------------------------------------------------------------
4516
4517 ac_config_headers="$ac_config_headers config.h"
4518
4519 ac_config_files="$ac_config_files Makefile"
4520
4521 cat >confcache <<\_ACEOF
4522 # This file is a shell script that caches the results of configure
4523 # tests run on this system so they can be shared between configure
4524 # scripts and configure runs, see configure's option --config-cache.
4525 # It is not useful on other systems. If it contains results you don't
4526 # want to keep, you may remove or edit it.
4527 #
4528 # config.status only pays attention to the cache file if you give it
4529 # the --recheck option to rerun configure.
4530 #
4531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4533 # following values.
4534
4535 _ACEOF
4536
4537 # The following way of writing the cache mishandles newlines in values,
4538 # but we know of no workaround that is simple, portable, and efficient.
4539 # So, we kill variables containing newlines.
4540 # Ultrix sh set writes to stderr and can't be redirected directly,
4541 # and sets the high bit in the cache file unless we assign to the vars.
4542 (
4543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4544 eval ac_val=\$$ac_var
4545 case $ac_val in #(
4546 *${as_nl}*)
4547 case $ac_var in #(
4548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4550 esac
4551 case $ac_var in #(
4552 _ | IFS | as_nl) ;; #(
4553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4554 *) { eval $ac_var=; unset $ac_var;} ;;
4555 esac ;;
4556 esac
4557 done
4558
4559 (set) 2>&1 |
4560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4561 *${as_nl}ac_space=\ *)
4562 # `set' does not quote correctly, so add quotes: double-quote
4563 # substitution turns \\\\ into \\, and sed turns \\ into \.
4564 sed -n \
4565 "s/'/'\\\\''/g;
4566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4567 ;; #(
4568 *)
4569 # `set' quotes correctly as required by POSIX, so do not add quotes.
4570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4571 ;;
4572 esac |
4573 sort
4574 ) |
4575 sed '
4576 /^ac_cv_env_/b end
4577 t clear
4578 :clear
4579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4580 t end
4581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4582 :end' >>confcache
4583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4584 if test -w "$cache_file"; then
4585 if test "x$cache_file" != "x/dev/null"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4587 $as_echo "$as_me: updating cache $cache_file" >&6;}
4588 if test ! -f "$cache_file" || test -h "$cache_file"; then
4589 cat confcache >"$cache_file"
4590 else
4591 case $cache_file in #(
4592 */* | ?:*)
4593 mv -f confcache "$cache_file"$$ &&
4594 mv -f "$cache_file"$$ "$cache_file" ;; #(
4595 *)
4596 mv -f confcache "$cache_file" ;;
4597 esac
4598 fi
4599 fi
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4603 fi
4604 fi
4605 rm -f confcache
4606
4607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4608 # Let make expand exec_prefix.
4609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4610
4611 DEFS=-DHAVE_CONFIG_H
4612
4613 ac_libobjs=
4614 ac_ltlibobjs=
4615 U=
4616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4617 # 1. Remove the extension, and $U if already installed.
4618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4621 # will be set to the directory where LIBOBJS objects are built.
4622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4624 done
4625 LIBOBJS=$ac_libobjs
4626
4627 LTLIBOBJS=$ac_ltlibobjs
4628
4629
4630
4631 : "${CONFIG_STATUS=./config.status}"
4632 ac_write_fail=0
4633 ac_clean_files_save=$ac_clean_files
4634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4637 as_write_fail=0
4638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4639 #! $SHELL
4640 # Generated by $as_me.
4641 # Run this file to recreate the current configuration.
4642 # Compiler output produced by configure, useful for debugging
4643 # configure, is in config.log if it exists.
4644
4645 debug=false
4646 ac_cs_recheck=false
4647 ac_cs_silent=false
4648
4649 SHELL=\${CONFIG_SHELL-$SHELL}
4650 export SHELL
4651 _ASEOF
4652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4653 ## -------------------- ##
4654 ## M4sh Initialization. ##
4655 ## -------------------- ##
4656
4657 # Be more Bourne compatible
4658 DUALCASE=1; export DUALCASE # for MKS sh
4659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4660 emulate sh
4661 NULLCMD=:
4662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4663 # is contrary to our usage. Disable this feature.
4664 alias -g '${1+"$@"}'='"$@"'
4665 setopt NO_GLOB_SUBST
4666 else
4667 case `(set -o) 2>/dev/null` in #(
4668 *posix*) :
4669 set -o posix ;; #(
4670 *) :
4671 ;;
4672 esac
4673 fi
4674
4675
4676 as_nl='
4677 '
4678 export as_nl
4679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4683 # Prefer a ksh shell builtin over an external printf program on Solaris,
4684 # but without wasting forks for bash or zsh.
4685 if test -z "$BASH_VERSION$ZSH_VERSION" \
4686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4687 as_echo='print -r --'
4688 as_echo_n='print -rn --'
4689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4690 as_echo='printf %s\n'
4691 as_echo_n='printf %s'
4692 else
4693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4694 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4695 as_echo_n='/usr/ucb/echo -n'
4696 else
4697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4698 as_echo_n_body='eval
4699 arg=$1;
4700 case $arg in #(
4701 *"$as_nl"*)
4702 expr "X$arg" : "X\\(.*\\)$as_nl";
4703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4704 esac;
4705 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4706 '
4707 export as_echo_n_body
4708 as_echo_n='sh -c $as_echo_n_body as_echo'
4709 fi
4710 export as_echo_body
4711 as_echo='sh -c $as_echo_body as_echo'
4712 fi
4713
4714 # The user is always right.
4715 if test "${PATH_SEPARATOR+set}" != set; then
4716 PATH_SEPARATOR=:
4717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4718 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4719 PATH_SEPARATOR=';'
4720 }
4721 fi
4722
4723
4724 # IFS
4725 # We need space, tab and new line, in precisely that order. Quoting is
4726 # there to prevent editors from complaining about space-tab.
4727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4728 # splitting by setting IFS to empty value.)
4729 IFS=" "" $as_nl"
4730
4731 # Find who we are. Look in the path if we contain no directory separator.
4732 as_myself=
4733 case $0 in #((
4734 *[\\/]* ) as_myself=$0 ;;
4735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4741 done
4742 IFS=$as_save_IFS
4743
4744 ;;
4745 esac
4746 # We did not find ourselves, most probably we were run as `sh COMMAND'
4747 # in which case we are not to be found in the path.
4748 if test "x$as_myself" = x; then
4749 as_myself=$0
4750 fi
4751 if test ! -f "$as_myself"; then
4752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4753 exit 1
4754 fi
4755
4756 # Unset variables that we do not need and which cause bugs (e.g. in
4757 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4758 # suppresses any "Segmentation fault" message there. '((' could
4759 # trigger a bug in pdksh 5.2.14.
4760 for as_var in BASH_ENV ENV MAIL MAILPATH
4761 do eval test x\${$as_var+set} = xset \
4762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4763 done
4764 PS1='$ '
4765 PS2='> '
4766 PS4='+ '
4767
4768 # NLS nuisances.
4769 LC_ALL=C
4770 export LC_ALL
4771 LANGUAGE=C
4772 export LANGUAGE
4773
4774 # CDPATH.
4775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4776
4777
4778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4779 # ----------------------------------------
4780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4782 # script with STATUS, using 1 if that was 0.
4783 as_fn_error ()
4784 {
4785 as_status=$1; test $as_status -eq 0 && as_status=1
4786 if test "$4"; then
4787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4789 fi
4790 $as_echo "$as_me: error: $2" >&2
4791 as_fn_exit $as_status
4792 } # as_fn_error
4793
4794
4795 # as_fn_set_status STATUS
4796 # -----------------------
4797 # Set $? to STATUS, without forking.
4798 as_fn_set_status ()
4799 {
4800 return $1
4801 } # as_fn_set_status
4802
4803 # as_fn_exit STATUS
4804 # -----------------
4805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4806 as_fn_exit ()
4807 {
4808 set +e
4809 as_fn_set_status $1
4810 exit $1
4811 } # as_fn_exit
4812
4813 # as_fn_unset VAR
4814 # ---------------
4815 # Portably unset VAR.
4816 as_fn_unset ()
4817 {
4818 { eval $1=; unset $1;}
4819 }
4820 as_unset=as_fn_unset
4821 # as_fn_append VAR VALUE
4822 # ----------------------
4823 # Append the text in VALUE to the end of the definition contained in VAR. Take
4824 # advantage of any shell optimizations that allow amortized linear growth over
4825 # repeated appends, instead of the typical quadratic growth present in naive
4826 # implementations.
4827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4828 eval 'as_fn_append ()
4829 {
4830 eval $1+=\$2
4831 }'
4832 else
4833 as_fn_append ()
4834 {
4835 eval $1=\$$1\$2
4836 }
4837 fi # as_fn_append
4838
4839 # as_fn_arith ARG...
4840 # ------------------
4841 # Perform arithmetic evaluation on the ARGs, and store the result in the
4842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4843 # must be portable across $(()) and expr.
4844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4845 eval 'as_fn_arith ()
4846 {
4847 as_val=$(( $* ))
4848 }'
4849 else
4850 as_fn_arith ()
4851 {
4852 as_val=`expr "$@" || test $? -eq 1`
4853 }
4854 fi # as_fn_arith
4855
4856
4857 if expr a : '\(a\)' >/dev/null 2>&1 &&
4858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4859 as_expr=expr
4860 else
4861 as_expr=false
4862 fi
4863
4864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4865 as_basename=basename
4866 else
4867 as_basename=false
4868 fi
4869
4870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4871 as_dirname=dirname
4872 else
4873 as_dirname=false
4874 fi
4875
4876 as_me=`$as_basename -- "$0" ||
4877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4878 X"$0" : 'X\(//\)$' \| \
4879 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4880 $as_echo X/"$0" |
4881 sed '/^.*\/\([^/][^/]*\)\/*$/{
4882 s//\1/
4883 q
4884 }
4885 /^X\/\(\/\/\)$/{
4886 s//\1/
4887 q
4888 }
4889 /^X\/\(\/\).*/{
4890 s//\1/
4891 q
4892 }
4893 s/.*/./; q'`
4894
4895 # Avoid depending upon Character Ranges.
4896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4899 as_cr_digits='0123456789'
4900 as_cr_alnum=$as_cr_Letters$as_cr_digits
4901
4902 ECHO_C= ECHO_N= ECHO_T=
4903 case `echo -n x` in #(((((
4904 -n*)
4905 case `echo 'xy\c'` in
4906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4907 xy) ECHO_C='\c';;
4908 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4909 ECHO_T=' ';;
4910 esac;;
4911 *)
4912 ECHO_N='-n';;
4913 esac
4914
4915 rm -f conf$$ conf$$.exe conf$$.file
4916 if test -d conf$$.dir; then
4917 rm -f conf$$.dir/conf$$.file
4918 else
4919 rm -f conf$$.dir
4920 mkdir conf$$.dir 2>/dev/null
4921 fi
4922 if (echo >conf$$.file) 2>/dev/null; then
4923 if ln -s conf$$.file conf$$ 2>/dev/null; then
4924 as_ln_s='ln -s'
4925 # ... but there are two gotchas:
4926 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4927 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4928 # In both cases, we have to default to `cp -pR'.
4929 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4930 as_ln_s='cp -pR'
4931 elif ln conf$$.file conf$$ 2>/dev/null; then
4932 as_ln_s=ln
4933 else
4934 as_ln_s='cp -pR'
4935 fi
4936 else
4937 as_ln_s='cp -pR'
4938 fi
4939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4940 rmdir conf$$.dir 2>/dev/null
4941
4942
4943 # as_fn_mkdir_p
4944 # -------------
4945 # Create "$as_dir" as a directory, including parents if necessary.
4946 as_fn_mkdir_p ()
4947 {
4948
4949 case $as_dir in #(
4950 -*) as_dir=./$as_dir;;
4951 esac
4952 test -d "$as_dir" || eval $as_mkdir_p || {
4953 as_dirs=
4954 while :; do
4955 case $as_dir in #(
4956 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4957 *) as_qdir=$as_dir;;
4958 esac
4959 as_dirs="'$as_qdir' $as_dirs"
4960 as_dir=`$as_dirname -- "$as_dir" ||
4961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4962 X"$as_dir" : 'X\(//\)[^/]' \| \
4963 X"$as_dir" : 'X\(//\)$' \| \
4964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4965 $as_echo X"$as_dir" |
4966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4967 s//\1/
4968 q
4969 }
4970 /^X\(\/\/\)[^/].*/{
4971 s//\1/
4972 q
4973 }
4974 /^X\(\/\/\)$/{
4975 s//\1/
4976 q
4977 }
4978 /^X\(\/\).*/{
4979 s//\1/
4980 q
4981 }
4982 s/.*/./; q'`
4983 test -d "$as_dir" && break
4984 done
4985 test -z "$as_dirs" || eval "mkdir $as_dirs"
4986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4987
4988
4989 } # as_fn_mkdir_p
4990 if mkdir -p . 2>/dev/null; then
4991 as_mkdir_p='mkdir -p "$as_dir"'
4992 else
4993 test -d ./-p && rmdir ./-p
4994 as_mkdir_p=false
4995 fi
4996
4997
4998 # as_fn_executable_p FILE
4999 # -----------------------
5000 # Test if FILE is an executable regular file.
5001 as_fn_executable_p ()
5002 {
5003 test -f "$1" && test -x "$1"
5004 } # as_fn_executable_p
5005 as_test_x='test -x'
5006 as_executable_p=as_fn_executable_p
5007
5008 # Sed expression to map a string onto a valid CPP name.
5009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5010
5011 # Sed expression to map a string onto a valid variable name.
5012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5013
5014
5015 exec 6>&1
5016 ## ----------------------------------- ##
5017 ## Main body of $CONFIG_STATUS script. ##
5018 ## ----------------------------------- ##
5019 _ASEOF
5020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5021
5022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5023 # Save the log message, to keep $0 and so on meaningful, and to
5024 # report actual input values of CONFIG_FILES etc. instead of their
5025 # values after options handling.
5026 ac_log="
5027 This file was extended by RISC-V ISA Simulator $as_me ?, which was
5028 generated by GNU Autoconf 2.69. Invocation command line was
5029
5030 CONFIG_FILES = $CONFIG_FILES
5031 CONFIG_HEADERS = $CONFIG_HEADERS
5032 CONFIG_LINKS = $CONFIG_LINKS
5033 CONFIG_COMMANDS = $CONFIG_COMMANDS
5034 $ $0 $@
5035
5036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5037 "
5038
5039 _ACEOF
5040
5041 case $ac_config_files in *"
5042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5043 esac
5044
5045 case $ac_config_headers in *"
5046 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5047 esac
5048
5049
5050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5051 # Files that config.status was made for.
5052 config_files="$ac_config_files"
5053 config_headers="$ac_config_headers"
5054
5055 _ACEOF
5056
5057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5058 ac_cs_usage="\
5059 \`$as_me' instantiates files and other configuration actions
5060 from templates according to the current configuration. Unless the files
5061 and actions are specified as TAGs, all are instantiated by default.
5062
5063 Usage: $0 [OPTION]... [TAG]...
5064
5065 -h, --help print this help, then exit
5066 -V, --version print version number and configuration settings, then exit
5067 --config print configuration, then exit
5068 -q, --quiet, --silent
5069 do not print progress messages
5070 -d, --debug don't remove temporary files
5071 --recheck update $as_me by reconfiguring in the same conditions
5072 --file=FILE[:TEMPLATE]
5073 instantiate the configuration file FILE
5074 --header=FILE[:TEMPLATE]
5075 instantiate the configuration header FILE
5076
5077 Configuration files:
5078 $config_files
5079
5080 Configuration headers:
5081 $config_headers
5082
5083 Report bugs to <Andrew Waterman>."
5084
5085 _ACEOF
5086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5087 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5088 ac_cs_version="\\
5089 RISC-V ISA Simulator config.status ?
5090 configured by $0, generated by GNU Autoconf 2.69,
5091 with options \\"\$ac_cs_config\\"
5092
5093 Copyright (C) 2012 Free Software Foundation, Inc.
5094 This config.status script is free software; the Free Software Foundation
5095 gives unlimited permission to copy, distribute and modify it."
5096
5097 ac_pwd='$ac_pwd'
5098 srcdir='$srcdir'
5099 INSTALL='$INSTALL'
5100 test -n "\$AWK" || AWK=awk
5101 _ACEOF
5102
5103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5104 # The default lists apply if the user does not specify any file.
5105 ac_need_defaults=:
5106 while test $# != 0
5107 do
5108 case $1 in
5109 --*=?*)
5110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5112 ac_shift=:
5113 ;;
5114 --*=)
5115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5116 ac_optarg=
5117 ac_shift=:
5118 ;;
5119 *)
5120 ac_option=$1
5121 ac_optarg=$2
5122 ac_shift=shift
5123 ;;
5124 esac
5125
5126 case $ac_option in
5127 # Handling of the options.
5128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5129 ac_cs_recheck=: ;;
5130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5131 $as_echo "$ac_cs_version"; exit ;;
5132 --config | --confi | --conf | --con | --co | --c )
5133 $as_echo "$ac_cs_config"; exit ;;
5134 --debug | --debu | --deb | --de | --d | -d )
5135 debug=: ;;
5136 --file | --fil | --fi | --f )
5137 $ac_shift
5138 case $ac_optarg in
5139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5140 '') as_fn_error $? "missing file argument" ;;
5141 esac
5142 as_fn_append CONFIG_FILES " '$ac_optarg'"
5143 ac_need_defaults=false;;
5144 --header | --heade | --head | --hea )
5145 $ac_shift
5146 case $ac_optarg in
5147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5148 esac
5149 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5150 ac_need_defaults=false;;
5151 --he | --h)
5152 # Conflict between --help and --header
5153 as_fn_error $? "ambiguous option: \`$1'
5154 Try \`$0 --help' for more information.";;
5155 --help | --hel | -h )
5156 $as_echo "$ac_cs_usage"; exit ;;
5157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5158 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5159 ac_cs_silent=: ;;
5160
5161 # This is an error.
5162 -*) as_fn_error $? "unrecognized option: \`$1'
5163 Try \`$0 --help' for more information." ;;
5164
5165 *) as_fn_append ac_config_targets " $1"
5166 ac_need_defaults=false ;;
5167
5168 esac
5169 shift
5170 done
5171
5172 ac_configure_extra_args=
5173
5174 if $ac_cs_silent; then
5175 exec 6>/dev/null
5176 ac_configure_extra_args="$ac_configure_extra_args --silent"
5177 fi
5178
5179 _ACEOF
5180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5181 if \$ac_cs_recheck; then
5182 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5183 shift
5184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5185 CONFIG_SHELL='$SHELL'
5186 export CONFIG_SHELL
5187 exec "\$@"
5188 fi
5189
5190 _ACEOF
5191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5192 exec 5>>config.log
5193 {
5194 echo
5195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5196 ## Running $as_me. ##
5197 _ASBOX
5198 $as_echo "$ac_log"
5199 } >&5
5200
5201 _ACEOF
5202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5203 _ACEOF
5204
5205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5206
5207 # Handling of arguments.
5208 for ac_config_target in $ac_config_targets
5209 do
5210 case $ac_config_target in
5211 "riscv.mk") CONFIG_FILES="$CONFIG_FILES riscv.mk:riscv/riscv.mk.in" ;;
5212 "hwacha.mk") CONFIG_FILES="$CONFIG_FILES hwacha.mk:hwacha/hwacha.mk.in" ;;
5213 "dummy_rocc.mk") CONFIG_FILES="$CONFIG_FILES dummy_rocc.mk:dummy_rocc/dummy_rocc.mk.in" ;;
5214 "softfloat.mk") CONFIG_FILES="$CONFIG_FILES softfloat.mk:softfloat/softfloat.mk.in" ;;
5215 "spike_main.mk") CONFIG_FILES="$CONFIG_FILES spike_main.mk:spike_main/spike_main.mk.in" ;;
5216 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5217 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5218
5219 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5220 esac
5221 done
5222
5223
5224 # If the user did not use the arguments to specify the items to instantiate,
5225 # then the envvar interface is used. Set only those that are not.
5226 # We use the long form for the default assignment because of an extremely
5227 # bizarre bug on SunOS 4.1.3.
5228 if $ac_need_defaults; then
5229 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5230 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5231 fi
5232
5233 # Have a temporary directory for convenience. Make it in the build tree
5234 # simply because there is no reason against having it here, and in addition,
5235 # creating and moving files from /tmp can sometimes cause problems.
5236 # Hook for its removal unless debugging.
5237 # Note that there is a small window in which the directory will not be cleaned:
5238 # after its creation but before its name has been assigned to `$tmp'.
5239 $debug ||
5240 {
5241 tmp= ac_tmp=
5242 trap 'exit_status=$?
5243 : "${ac_tmp:=$tmp}"
5244 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5245 ' 0
5246 trap 'as_fn_exit 1' 1 2 13 15
5247 }
5248 # Create a (secure) tmp directory for tmp files.
5249
5250 {
5251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5252 test -d "$tmp"
5253 } ||
5254 {
5255 tmp=./conf$$-$RANDOM
5256 (umask 077 && mkdir "$tmp")
5257 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5258 ac_tmp=$tmp
5259
5260 # Set up the scripts for CONFIG_FILES section.
5261 # No need to generate them if there are no CONFIG_FILES.
5262 # This happens for instance with `./config.status config.h'.
5263 if test -n "$CONFIG_FILES"; then
5264
5265
5266 ac_cr=`echo X | tr X '\015'`
5267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5268 # But we know of no other shell where ac_cr would be empty at this
5269 # point, so we can use a bashism as a fallback.
5270 if test "x$ac_cr" = x; then
5271 eval ac_cr=\$\'\\r\'
5272 fi
5273 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5275 ac_cs_awk_cr='\\r'
5276 else
5277 ac_cs_awk_cr=$ac_cr
5278 fi
5279
5280 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5281 _ACEOF
5282
5283
5284 {
5285 echo "cat >conf$$subs.awk <<_ACEOF" &&
5286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5287 echo "_ACEOF"
5288 } >conf$$subs.sh ||
5289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5291 ac_delim='%!_!# '
5292 for ac_last_try in false false false false false :; do
5293 . ./conf$$subs.sh ||
5294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5295
5296 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5297 if test $ac_delim_n = $ac_delim_num; then
5298 break
5299 elif $ac_last_try; then
5300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5301 else
5302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5303 fi
5304 done
5305 rm -f conf$$subs.sh
5306
5307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5308 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5309 _ACEOF
5310 sed -n '
5311 h
5312 s/^/S["/; s/!.*/"]=/
5313 p
5314 g
5315 s/^[^!]*!//
5316 :repl
5317 t repl
5318 s/'"$ac_delim"'$//
5319 t delim
5320 :nl
5321 h
5322 s/\(.\{148\}\)..*/\1/
5323 t more1
5324 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5325 p
5326 n
5327 b repl
5328 :more1
5329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5330 p
5331 g
5332 s/.\{148\}//
5333 t nl
5334 :delim
5335 h
5336 s/\(.\{148\}\)..*/\1/
5337 t more2
5338 s/["\\]/\\&/g; s/^/"/; s/$/"/
5339 p
5340 b
5341 :more2
5342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5343 p
5344 g
5345 s/.\{148\}//
5346 t delim
5347 ' <conf$$subs.awk | sed '
5348 /^[^""]/{
5349 N
5350 s/\n//
5351 }
5352 ' >>$CONFIG_STATUS || ac_write_fail=1
5353 rm -f conf$$subs.awk
5354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5355 _ACAWK
5356 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5357 for (key in S) S_is_set[key] = 1
5358 FS = "\a"
5359
5360 }
5361 {
5362 line = $ 0
5363 nfields = split(line, field, "@")
5364 substed = 0
5365 len = length(field[1])
5366 for (i = 2; i < nfields; i++) {
5367 key = field[i]
5368 keylen = length(key)
5369 if (S_is_set[key]) {
5370 value = S[key]
5371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5372 len += length(value) + length(field[++i])
5373 substed = 1
5374 } else
5375 len += 1 + keylen
5376 }
5377
5378 print line
5379 }
5380
5381 _ACAWK
5382 _ACEOF
5383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5386 else
5387 cat
5388 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5389 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5390 _ACEOF
5391
5392 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5393 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5394 # trailing colons and then remove the whole line if VPATH becomes empty
5395 # (actually we leave an empty line to preserve line numbers).
5396 if test "x$srcdir" = x.; then
5397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5398 h
5399 s///
5400 s/^/:/
5401 s/[ ]*$/:/
5402 s/:\$(srcdir):/:/g
5403 s/:\${srcdir}:/:/g
5404 s/:@srcdir@:/:/g
5405 s/^:*//
5406 s/:*$//
5407 x
5408 s/\(=[ ]*\).*/\1/
5409 G
5410 s/\n//
5411 s/^[^=]*=[ ]*$//
5412 }'
5413 fi
5414
5415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5416 fi # test -n "$CONFIG_FILES"
5417
5418 # Set up the scripts for CONFIG_HEADERS section.
5419 # No need to generate them if there are no CONFIG_HEADERS.
5420 # This happens for instance with `./config.status Makefile'.
5421 if test -n "$CONFIG_HEADERS"; then
5422 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5423 BEGIN {
5424 _ACEOF
5425
5426 # Transform confdefs.h into an awk script `defines.awk', embedded as
5427 # here-document in config.status, that substitutes the proper values into
5428 # config.h.in to produce config.h.
5429
5430 # Create a delimiter string that does not exist in confdefs.h, to ease
5431 # handling of long lines.
5432 ac_delim='%!_!# '
5433 for ac_last_try in false false :; do
5434 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5435 if test -z "$ac_tt"; then
5436 break
5437 elif $ac_last_try; then
5438 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5439 else
5440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5441 fi
5442 done
5443
5444 # For the awk script, D is an array of macro values keyed by name,
5445 # likewise P contains macro parameters if any. Preserve backslash
5446 # newline sequences.
5447
5448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5449 sed -n '
5450 s/.\{148\}/&'"$ac_delim"'/g
5451 t rset
5452 :rset
5453 s/^[ ]*#[ ]*define[ ][ ]*/ /
5454 t def
5455 d
5456 :def
5457 s/\\$//
5458 t bsnl
5459 s/["\\]/\\&/g
5460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5461 D["\1"]=" \3"/p
5462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5463 d
5464 :bsnl
5465 s/["\\]/\\&/g
5466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5467 D["\1"]=" \3\\\\\\n"\\/p
5468 t cont
5469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5470 t cont
5471 d
5472 :cont
5473 n
5474 s/.\{148\}/&'"$ac_delim"'/g
5475 t clear
5476 :clear
5477 s/\\$//
5478 t bsnlc
5479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5480 d
5481 :bsnlc
5482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5483 b cont
5484 ' <confdefs.h | sed '
5485 s/'"$ac_delim"'/"\\\
5486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5487
5488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5489 for (key in D) D_is_set[key] = 1
5490 FS = "\a"
5491 }
5492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5493 line = \$ 0
5494 split(line, arg, " ")
5495 if (arg[1] == "#") {
5496 defundef = arg[2]
5497 mac1 = arg[3]
5498 } else {
5499 defundef = substr(arg[1], 2)
5500 mac1 = arg[2]
5501 }
5502 split(mac1, mac2, "(") #)
5503 macro = mac2[1]
5504 prefix = substr(line, 1, index(line, defundef) - 1)
5505 if (D_is_set[macro]) {
5506 # Preserve the white space surrounding the "#".
5507 print prefix "define", macro P[macro] D[macro]
5508 next
5509 } else {
5510 # Replace #undef with comments. This is necessary, for example,
5511 # in the case of _POSIX_SOURCE, which is predefined and required
5512 # on some systems where configure will not decide to define it.
5513 if (defundef == "undef") {
5514 print "/*", prefix defundef, macro, "*/"
5515 next
5516 }
5517 }
5518 }
5519 { print }
5520 _ACAWK
5521 _ACEOF
5522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5523 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5524 fi # test -n "$CONFIG_HEADERS"
5525
5526
5527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5528 shift
5529 for ac_tag
5530 do
5531 case $ac_tag in
5532 :[FHLC]) ac_mode=$ac_tag; continue;;
5533 esac
5534 case $ac_mode$ac_tag in
5535 :[FHL]*:*);;
5536 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5537 :[FH]-) ac_tag=-:-;;
5538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5539 esac
5540 ac_save_IFS=$IFS
5541 IFS=:
5542 set x $ac_tag
5543 IFS=$ac_save_IFS
5544 shift
5545 ac_file=$1
5546 shift
5547
5548 case $ac_mode in
5549 :L) ac_source=$1;;
5550 :[FH])
5551 ac_file_inputs=
5552 for ac_f
5553 do
5554 case $ac_f in
5555 -) ac_f="$ac_tmp/stdin";;
5556 *) # Look for the file first in the build tree, then in the source tree
5557 # (if the path is not absolute). The absolute path cannot be DOS-style,
5558 # because $ac_f cannot contain `:'.
5559 test -f "$ac_f" ||
5560 case $ac_f in
5561 [\\/$]*) false;;
5562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5563 esac ||
5564 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5565 esac
5566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5567 as_fn_append ac_file_inputs " '$ac_f'"
5568 done
5569
5570 # Let's still pretend it is `configure' which instantiates (i.e., don't
5571 # use $as_me), people would be surprised to read:
5572 # /* config.h. Generated by config.status. */
5573 configure_input='Generated from '`
5574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5575 `' by configure.'
5576 if test x"$ac_file" != x-; then
5577 configure_input="$ac_file. $configure_input"
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5579 $as_echo "$as_me: creating $ac_file" >&6;}
5580 fi
5581 # Neutralize special characters interpreted by sed in replacement strings.
5582 case $configure_input in #(
5583 *\&* | *\|* | *\\* )
5584 ac_sed_conf_input=`$as_echo "$configure_input" |
5585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5586 *) ac_sed_conf_input=$configure_input;;
5587 esac
5588
5589 case $ac_tag in
5590 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5592 esac
5593 ;;
5594 esac
5595
5596 ac_dir=`$as_dirname -- "$ac_file" ||
5597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5598 X"$ac_file" : 'X\(//\)[^/]' \| \
5599 X"$ac_file" : 'X\(//\)$' \| \
5600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5601 $as_echo X"$ac_file" |
5602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5603 s//\1/
5604 q
5605 }
5606 /^X\(\/\/\)[^/].*/{
5607 s//\1/
5608 q
5609 }
5610 /^X\(\/\/\)$/{
5611 s//\1/
5612 q
5613 }
5614 /^X\(\/\).*/{
5615 s//\1/
5616 q
5617 }
5618 s/.*/./; q'`
5619 as_dir="$ac_dir"; as_fn_mkdir_p
5620 ac_builddir=.
5621
5622 case "$ac_dir" in
5623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5624 *)
5625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5626 # A ".." for each directory in $ac_dir_suffix.
5627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5628 case $ac_top_builddir_sub in
5629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5631 esac ;;
5632 esac
5633 ac_abs_top_builddir=$ac_pwd
5634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5635 # for backward compatibility:
5636 ac_top_builddir=$ac_top_build_prefix
5637
5638 case $srcdir in
5639 .) # We are building in place.
5640 ac_srcdir=.
5641 ac_top_srcdir=$ac_top_builddir_sub
5642 ac_abs_top_srcdir=$ac_pwd ;;
5643 [\\/]* | ?:[\\/]* ) # Absolute name.
5644 ac_srcdir=$srcdir$ac_dir_suffix;
5645 ac_top_srcdir=$srcdir
5646 ac_abs_top_srcdir=$srcdir ;;
5647 *) # Relative name.
5648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5649 ac_top_srcdir=$ac_top_build_prefix$srcdir
5650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5651 esac
5652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5653
5654
5655 case $ac_mode in
5656 :F)
5657 #
5658 # CONFIG_FILE
5659 #
5660
5661 case $INSTALL in
5662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5664 esac
5665 _ACEOF
5666
5667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5668 # If the template does not know about datarootdir, expand it.
5669 # FIXME: This hack should be removed a few years after 2.60.
5670 ac_datarootdir_hack=; ac_datarootdir_seen=
5671 ac_sed_dataroot='
5672 /datarootdir/ {
5673 p
5674 q
5675 }
5676 /@datadir@/p
5677 /@docdir@/p
5678 /@infodir@/p
5679 /@localedir@/p
5680 /@mandir@/p'
5681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5682 *datarootdir*) ac_datarootdir_seen=yes;;
5683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5686 _ACEOF
5687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5688 ac_datarootdir_hack='
5689 s&@datadir@&$datadir&g
5690 s&@docdir@&$docdir&g
5691 s&@infodir@&$infodir&g
5692 s&@localedir@&$localedir&g
5693 s&@mandir@&$mandir&g
5694 s&\\\${datarootdir}&$datarootdir&g' ;;
5695 esac
5696 _ACEOF
5697
5698 # Neutralize VPATH when `$srcdir' = `.'.
5699 # Shell code in configure.ac might set extrasub.
5700 # FIXME: do we really want to maintain this feature?
5701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5702 ac_sed_extra="$ac_vpsub
5703 $extrasub
5704 _ACEOF
5705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5706 :t
5707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5708 s|@configure_input@|$ac_sed_conf_input|;t t
5709 s&@top_builddir@&$ac_top_builddir_sub&;t t
5710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5711 s&@srcdir@&$ac_srcdir&;t t
5712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5713 s&@top_srcdir@&$ac_top_srcdir&;t t
5714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5715 s&@builddir@&$ac_builddir&;t t
5716 s&@abs_builddir@&$ac_abs_builddir&;t t
5717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5718 s&@INSTALL@&$ac_INSTALL&;t t
5719 $ac_datarootdir_hack
5720 "
5721 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5722 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5723
5724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5725 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5727 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5729 which seems to be undefined. Please make sure it is defined" >&5
5730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5731 which seems to be undefined. Please make sure it is defined" >&2;}
5732
5733 rm -f "$ac_tmp/stdin"
5734 case $ac_file in
5735 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5736 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5737 esac \
5738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5739 ;;
5740 :H)
5741 #
5742 # CONFIG_HEADER
5743 #
5744 if test x"$ac_file" != x-; then
5745 {
5746 $as_echo "/* $configure_input */" \
5747 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5748 } >"$ac_tmp/config.h" \
5749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5750 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5752 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5753 else
5754 rm -f "$ac_file"
5755 mv "$ac_tmp/config.h" "$ac_file" \
5756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5757 fi
5758 else
5759 $as_echo "/* $configure_input */" \
5760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5761 || as_fn_error $? "could not create -" "$LINENO" 5
5762 fi
5763 ;;
5764
5765
5766 esac
5767
5768 done # for ac_tag
5769
5770
5771 as_fn_exit 0
5772 _ACEOF
5773 ac_clean_files=$ac_clean_files_save
5774
5775 test $ac_write_fail = 0 ||
5776 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5777
5778
5779 # configure is writing to config.log, and then calls config.status.
5780 # config.status does its own redirection, appending to config.log.
5781 # Unfortunately, on DOS this fails, as config.log is still kept open
5782 # by configure, so config.status won't be able to write to it; its
5783 # output is simply discarded. So we exec the FD to /dev/null,
5784 # effectively closing config.log, so it can be properly (re)opened and
5785 # appended to by config.status. When coming back to configure, we
5786 # need to make the FD available again.
5787 if test "$no_create" != yes; then
5788 ac_cs_success=:
5789 ac_config_status_args=
5790 test "$silent" = yes &&
5791 ac_config_status_args="$ac_config_status_args --quiet"
5792 exec 5>/dev/null
5793 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5794 exec 5>>config.log
5795 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5796 # would make configure fail if this is the last instruction.
5797 $ac_cs_success || as_fn_exit 1
5798 fi
5799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5802 fi
5803