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