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