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