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