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