* configure.ac (sim_hwflags): Clean up definition, AC_SUBST it.
[deliverable/binutils-gdb.git] / sim / ppc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 sim_hwflags
593 sim_fpu
594 sim_fpu_cflags
595 sim_targ_vals
596 sim_callback
597 sim_devzero
598 sim_termio
599 sim_stdio
600 sim_model_issue
601 sim_model
602 sim_monitor
603 sim_reserved
604 sim_trace
605 sim_timebase
606 sim_env
607 sim_hostbitsize
608 sim_igen_smp
609 sim_bswap
610 sim_pk_obj
611 sim_pk_src
612 sim_hw_obj
613 sim_hw_src
614 sim_icache
615 sim_filter
616 sim_jump
617 sim_decode_mechanism
618 sim_dup
619 sim_switch
620 sim_opcode
621 sim_config
622 sim_line_nr
623 sim_warnings
624 sim_cflags
625 RANLIB
626 AR
627 HDEFINES
628 CFLAGS_FOR_BUILD
629 CC_FOR_BUILD
630 LIBOBJS
631 target_os
632 target_vendor
633 target_cpu
634 target
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 REPORT_BUGS_TEXI
644 REPORT_BUGS_TO
645 PKGVERSION
646 EGREP
647 GREP
648 CPP
649 CATOBJEXT
650 GENCAT
651 INSTOBJEXT
652 DATADIRNAME
653 CATALOGS
654 POSUB
655 GMSGFMT
656 XGETTEXT
657 INCINTL
658 LIBINTL_DEP
659 LIBINTL
660 USE_NLS
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
667 CC
668 INSTALL_DATA
669 INSTALL_SCRIPT
670 INSTALL_PROGRAM
671 target_alias
672 host_alias
673 build_alias
674 LIBS
675 ECHO_T
676 ECHO_N
677 ECHO_C
678 DEFS
679 mandir
680 localedir
681 libdir
682 psdir
683 pdfdir
684 dvidir
685 htmldir
686 infodir
687 docdir
688 oldincludedir
689 includedir
690 localstatedir
691 sharedstatedir
692 sysconfdir
693 datadir
694 datarootdir
695 libexecdir
696 sbindir
697 bindir
698 program_transform_name
699 prefix
700 exec_prefix
701 PACKAGE_URL
702 PACKAGE_BUGREPORT
703 PACKAGE_STRING
704 PACKAGE_VERSION
705 PACKAGE_TARNAME
706 PACKAGE_NAME
707 PATH_SEPARATOR
708 SHELL
709 WERROR_CFLAGS
710 WARN_CFLAGS
711 sim_xor_endian
712 sim_stdcall
713 sim_smp
714 sim_reserved_bits
715 sim_regparm
716 sim_packages
717 sim_inline
718 sim_hw
719 sim_hw_objs
720 sim_hw_cflags
721 sim_default_model
722 sim_scache
723 sim_float
724 sim_hostendian
725 sim_endian
726 sim_bitsize
727 sim_assert
728 sim_alignment
729 sim_environment'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_sim_alignment
734 enable_sim_assert
735 enable_sim_bitsize
736 enable_sim_bswap
737 enable_sim_cflags
738 enable_sim_config
739 enable_sim_decode_mechanism
740 enable_sim_default_model
741 enable_sim_duplicate
742 enable_sim_endian
743 enable_sim_env
744 enable_sim_filter
745 enable_sim_float
746 enable_sim_hardware
747 enable_sim_hostbitsize
748 enable_sim_hostendian
749 enable_sim_icache
750 enable_sim_inline
751 enable_sim_jump
752 enable_sim_line_nr
753 enable_sim_model
754 enable_sim_model_issue
755 enable_sim_monitor
756 enable_sim_opcode
757 enable_sim_packages
758 enable_sim_regparm
759 enable_sim_reserved_bits
760 enable_sim_smp
761 enable_sim_stdcall
762 enable_sim_stdio
763 enable_sim_switch
764 enable_sim_timebase
765 enable_sim_trace
766 enable_sim_warnings
767 enable_sim_xor_endian
768 with_pkgversion
769 with_bugurl
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1399 --enable-sim-assert Specify whether to perform random assertions.
1400 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
1401 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
1402 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
1403 --enable-sim-config=file Override default config file
1404 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1405 --enable-sim-default-model=which Specify default PowerPC to model.
1406 --enable-sim-duplicate Expand (duplicate) semantic functions.
1407 --enable-sim-endian=endian Specify target byte endian orientation.
1408 --enable-sim-env=env Specify target environment (operating, virtual, user).
1409 --enable-sim-filter=rule Specify filter rules.
1410 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
1411 --enable-sim-hardware=list Specify the hardware to be included in the build.
1412 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
1413 --enable-sim-hostendian=end Specify host byte endian orientation.
1414 --enable-sim-icache=size Specify instruction-decode cache size and type.
1415 --enable-sim-inline=inlines Specify which functions should be inlined.
1416 --enable-sim-jump Jump between semantic code (instead of call/return).
1417 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
1418 --enable-sim-model=which Specify PowerPC to model.
1419 --enable-sim-model-issue Specify whether to simulate model specific actions
1420 --enable-sim-monitor=mon Specify whether to enable monitoring events.
1421 --enable-sim-opcode=which Override default opcode lookup.
1422 --enable-sim-packages=list Specify the packages to be included in the build.
1423 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
1424 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
1425 --enable-sim-smp=n Specify number of processors to configure for.
1426 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
1427 --enable-sim-stdio Specify whether to use stdio for console input/output.
1428 --enable-sim-switch Use a switch instead of a table for instruction call.
1429 --enable-sim-timebase Specify whether the PPC timebase is supported.
1430 --enable-sim-trace Specify whether tracing is supported.
1431 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1432 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1438 --with-bugurl=URL Direct users to URL to report a bug
1439
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CPP C preprocessor
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to the package provider.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 continue
1464 ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 configure
1517 generated by GNU Autoconf 2.64
1518
1519 Copyright (C) 2009 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523 exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1550 fi
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561 ac_retval=1
1562 fi
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_try_run LINENO
1569 # ----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1571 # that executables *can* be run.
1572 ac_fn_c_try_run ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>&5
1583 ac_status=$?
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1586 { { case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_try") 2>&5
1593 ac_status=$?
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; }; }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: program exited with status $ac_status" >&5
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602 ac_retval=$ac_status
1603 fi
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1607
1608 } # ac_fn_c_try_run
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658 else
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665 eval "$3=yes"
1666 else
1667 eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675
1676 } # ac_fn_c_check_header_compile
1677
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest$ac_exeext
1706 }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722 } # ac_fn_c_try_link
1723
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1728 # accordingly.
1729 ac_fn_c_check_header_mongrel ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1737 fi
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 else
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1752 else
1753 ac_header_compiler=no
1754 fi
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1758
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1768 else
1769 ac_header_preproc=no
1770 fi
1771 rm -f conftest.err conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1774
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1777 yes:no: )
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 ;;
1783 no:yes:* )
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1794 ;;
1795 esac
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 eval "$3=\$ac_header_compiler"
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808
1809 } # ac_fn_c_check_header_mongrel
1810
1811 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1812 # ----------------------------------------------------
1813 # Tries to find if the field MEMBER exists in type AGGR, after including
1814 # INCLUDES, setting cache variable VAR accordingly.
1815 ac_fn_c_check_member ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1819 $as_echo_n "checking for $2.$3... " >&6; }
1820 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $5
1826 int
1827 main ()
1828 {
1829 static $2 ac_aggr;
1830 if (ac_aggr.$3)
1831 return 0;
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 eval "$4=yes"
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $5
1842 int
1843 main ()
1844 {
1845 static $2 ac_aggr;
1846 if (sizeof ac_aggr.$3)
1847 return 0;
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853 eval "$4=yes"
1854 else
1855 eval "$4=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$4
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
1866 } # ac_fn_c_check_member
1867
1868 # ac_fn_c_check_decl LINENO SYMBOL VAR
1869 # ------------------------------------
1870 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1871 ac_fn_c_check_decl ()
1872 {
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1875 $as_echo_n "checking whether $2 is declared... " >&6; }
1876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main ()
1884 {
1885 #ifndef $2
1886 (void) $2;
1887 #endif
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904
1905 } # ac_fn_c_check_decl
1906
1907 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908 # -------------------------------------------
1909 # Tests whether TYPE exists after having included INCLUDES, setting cache
1910 # variable VAR accordingly.
1911 ac_fn_c_check_type ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 eval "$3=no"
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof ($2))
1927 return 0;
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 $4
1936 int
1937 main ()
1938 {
1939 if (sizeof (($2)))
1940 return 0;
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946
1947 else
1948 eval "$3=yes"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_type
1960
1961 # ac_fn_c_check_func LINENO FUNC VAR
1962 # ----------------------------------
1963 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1964 ac_fn_c_check_func ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1976 #define $2 innocuous_$2
1977
1978 /* System header to define __stub macros and hopefully few prototypes,
1979 which can conflict with char $2 (); below.
1980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1981 <limits.h> exists even on freestanding compilers. */
1982
1983 #ifdef __STDC__
1984 # include <limits.h>
1985 #else
1986 # include <assert.h>
1987 #endif
1988
1989 #undef $2
1990
1991 /* Override any GCC internal prototype to avoid an error.
1992 Use char because int might match the return type of a GCC
1993 builtin and then its argument prototype would still apply. */
1994 #ifdef __cplusplus
1995 extern "C"
1996 #endif
1997 char $2 ();
1998 /* The GNU C library defines this for functions which it implements
1999 to always fail with ENOSYS. Some functions are actually named
2000 something starting with __ and the normal name is an alias. */
2001 #if defined __stub_$2 || defined __stub___$2
2002 choke me
2003 #endif
2004
2005 int
2006 main ()
2007 {
2008 return $2 ();
2009 ;
2010 return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_link "$LINENO"; then :
2014 eval "$3=yes"
2015 else
2016 eval "$3=no"
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext \
2019 conftest$ac_exeext conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025
2026 } # ac_fn_c_check_func
2027 cat >config.log <<_ACEOF
2028 This file contains any messages produced by compilers while
2029 running configure, to aid debugging if configure makes a mistake.
2030
2031 It was created by $as_me, which was
2032 generated by GNU Autoconf 2.64. Invocation command line was
2033
2034 $ $0 $@
2035
2036 _ACEOF
2037 exec 5>>config.log
2038 {
2039 cat <<_ASUNAME
2040 ## --------- ##
2041 ## Platform. ##
2042 ## --------- ##
2043
2044 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2045 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2046 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2047 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2048 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2049
2050 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2051 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2052
2053 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2054 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2055 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2056 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2057 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2058 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2059 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2060
2061 _ASUNAME
2062
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 $as_echo "PATH: $as_dir"
2069 done
2070 IFS=$as_save_IFS
2071
2072 } >&5
2073
2074 cat >&5 <<_ACEOF
2075
2076
2077 ## ----------- ##
2078 ## Core tests. ##
2079 ## ----------- ##
2080
2081 _ACEOF
2082
2083
2084 # Keep a trace of the command line.
2085 # Strip out --no-create and --no-recursion so they do not pile up.
2086 # Strip out --silent because we don't want to record it for future runs.
2087 # Also quote any args containing shell meta-characters.
2088 # Make two passes to allow for proper duplicate-argument suppression.
2089 ac_configure_args=
2090 ac_configure_args0=
2091 ac_configure_args1=
2092 ac_must_keep_next=false
2093 for ac_pass in 1 2
2094 do
2095 for ac_arg
2096 do
2097 case $ac_arg in
2098 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2100 | -silent | --silent | --silen | --sile | --sil)
2101 continue ;;
2102 *\'*)
2103 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2104 esac
2105 case $ac_pass in
2106 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2107 2)
2108 as_fn_append ac_configure_args1 " '$ac_arg'"
2109 if test $ac_must_keep_next = true; then
2110 ac_must_keep_next=false # Got value, back to normal.
2111 else
2112 case $ac_arg in
2113 *=* | --config-cache | -C | -disable-* | --disable-* \
2114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2116 | -with-* | --with-* | -without-* | --without-* | --x)
2117 case "$ac_configure_args0 " in
2118 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2119 esac
2120 ;;
2121 -* ) ac_must_keep_next=true ;;
2122 esac
2123 fi
2124 as_fn_append ac_configure_args " '$ac_arg'"
2125 ;;
2126 esac
2127 done
2128 done
2129 { ac_configure_args0=; unset ac_configure_args0;}
2130 { ac_configure_args1=; unset ac_configure_args1;}
2131
2132 # When interrupted or exit'd, cleanup temporary files, and complete
2133 # config.log. We remove comments because anyway the quotes in there
2134 # would cause problems or look ugly.
2135 # WARNING: Use '\'' to represent an apostrophe within the trap.
2136 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2137 trap 'exit_status=$?
2138 # Save into config.log some information that might help in debugging.
2139 {
2140 echo
2141
2142 cat <<\_ASBOX
2143 ## ---------------- ##
2144 ## Cache variables. ##
2145 ## ---------------- ##
2146 _ASBOX
2147 echo
2148 # The following way of writing the cache mishandles newlines in values,
2149 (
2150 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2151 eval ac_val=\$$ac_var
2152 case $ac_val in #(
2153 *${as_nl}*)
2154 case $ac_var in #(
2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 esac
2158 case $ac_var in #(
2159 _ | IFS | as_nl) ;; #(
2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2161 *) { eval $ac_var=; unset $ac_var;} ;;
2162 esac ;;
2163 esac
2164 done
2165 (set) 2>&1 |
2166 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2167 *${as_nl}ac_space=\ *)
2168 sed -n \
2169 "s/'\''/'\''\\\\'\'''\''/g;
2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 ;; #(
2172 *)
2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2174 ;;
2175 esac |
2176 sort
2177 )
2178 echo
2179
2180 cat <<\_ASBOX
2181 ## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##
2184 _ASBOX
2185 echo
2186 for ac_var in $ac_subst_vars
2187 do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in
2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191 esac
2192 $as_echo "$ac_var='\''$ac_val'\''"
2193 done | sort
2194 echo
2195
2196 if test -n "$ac_subst_files"; then
2197 cat <<\_ASBOX
2198 ## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##
2201 _ASBOX
2202 echo
2203 for ac_var in $ac_subst_files
2204 do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2212 fi
2213
2214 if test -s confdefs.h; then
2215 cat <<\_ASBOX
2216 ## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##
2219 _ASBOX
2220 echo
2221 cat confdefs.h
2222 echo
2223 fi
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2227 } >&5
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 exit $exit_status
2231 ' 0
2232 for ac_signal in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 done
2235 ac_signal=0
2236
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2239
2240 $as_echo "/* confdefs.h */" > confdefs.h
2241
2242 # Predefined preprocessor variables.
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2266 _ACEOF
2267
2268
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2271 ac_site_file1=NONE
2272 ac_site_file2=NONE
2273 if test -n "$CONFIG_SITE"; then
2274 ac_site_file1=$CONFIG_SITE
2275 elif test "x$prefix" != xNONE; then
2276 ac_site_file1=$prefix/share/config.site
2277 ac_site_file2=$prefix/etc/config.site
2278 else
2279 ac_site_file1=$ac_default_prefix/share/config.site
2280 ac_site_file2=$ac_default_prefix/etc/config.site
2281 fi
2282 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2283 do
2284 test "x$ac_site_file" = xNONE && continue
2285 if test -r "$ac_site_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288 sed 's/^/| /' "$ac_site_file" >&5
2289 . "$ac_site_file"
2290 fi
2291 done
2292
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special
2295 # files actually), so we avoid doing that.
2296 if test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2299 case $cache_file in
2300 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2301 *) . "./$cache_file";;
2302 esac
2303 fi
2304 else
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2307 >$cache_file
2308 fi
2309
2310 # Check that the precious variables saved in the cache have kept the same
2311 # value.
2312 ac_cache_corrupted=false
2313 for ac_var in $ac_precious_vars; do
2314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2315 eval ac_new_set=\$ac_env_${ac_var}_set
2316 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2317 eval ac_new_val=\$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2319 set,)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,set)
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted=: ;;
2327 ,);;
2328 *)
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w=`echo x $ac_old_val`
2332 ac_new_val_w=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted=:
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\$ac_old_val
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2346 fi;;
2347 esac
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2350 case $ac_new_val in
2351 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg=$ac_var=$ac_new_val ;;
2353 esac
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 esac
2358 fi
2359 done
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2366 fi
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2370
2371 ac_ext=c
2372 ac_cpp='$CPP $CPPFLAGS'
2373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378
2379
2380
2381
2382 ac_aux_dir=
2383 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2384 for ac_t in install-sh install.sh shtool; do
2385 if test -f "$ac_dir/$ac_t"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/$ac_t -c"
2388 break 2
2389 fi
2390 done
2391 done
2392 if test -z "$ac_aux_dir"; then
2393 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2394 fi
2395
2396 # These three variables are undocumented and unsupported,
2397 # and are intended to be withdrawn in a future Autoconf release.
2398 # They can cause serious problems if a builder's source tree is in a directory
2399 # whose full name contains unusual characters.
2400 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2401 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2402 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2403
2404
2405 # Find a good install program. We prefer a C program (faster),
2406 # so one script is as good as another. But avoid the broken or
2407 # incompatible versions:
2408 # SysV /etc/install, /usr/sbin/install
2409 # SunOS /usr/etc/install
2410 # IRIX /sbin/install
2411 # AIX /bin/install
2412 # AmigaOS /C/install, which installs bootblocks on floppy discs
2413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2416 # OS/2's system install, which has a completely different semantic
2417 # ./install, which can be erroneously created by make from ./install.sh.
2418 # Reject install programs that cannot install multiple files.
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2420 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2421 if test -z "$INSTALL"; then
2422 if test "${ac_cv_path_install+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 # Account for people who put trailing slashes in PATH elements.
2431 case $as_dir/ in #((
2432 ./ | .// | /[cC]/* | \
2433 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2434 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2435 /usr/ucb/* ) ;;
2436 *)
2437 # OSF1 and SCO ODT 3.0 have their own names for install.
2438 # Don't use installbsd from OSF since it installs stuff as root
2439 # by default.
2440 for ac_prog in ginstall scoinst install; do
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2443 if test $ac_prog = install &&
2444 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445 # AIX install. It has an incompatible calling convention.
2446 :
2447 elif test $ac_prog = install &&
2448 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2449 # program-specific install script used by HP pwplus--don't use.
2450 :
2451 else
2452 rm -rf conftest.one conftest.two conftest.dir
2453 echo one > conftest.one
2454 echo two > conftest.two
2455 mkdir conftest.dir
2456 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2457 test -s conftest.one && test -s conftest.two &&
2458 test -s conftest.dir/conftest.one &&
2459 test -s conftest.dir/conftest.two
2460 then
2461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2462 break 3
2463 fi
2464 fi
2465 fi
2466 done
2467 done
2468 ;;
2469 esac
2470
2471 done
2472 IFS=$as_save_IFS
2473
2474 rm -rf conftest.one conftest.two conftest.dir
2475
2476 fi
2477 if test "${ac_cv_path_install+set}" = set; then
2478 INSTALL=$ac_cv_path_install
2479 else
2480 # As a last resort, use the slow shell script. Don't cache a
2481 # value for INSTALL within a source directory, because that will
2482 # break other packages using the cache if that directory is
2483 # removed, or if the value is a relative name.
2484 INSTALL=$ac_install_sh
2485 fi
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2488 $as_echo "$INSTALL" >&6; }
2489
2490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2491 # It thinks the first close brace ends the variable substitution.
2492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2493
2494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2495
2496 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2497
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2505 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 CC=$ac_cv_prog_CC
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540
2541 fi
2542 if test -z "$ac_cv_prog_CC"; then
2543 ac_ct_CC=$CC
2544 # Extract the first word of "gcc", so it can be a program name with args.
2545 set dummy gcc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 if test -n "$ac_ct_CC"; then
2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_ac_ct_CC="gcc"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2572 if test -n "$ac_ct_CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2574 $as_echo "$ac_ct_CC" >&6; }
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 fi
2579
2580 if test "x$ac_ct_CC" = x; then
2581 CC=""
2582 else
2583 case $cross_compiling:$ac_tool_warned in
2584 yes:)
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2587 ac_tool_warned=yes ;;
2588 esac
2589 CC=$ac_ct_CC
2590 fi
2591 else
2592 CC="$ac_cv_prog_CC"
2593 fi
2594
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2598 set dummy ${ac_tool_prefix}cc; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 fi
2636 if test -z "$CC"; then
2637 # Extract the first word of "cc", so it can be a program name with args.
2638 set dummy cc; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 ac_prog_rejected=no
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2656 ac_prog_rejected=yes
2657 continue
2658 fi
2659 ac_cv_prog_CC="cc"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2662 fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 if test $ac_prog_rejected = yes; then
2668 # We found a bogon in the path, so make sure we never use it.
2669 set dummy $ac_cv_prog_CC
2670 shift
2671 if test $# != 0; then
2672 # We chose a different compiler from the bogus one.
2673 # However, it has the same basename, so the bogon will be chosen
2674 # first if we set CC to just the basename; use the full file name.
2675 shift
2676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2677 fi
2678 fi
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 fi
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 for ac_prog in cl.exe
2695 do
2696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2716 fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733 test -n "$CC" && break
2734 done
2735 fi
2736 if test -z "$CC"; then
2737 ac_ct_CC=$CC
2738 for ac_prog in cl.exe
2739 do
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776
2777 test -n "$ac_ct_CC" && break
2778 done
2779
2780 if test "x$ac_ct_CC" = x; then
2781 CC=""
2782 else
2783 case $cross_compiling:$ac_tool_warned in
2784 yes:)
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787 ac_tool_warned=yes ;;
2788 esac
2789 CC=$ac_ct_CC
2790 fi
2791 fi
2792
2793 fi
2794
2795
2796 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 as_fn_error "no acceptable C compiler found in \$PATH
2799 See \`config.log' for more details." "$LINENO" 5; }
2800
2801 # Provide some information about the compiler.
2802 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2803 set X $ac_compile
2804 ac_compiler=$2
2805 for ac_option in --version -v -V -qversion; do
2806 { { ac_try="$ac_compiler $ac_option >&5"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2814 ac_status=$?
2815 if test -s conftest.err; then
2816 sed '10a\
2817 ... rest of stderr output deleted ...
2818 10q' conftest.err >conftest.er1
2819 cat conftest.er1 >&5
2820 rm -f conftest.er1 conftest.err
2821 fi
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }
2824 done
2825
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2828
2829 int
2830 main ()
2831 {
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2841 # of exeext.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2843 $as_echo_n "checking for C compiler default output file name... " >&6; }
2844 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2845
2846 # The possible output files:
2847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2848
2849 ac_rmfiles=
2850 for ac_file in $ac_files
2851 do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856 done
2857 rm -f $ac_rmfiles
2858
2859 if { { ac_try="$ac_link_default"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865 $as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_link_default") 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }; then :
2870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2873 # so that the user can short-circuit this test for compilers unknown to
2874 # Autoconf.
2875 for ac_file in $ac_files ''
2876 do
2877 test -f "$ac_file" || continue
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2880 ;;
2881 [ab].out )
2882 # We found the default executable, but exeext='' is most
2883 # certainly right.
2884 break;;
2885 *.* )
2886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2887 then :; else
2888 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 fi
2890 # We set ac_cv_exeext here because the later test for it is not
2891 # safe: cross compilers may not add the suffix if given an `-o'
2892 # argument, so we may need to know it at that point already.
2893 # Even if this section looks crufty: it has the advantage of
2894 # actually working.
2895 break;;
2896 * )
2897 break;;
2898 esac
2899 done
2900 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901
2902 else
2903 ac_file=''
2904 fi
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2906 $as_echo "$ac_file" >&6; }
2907 if test -z "$ac_file"; then :
2908 $as_echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 { as_fn_set_status 77
2914 as_fn_error "C compiler cannot create executables
2915 See \`config.log' for more details." "$LINENO" 5; }; }
2916 fi
2917 ac_exeext=$ac_cv_exeext
2918
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2922 $as_echo_n "checking whether the C compiler works... " >&6; }
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925 if { ac_try='./$ac_file'
2926 { { case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_try") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; }; then
2936 cross_compiling=no
2937 else
2938 if test "$cross_compiling" = maybe; then
2939 cross_compiling=yes
2940 else
2941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error "cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." "$LINENO" 5; }
2946 fi
2947 fi
2948 fi
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950 $as_echo "yes" >&6; }
2951
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2959 $as_echo "$cross_compiling" >&6; }
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error "cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." "$LINENO" 5; }
2992 fi
2993 rm -f conftest$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2996
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if test "${ac_cv_objext+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035 done
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error "cannot compute suffix of object files: cannot compile
3043 See \`config.log' for more details." "$LINENO" 5; }
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 if ac_fn_c_try_compile "$LINENO"; then :
3071 ac_compiler_gnu=yes
3072 else
3073 ac_compiler_gnu=no
3074 fi
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3082 GCC=yes
3083 else
3084 GCC=
3085 fi
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110 else
3111 CFLAGS=""
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124
3125 else
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 CFLAGS="-g"
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_g=yes
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3155 CFLAGS="-g -O2"
3156 else
3157 CFLAGS="-g"
3158 fi
3159 else
3160 if test "$GCC" = yes; then
3161 CFLAGS="-O2"
3162 else
3163 CFLAGS=
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_cv_prog_cc_c89=no
3172 ac_save_CC=$CC
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3183 char **p;
3184 int i;
3185 {
3186 return p[i];
3187 }
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3189 {
3190 char *s;
3191 va_list v;
3192 va_start (v,p);
3193 s = g (p, va_arg (v,int));
3194 va_end (v);
3195 return s;
3196 }
3197
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3206
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3209 #define FOO(x) 'x'
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3211
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3216 int argc;
3217 char **argv;
3218 int
3219 main ()
3220 {
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3228 do
3229 CC="$ac_save_CC $ac_arg"
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_c89=$ac_arg
3232 fi
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 done
3236 rm -f conftest.$ac_ext
3237 CC=$ac_save_CC
3238
3239 fi
3240 # AC_CACHE_VAL
3241 case "x$ac_cv_prog_cc_c89" in
3242 x)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244 $as_echo "none needed" >&6; } ;;
3245 xno)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247 $as_echo "unsupported" >&6; } ;;
3248 *)
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3252 esac
3253 if test "x$ac_cv_prog_cc_c89" != xno; then :
3254
3255 fi
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262
3263
3264 # Put a plausible default for CC_FOR_BUILD in Makefile.
3265 if test "x$cross_compiling" = "xno"; then
3266 CC_FOR_BUILD='$(CC)'
3267 else
3268 CC_FOR_BUILD=gcc
3269 fi
3270 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3271
3272 ALL_LINGUAS=
3273 # If we haven't got the data from the intl directory,
3274 # assume NLS is disabled.
3275 USE_NLS=no
3276 LIBINTL=
3277 LIBINTL_DEP=
3278 INCINTL=
3279 XGETTEXT=
3280 GMSGFMT=
3281 POSUB=
3282
3283 if test -f ../../intl/config.intl; then
3284 . ../../intl/config.intl
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3287 $as_echo_n "checking whether NLS is requested... " >&6; }
3288 if test x"$USE_NLS" != xyes; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3294
3295 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3296
3297
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3299 $as_echo_n "checking for catalogs to be installed... " >&6; }
3300 # Look for .po and .gmo files in the source directory.
3301 CATALOGS=
3302 XLINGUAS=
3303 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3304 # If there aren't any .gmo files the shell will give us the
3305 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3306 # weeded out.
3307 case "$cat" in *\**)
3308 continue;;
3309 esac
3310 # The quadruple backslash is collapsed to a double backslash
3311 # by the backticks, then collapsed again by the double quotes,
3312 # leaving us with one backslash in the sed expression (right
3313 # before the dot that mustn't act as a wildcard).
3314 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3315 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3316 # The user is allowed to set LINGUAS to a list of languages to
3317 # install catalogs for. If it's empty that means "all of them."
3318 if test "x$LINGUAS" = x; then
3319 CATALOGS="$CATALOGS $cat"
3320 XLINGUAS="$XLINGUAS $lang"
3321 else
3322 case "$LINGUAS" in *$lang*)
3323 CATALOGS="$CATALOGS $cat"
3324 XLINGUAS="$XLINGUAS $lang"
3325 ;;
3326 esac
3327 fi
3328 done
3329 LINGUAS="$XLINGUAS"
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3331 $as_echo "$LINGUAS" >&6; }
3332
3333
3334 DATADIRNAME=share
3335
3336 INSTOBJEXT=.mo
3337
3338 GENCAT=gencat
3339
3340 CATOBJEXT=.gmo
3341
3342 fi
3343
3344
3345 # Check whether --enable-sim-alignment was given.
3346 if test "${enable_sim_alignment+set}" = set; then :
3347 enableval=$enable_sim_alignment; case "${enableval}" in
3348 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3349 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3350 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3351 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3352 esac
3353 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3354 echo "Setting alignment flags = $sim_alignment" 6>&1
3355 fi
3356 else
3357 sim_alignment=""
3358 fi
3359
3360
3361 # Check whether --enable-sim-assert was given.
3362 if test "${enable_sim_assert+set}" = set; then :
3363 enableval=$enable_sim_assert; case "${enableval}" in
3364 yes) sim_assert="-DWITH_ASSERT=1";;
3365 no) sim_assert="-DWITH_ASSERT=0";;
3366 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
3367 esac
3368 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3369 echo "Setting assert flags = $sim_assert" 6>&1
3370 fi
3371 else
3372 sim_assert=""
3373 fi
3374
3375
3376 # Check whether --enable-sim-bitsize was given.
3377 if test "${enable_sim_bitsize+set}" = set; then :
3378 enableval=$enable_sim_bitsize; case "${enableval}" in
3379 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3380 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3381 esac
3382 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3383 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3384 fi
3385 else
3386 sim_bitsize=""
3387 fi
3388
3389
3390 # Check whether --enable-sim-bswap was given.
3391 if test "${enable_sim_bswap+set}" = set; then :
3392 enableval=$enable_sim_bswap; case "${enableval}" in
3393 yes) sim_bswap="-DWITH_BSWAP=1";;
3394 no) sim_bswap="-DWITH_BSWAP=0";;
3395 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
3396 esac
3397 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3398 echo "Setting bswap flags = $sim_bswap" 6>&1
3399 fi
3400 else
3401 sim_bswap=""
3402 fi
3403
3404
3405 # Check whether --enable-sim-cflags was given.
3406 if test "${enable_sim_cflags+set}" = set; then :
3407 enableval=$enable_sim_cflags; case "${enableval}" in
3408 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3409 no) sim_cflags="";;
3410 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3411 esac
3412 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3413 echo "Setting sim cflags = $sim_cflags" 6>&1
3414 fi
3415 else
3416 sim_cflags=""
3417 fi
3418
3419
3420 # Check whether --enable-sim-config was given.
3421 if test "${enable_sim_config+set}" = set; then :
3422 enableval=$enable_sim_config; case "${enableval}" in
3423 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3424 *) if test -f "${srcdir}/${enableval}"; then
3425 sim_config="${enableval}";
3426 elif test -f "${srcdir}/${enableval}-config.h"; then
3427 sim_config="${enableval}-config.h"
3428 else
3429 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
3430 sim_config=std-config.h
3431 fi;;
3432 esac
3433 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3434 echo "Setting config flags = $sim_config" 6>&1
3435 fi
3436 else
3437 sim_config="std-config.h"
3438 if test x"$silent" != x"yes"; then
3439 echo "Setting config flags = $sim_config" 6>&1
3440 fi
3441 fi
3442
3443
3444 # Check whether --enable-sim-decode-mechanism was given.
3445 if test "${enable_sim_decode_mechanism+set}" = set; then :
3446 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3447 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3448 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3449 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3450 sim_decode_mechanism="switch";;
3451 esac
3452 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3453 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3454 fi
3455 else
3456 sim_decode_mechanism=""
3457 if test x"$silent" != x"yes"; then
3458 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3459 fi
3460 fi
3461
3462
3463 # Check whether --enable-sim-default-model was given.
3464 if test "${enable_sim_default_model+set}" = set; then :
3465 enableval=$enable_sim_default_model; case "${enableval}" in
3466 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3467 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3468 esac
3469 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3470 echo "Setting default-model flags = $sim_default_model" 6>&1
3471 fi
3472 else
3473 sim_default_model=""
3474 fi
3475
3476
3477 # Check whether --enable-sim-duplicate was given.
3478 if test "${enable_sim_duplicate+set}" = set; then :
3479 enableval=$enable_sim_duplicate; case "${enableval}" in
3480 yes) sim_dup="-E";;
3481 no) sim_dup="";;
3482 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3483 esac
3484 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3485 echo "Setting duplicate flags = $sim_dup" 6>&1
3486 fi
3487 else
3488 sim_dup="-E"
3489 if test x"$silent" != x"yes"; then
3490 echo "Setting duplicate flags = $sim_dup" 6>&1
3491 fi
3492 fi
3493
3494
3495 # Check whether --enable-sim-endian was given.
3496 if test "${enable_sim_endian+set}" = set; then :
3497 enableval=$enable_sim_endian; case "${enableval}" in
3498 yes) case "$target" in
3499 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3500 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3501 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3502 esac;;
3503 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3504 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3505 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3506 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3507 esac
3508 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3509 echo "Setting endian flags = $sim_endian" 6>&1
3510 fi
3511 else
3512 sim_endian=""
3513 fi
3514
3515
3516 # Check whether --enable-sim-env was given.
3517 if test "${enable_sim_env+set}" = set; then :
3518 enableval=$enable_sim_env; case "${enableval}" in
3519 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3520 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3521 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3522 no) sim_env="-DWITH_ENVIRONMENT=0";;
3523 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
3524 esac
3525 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3526 echo "Setting env flags = $sim_env" 6>&1
3527 fi
3528 else
3529 sim_env=""
3530 fi
3531
3532
3533 # Check whether --enable-sim-filter was given.
3534 if test "${enable_sim_filter+set}" = set; then :
3535 enableval=$enable_sim_filter; case "${enableval}" in
3536 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3537 no) sim_filter="";;
3538 *) sim_filter="-F $enableval";;
3539 esac
3540 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3541 echo "Setting filter flags = $sim_filter" 6>&1
3542 fi
3543 else
3544 sim_filter="-F 32,f,o"
3545 if test x"$silent" != x"yes"; then
3546 echo "Setting filter flags = $sim_filter" 6>&1
3547 fi
3548 fi
3549
3550
3551 # Check whether --enable-sim-float was given.
3552 if test "${enable_sim_float+set}" = set; then :
3553 enableval=$enable_sim_float; case "${enableval}" in
3554 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3555 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3556 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3557 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3558 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3559 esac
3560 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3561 echo "Setting float flags = $sim_float" 6>&1
3562 fi
3563 else
3564
3565 case "${target}" in
3566 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3567 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3568 *) sim_float=""
3569 esac
3570
3571 fi
3572
3573
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3575 $as_echo_n "checking if union semun defined... " >&6; }
3576 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 #include <sys/types.h>
3583 #include <sys/ipc.h>
3584 #include <sys/sem.h>
3585 int
3586 main ()
3587 {
3588 union semun arg ;
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_has_union_semun="yes"
3595 else
3596 ac_cv_has_union_semun="no"
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3600 $as_echo "$ac_cv_has_union_semun" >&6; }
3601
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3604 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3605
3606
3607 if test "$ac_cv_has_union_semun" = "yes"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3609 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3610 if test "${ac_cv_sysv_sem+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613
3614 if test "$cross_compiling" = yes; then :
3615 :
3616 else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619
3620 #include <sys/types.h>
3621 #include <sys/ipc.h>
3622 #include <sys/sem.h>
3623 int main () {
3624 union semun arg ;
3625
3626 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3627 if (id == -1)
3628 exit(1);
3629 arg.val = 0; /* avoid implicit type cast to union */
3630 if (semctl(id, 0, IPC_RMID, arg) == -1)
3631 exit(1);
3632 exit(0);
3633 }
3634
3635 _ACEOF
3636 if ac_fn_c_try_run "$LINENO"; then :
3637 ac_cv_sysv_sem="yes"
3638 else
3639 ac_cv_sysv_sem="no"
3640 fi
3641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3642 conftest.$ac_objext conftest.beam conftest.$ac_ext
3643 fi
3644
3645
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3648 $as_echo "$ac_cv_sysv_sem" >&6; }
3649 else # semun is not defined
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3651 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3652 if test "${ac_cv_sysv_sem+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655
3656 if test "$cross_compiling" = yes; then :
3657 :
3658 else
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661
3662 #include <sys/types.h>
3663 #include <sys/ipc.h>
3664 #include <sys/sem.h>
3665 union semun {
3666 int val;
3667 struct semid_ds *buf;
3668 ushort *array;
3669 };
3670 int main () {
3671 union semun arg ;
3672
3673 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3674 if (id == -1)
3675 exit(1);
3676 arg.val = 0; /* avoid implicit type cast to union */
3677 if (semctl(id, 0, IPC_RMID, arg) == -1)
3678 exit(1);
3679 exit(0);
3680 }
3681
3682 _ACEOF
3683 if ac_fn_c_try_run "$LINENO"; then :
3684 ac_cv_sysv_sem="yes"
3685 else
3686 ac_cv_sysv_sem="no"
3687 fi
3688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3689 conftest.$ac_objext conftest.beam conftest.$ac_ext
3690 fi
3691
3692
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3695 $as_echo "$ac_cv_sysv_sem" >&6; }
3696 fi
3697
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3699 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3700 if test "${ac_cv_sysv_shm+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703
3704 if test "$cross_compiling" = yes; then :
3705 :
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 #include <sys/types.h>
3711 #include <sys/ipc.h>
3712 #include <sys/shm.h>
3713 int main () {
3714 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3715 if (id == -1)
3716 exit(1);
3717 if (shmctl(id, IPC_RMID, 0) == -1)
3718 exit(1);
3719 exit(0);
3720 }
3721
3722 _ACEOF
3723 if ac_fn_c_try_run "$LINENO"; then :
3724 ac_cv_sysv_shm="yes"
3725 else
3726 ac_cv_sysv_shm="no"
3727 fi
3728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3729 conftest.$ac_objext conftest.beam conftest.$ac_ext
3730 fi
3731
3732
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3735 $as_echo "$ac_cv_sysv_shm" >&6; }
3736
3737 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3738 sim_sysv_ipc_hw=",sem,shm";
3739 else
3740 sim_sysv_ipc_hw="";
3741 fi
3742
3743 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3744 sim_hwflags="-DHAS_UNION_SEMUN"
3745 else
3746 sim_hwflags=""
3747 fi
3748
3749
3750 # Check whether --enable-sim-hardware was given.
3751 if test "${enable_sim_hardware+set}" = set; then :
3752 enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3753 case "${enableval}" in
3754 yes) ;;
3755 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3756 ,*) hardware="${hardware}${enableval}";;
3757 *,) hardware="${enableval}${hardware}";;
3758 *) hardware="${enableval}"'';;
3759 esac
3760 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3761 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3762 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3763 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3764 fi
3765 else
3766 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3767 sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3768 sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3769 if test x"$silent" != x"yes"; then
3770 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3771 fi
3772 fi
3773
3774 # Check whether --enable-sim-hostbitsize was given.
3775 if test "${enable_sim_hostbitsize+set}" = set; then :
3776 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3777 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3778 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3779 esac
3780 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3781 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3782 fi
3783 else
3784 sim_hostbitsize=""
3785 fi
3786
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3795 # On Suns, sometimes $CPP names a directory.
3796 if test -n "$CPP" && test -d "$CPP"; then
3797 CPP=
3798 fi
3799 if test -z "$CPP"; then
3800 if test "${ac_cv_prog_CPP+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 # Double quotes because CPP needs to be expanded
3804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3805 do
3806 ac_preproc_ok=false
3807 for ac_c_preproc_warn_flag in '' yes
3808 do
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #ifdef __STDC__
3818 # include <limits.h>
3819 #else
3820 # include <assert.h>
3821 #endif
3822 Syntax error
3823 _ACEOF
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825
3826 else
3827 # Broken: fails on valid input.
3828 continue
3829 fi
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3837 _ACEOF
3838 if ac_fn_c_try_cpp "$LINENO"; then :
3839 # Broken: success on invalid input.
3840 continue
3841 else
3842 # Passes both tests.
3843 ac_preproc_ok=:
3844 break
3845 fi
3846 rm -f conftest.err conftest.$ac_ext
3847
3848 done
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.$ac_ext
3851 if $ac_preproc_ok; then :
3852 break
3853 fi
3854
3855 done
3856 ac_cv_prog_CPP=$CPP
3857
3858 fi
3859 CPP=$ac_cv_prog_CPP
3860 else
3861 ac_cv_prog_CPP=$CPP
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3864 $as_echo "$CPP" >&6; }
3865 ac_preproc_ok=false
3866 for ac_c_preproc_warn_flag in '' yes
3867 do
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #ifdef __STDC__
3877 # include <limits.h>
3878 #else
3879 # include <assert.h>
3880 #endif
3881 Syntax error
3882 _ACEOF
3883 if ac_fn_c_try_cpp "$LINENO"; then :
3884
3885 else
3886 # Broken: fails on valid input.
3887 continue
3888 fi
3889 rm -f conftest.err conftest.$ac_ext
3890
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <ac_nonexistent.h>
3896 _ACEOF
3897 if ac_fn_c_try_cpp "$LINENO"; then :
3898 # Broken: success on invalid input.
3899 continue
3900 else
3901 # Passes both tests.
3902 ac_preproc_ok=:
3903 break
3904 fi
3905 rm -f conftest.err conftest.$ac_ext
3906
3907 done
3908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3909 rm -f conftest.err conftest.$ac_ext
3910 if $ac_preproc_ok; then :
3911
3912 else
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3916 See \`config.log' for more details." "$LINENO" 5; }
3917 fi
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3928 if test "${ac_cv_path_GREP+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -z "$GREP"; then
3932 ac_path_GREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3936 do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in grep ggrep; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3943 # Check for GNU ac_path_GREP and select it if it is found.
3944 # Check for GNU $ac_path_GREP
3945 case `"$ac_path_GREP" --version 2>&1` in
3946 *GNU*)
3947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3948 *)
3949 ac_count=0
3950 $as_echo_n 0123456789 >"conftest.in"
3951 while :
3952 do
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo 'GREP' >> "conftest.nl"
3957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 as_fn_arith $ac_count + 1 && ac_count=$as_val
3960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_GREP="$ac_path_GREP"
3963 ac_path_GREP_max=$ac_count
3964 fi
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3967 done
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 esac
3970
3971 $ac_path_GREP_found && break 3
3972 done
3973 done
3974 done
3975 IFS=$as_save_IFS
3976 if test -z "$ac_cv_path_GREP"; then
3977 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3978 fi
3979 else
3980 ac_cv_path_GREP=$GREP
3981 fi
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3985 $as_echo "$ac_cv_path_GREP" >&6; }
3986 GREP="$ac_cv_path_GREP"
3987
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3990 $as_echo_n "checking for egrep... " >&6; }
3991 if test "${ac_cv_path_EGREP+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3995 then ac_cv_path_EGREP="$GREP -E"
3996 else
3997 if test -z "$EGREP"; then
3998 ac_path_EGREP_found=false
3999 # Loop through the user's path and test for each of PROGNAME-LIST
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_prog in egrep; do
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4008 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4009 # Check for GNU ac_path_EGREP and select it if it is found.
4010 # Check for GNU $ac_path_EGREP
4011 case `"$ac_path_EGREP" --version 2>&1` in
4012 *GNU*)
4013 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4014 *)
4015 ac_count=0
4016 $as_echo_n 0123456789 >"conftest.in"
4017 while :
4018 do
4019 cat "conftest.in" "conftest.in" >"conftest.tmp"
4020 mv "conftest.tmp" "conftest.in"
4021 cp "conftest.in" "conftest.nl"
4022 $as_echo 'EGREP' >> "conftest.nl"
4023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4025 as_fn_arith $ac_count + 1 && ac_count=$as_val
4026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4027 # Best one so far, save it but keep looking for a better one
4028 ac_cv_path_EGREP="$ac_path_EGREP"
4029 ac_path_EGREP_max=$ac_count
4030 fi
4031 # 10*(2^10) chars as input seems more than enough
4032 test $ac_count -gt 10 && break
4033 done
4034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4035 esac
4036
4037 $ac_path_EGREP_found && break 3
4038 done
4039 done
4040 done
4041 IFS=$as_save_IFS
4042 if test -z "$ac_cv_path_EGREP"; then
4043 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4044 fi
4045 else
4046 ac_cv_path_EGREP=$EGREP
4047 fi
4048
4049 fi
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4052 $as_echo "$ac_cv_path_EGREP" >&6; }
4053 EGREP="$ac_cv_path_EGREP"
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4057 $as_echo_n "checking for ANSI C header files... " >&6; }
4058 if test "${ac_cv_header_stdc+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <stdlib.h>
4064 #include <stdarg.h>
4065 #include <string.h>
4066 #include <float.h>
4067
4068 int
4069 main ()
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_header_stdc=yes
4078 else
4079 ac_cv_header_stdc=no
4080 fi
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082
4083 if test $ac_cv_header_stdc = yes; then
4084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <string.h>
4088
4089 _ACEOF
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 $EGREP "memchr" >/dev/null 2>&1; then :
4092
4093 else
4094 ac_cv_header_stdc=no
4095 fi
4096 rm -f conftest*
4097
4098 fi
4099
4100 if test $ac_cv_header_stdc = yes; then
4101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdlib.h>
4105
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "free" >/dev/null 2>&1; then :
4109
4110 else
4111 ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest*
4114
4115 fi
4116
4117 if test $ac_cv_header_stdc = yes; then
4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119 if test "$cross_compiling" = yes; then :
4120 :
4121 else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ctype.h>
4125 #include <stdlib.h>
4126 #if ((' ' & 0x0FF) == 0x020)
4127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4129 #else
4130 # define ISLOWER(c) \
4131 (('a' <= (c) && (c) <= 'i') \
4132 || ('j' <= (c) && (c) <= 'r') \
4133 || ('s' <= (c) && (c) <= 'z'))
4134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4135 #endif
4136
4137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4138 int
4139 main ()
4140 {
4141 int i;
4142 for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i))
4144 || toupper (i) != TOUPPER (i))
4145 return 2;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_run "$LINENO"; then :
4150
4151 else
4152 ac_cv_header_stdc=no
4153 fi
4154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4155 conftest.$ac_objext conftest.beam conftest.$ac_ext
4156 fi
4157
4158 fi
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4161 $as_echo "$ac_cv_header_stdc" >&6; }
4162 if test $ac_cv_header_stdc = yes; then
4163
4164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4165
4166 fi
4167
4168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4169 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4170 inttypes.h stdint.h unistd.h
4171 do :
4172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4173 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4174 "
4175 eval as_val=\$$as_ac_Header
4176 if test "x$as_val" = x""yes; then :
4177 cat >>confdefs.h <<_ACEOF
4178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4179 _ACEOF
4180
4181 fi
4182
4183 done
4184
4185
4186 # Check whether --enable-sim-hostendian was given.
4187 if test "${enable_sim_hostendian+set}" = set; then :
4188 enableval=$enable_sim_hostendian; case "${enableval}" in
4189 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4190 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4191 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4192 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
4193 esac
4194 if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4195 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4196 fi
4197 else
4198
4199 if test "x$cross_compiling" = "xno"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4201 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4202 if test "${ac_cv_c_bigendian+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 ac_cv_c_bigendian=unknown
4206 # See if we're dealing with a universal compiler.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #ifndef __APPLE_CC__
4210 not a universal capable compiler
4211 #endif
4212 typedef int dummy;
4213
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216
4217 # Check for potential -arch flags. It is not universal unless
4218 # there are at least two -arch flags with different values.
4219 ac_arch=
4220 ac_prev=
4221 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4222 if test -n "$ac_prev"; then
4223 case $ac_word in
4224 i?86 | x86_64 | ppc | ppc64)
4225 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4226 ac_arch=$ac_word
4227 else
4228 ac_cv_c_bigendian=universal
4229 break
4230 fi
4231 ;;
4232 esac
4233 ac_prev=
4234 elif test "x$ac_word" = "x-arch"; then
4235 ac_prev=arch
4236 fi
4237 done
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 if test $ac_cv_c_bigendian = unknown; then
4241 # See if sys/param.h defines the BYTE_ORDER macro.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <sys/types.h>
4245 #include <sys/param.h>
4246
4247 int
4248 main ()
4249 {
4250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4252 && LITTLE_ENDIAN)
4253 bogus endian macros
4254 #endif
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 # It does; now see whether it defined to BIG_ENDIAN or not.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <sys/types.h>
4265 #include <sys/param.h>
4266
4267 int
4268 main ()
4269 {
4270 #if BYTE_ORDER != BIG_ENDIAN
4271 not big endian
4272 #endif
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_c_bigendian=yes
4280 else
4281 ac_cv_c_bigendian=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287 if test $ac_cv_c_bigendian = unknown; then
4288 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <limits.h>
4292
4293 int
4294 main ()
4295 {
4296 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4297 bogus endian macros
4298 #endif
4299
4300 ;
4301 return 0;
4302 }
4303 _ACEOF
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 # It does; now see whether it defined to _BIG_ENDIAN or not.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <limits.h>
4309
4310 int
4311 main ()
4312 {
4313 #ifndef _BIG_ENDIAN
4314 not big endian
4315 #endif
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_cv_c_bigendian=yes
4323 else
4324 ac_cv_c_bigendian=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 fi
4330 if test $ac_cv_c_bigendian = unknown; then
4331 # Compile a test program.
4332 if test "$cross_compiling" = yes; then :
4333 # Try to guess by grepping values from an object file.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 short int ascii_mm[] =
4337 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4338 short int ascii_ii[] =
4339 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4340 int use_ascii (int i) {
4341 return ascii_mm[i] + ascii_ii[i];
4342 }
4343 short int ebcdic_ii[] =
4344 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4345 short int ebcdic_mm[] =
4346 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4347 int use_ebcdic (int i) {
4348 return ebcdic_mm[i] + ebcdic_ii[i];
4349 }
4350 extern int foo;
4351
4352 int
4353 main ()
4354 {
4355 return use_ascii (foo) == use_ebcdic (foo);
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4362 ac_cv_c_bigendian=yes
4363 fi
4364 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4365 if test "$ac_cv_c_bigendian" = unknown; then
4366 ac_cv_c_bigendian=no
4367 else
4368 # finding both strings is unlikely to happen, but who knows?
4369 ac_cv_c_bigendian=unknown
4370 fi
4371 fi
4372 fi
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 else
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 $ac_includes_default
4378 int
4379 main ()
4380 {
4381
4382 /* Are we little or big endian? From Harbison&Steele. */
4383 union
4384 {
4385 long int l;
4386 char c[sizeof (long int)];
4387 } u;
4388 u.l = 1;
4389 return u.c[sizeof (long int) - 1] == 1;
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_run "$LINENO"; then :
4396 ac_cv_c_bigendian=no
4397 else
4398 ac_cv_c_bigendian=yes
4399 fi
4400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4401 conftest.$ac_objext conftest.beam conftest.$ac_ext
4402 fi
4403
4404 fi
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4407 $as_echo "$ac_cv_c_bigendian" >&6; }
4408 case $ac_cv_c_bigendian in #(
4409 yes)
4410 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4411 ;; #(
4412 no)
4413 ;; #(
4414 universal)
4415
4416 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4417
4418 ;; #(
4419 *)
4420 as_fn_error "unknown endianness
4421 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4422 esac
4423
4424 if test $ac_cv_c_bigendian = yes; then
4425 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4426 else
4427 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4428 fi
4429 else
4430 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4431 fi
4432 fi
4433
4434
4435 # Check whether --enable-sim-icache was given.
4436 if test "${enable_sim_icache+set}" = set; then :
4437 enableval=$enable_sim_icache; icache="-R"
4438 case "${enableval}" in
4439 yes) icache="1024"; sim_icache="-I $icache";;
4440 no) sim_icache="-R";;
4441 *) icache=1024
4442 sim_icache="-"
4443 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4444 case "$x" in
4445 define) sim_icache="${sim_icache}R";;
4446 semantic) sim_icache="${sim_icache}C";;
4447 insn) sim_icache="${sim_icache}S";;
4448 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
4449 *) as_fn_error "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
4450 esac
4451 done
4452 sim_icache="${sim_icache}I $icache";;
4453 esac
4454 if test x"$silent" != x"yes" && test x"$icache" != x""; then
4455 echo "Setting instruction cache size to $icache ($sim_icache)"
4456 fi
4457 else
4458 sim_icache="-CSRI 1024"
4459 if test x"$silent" != x"yes"; then
4460 echo "Setting instruction cache size to 1024 ($sim_icache)"
4461 fi
4462 fi
4463
4464
4465 # Check whether --enable-sim-inline was given.
4466 if test "${enable_sim_inline+set}" = set; then :
4467 enableval=$enable_sim_inline; sim_inline=""
4468 case "$enableval" in
4469 no) sim_inline="-DDEFAULT_INLINE=0";;
4470 0) sim_inline="-DDEFAULT_INLINE=0";;
4471 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
4472 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4473 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4474 new_flag=""
4475 case "$x" in
4476 *_INLINE=*) new_flag="-D$x";;
4477 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4478 *_INLINE) new_flag="-D$x=ALL_INLINE";;
4479 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
4480 esac
4481 if test x"$sim_inline" = x""; then
4482 sim_inline="$new_flag"
4483 else
4484 sim_inline="$sim_inline $new_flag"
4485 fi
4486 done;;
4487 esac
4488 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4489 echo "Setting inline flags = $sim_inline" 6>&1
4490 fi
4491 else
4492 if test x"$GCC" != ""; then
4493 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4494 if test x"$silent" != x"yes"; then
4495 echo "Setting inline flags = $sim_inline" 6>&1
4496 fi
4497 else
4498 sim_inline=""
4499 fi
4500 fi
4501
4502
4503 # Check whether --enable-sim-jump was given.
4504 if test "${enable_sim_jump+set}" = set; then :
4505 enableval=$enable_sim_jump; case "${enableval}" in
4506 yes) sim_jump="-J";;
4507 no) sim_jump="";;
4508 *) as_fn_error "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
4509 esac
4510 if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
4511 echo "Setting jump flag = $sim_jump" 6>&1
4512 fi
4513 else
4514 sim_jump=""
4515 if test x"$silent" != x"yes"; then
4516 echo "Setting jump flag = $sim_jump" 6>&1
4517 fi
4518 fi
4519
4520
4521 # Check whether --enable-sim-line-nr was given.
4522 if test "${enable_sim_line_nr+set}" = set; then :
4523 enableval=$enable_sim_line_nr; case "${enableval}" in
4524 yes) sim_line_nr="";;
4525 no) sim_line_nr="-L";;
4526 *) as_fn_error "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
4527 esac
4528 if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
4529 echo "Setting warning flags = $sim_line_nr" 6>&1
4530 fi
4531 else
4532 sim_line_nr=""
4533 fi
4534
4535
4536 # Check whether --enable-sim-model was given.
4537 if test "${enable_sim_model+set}" = set; then :
4538 enableval=$enable_sim_model; case "${enableval}" in
4539 yes|no) as_fn_error "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4540 *) sim_model="-DWITH_MODEL=${enableval}";;
4541 esac
4542 if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
4543 echo "Setting model flags = $sim_model" 6>&1
4544 fi
4545 else
4546 sim_model=""
4547 fi
4548
4549
4550 # Check whether --enable-sim-model-issue was given.
4551 if test "${enable_sim_model_issue+set}" = set; then :
4552 enableval=$enable_sim_model_issue; case "${enableval}" in
4553 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4554 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4555 *) as_fn_error "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
4556 esac
4557 if test x"$silent" != x"yes"; then
4558 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4559 fi
4560 else
4561 sim_model_issue=""
4562 fi
4563
4564
4565 # Check whether --enable-sim-monitor was given.
4566 if test "${enable_sim_monitor+set}" = set; then :
4567 enableval=$enable_sim_monitor; case "${enableval}" in
4568 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4569 no) sim_monitor="-DWITH_MON=0";;
4570 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4571 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4572 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
4573 esac
4574 if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
4575 echo "Setting monitor flags = $sim_monitor" 6>&1
4576 fi
4577 else
4578 sim_monitor=""
4579 fi
4580
4581
4582 # Check whether --enable-sim-opcode was given.
4583 if test "${enable_sim_opcode+set}" = set; then :
4584 enableval=$enable_sim_opcode; case "${enableval}" in
4585 yes|no) as_fn_error "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4586 *) if test -f "${srcdir}/${enableval}"; then
4587 sim_opcode="${enableval}"
4588 elif test -f "${srcdir}/dc-${enableval}"; then
4589 sim_opcode="dc-${enableval}"
4590 else
4591 as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4592 sim_opcode="dc-complex"
4593 fi;;
4594 esac
4595 if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
4596 echo "Setting opcode flags = $sim_opcode" 6>&1
4597 fi
4598 else
4599 sim_opcode="dc-complex"
4600 if test x"$silent" != x"yes"; then
4601 echo "Setting opcode flags = $sim_opcode"
4602 fi
4603 fi
4604
4605
4606 # Check whether --enable-sim-packages was given.
4607 if test "${enable_sim_packages+set}" = set; then :
4608 enableval=$enable_sim_packages; packages=disklabel
4609 case "${enableval}" in
4610 yes) ;;
4611 no) as_fn_error "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
4612 ,*) packages="${packages}${enableval}";;
4613 *,) packages="${enableval}${packages}";;
4614 *) packages="${enableval}"'';;
4615 esac
4616 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4617 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4618 if test x"$silent" != x"yes" && test x"$packages" != x""; then
4619 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4620 fi
4621 else
4622 packages=disklabel
4623 sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4624 sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4625 if test x"$silent" != x"yes"; then
4626 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4627 fi
4628 fi
4629
4630
4631 # Check whether --enable-sim-regparm was given.
4632 if test "${enable_sim_regparm+set}" = set; then :
4633 enableval=$enable_sim_regparm; case "${enableval}" in
4634 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
4635 no) sim_regparm="" ;;
4636 yes) sim_regparm="-DWITH_REGPARM=3";;
4637 *) as_fn_error "\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm="";;
4638 esac
4639 if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
4640 echo "Setting regparm flags = $sim_regparm" 6>&1
4641 fi
4642 else
4643 sim_regparm=""
4644 fi
4645
4646
4647 # Check whether --enable-sim-reserved-bits was given.
4648 if test "${enable_sim_reserved_bits+set}" = set; then :
4649 enableval=$enable_sim_reserved_bits; case "${enableval}" in
4650 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
4651 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
4652 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
4653 esac
4654 if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
4655 echo "Setting reserved flags = $sim_reserved" 6>&1
4656 fi
4657 else
4658 sim_reserved=""
4659 fi
4660
4661
4662 # Check whether --enable-sim-smp was given.
4663 if test "${enable_sim_smp+set}" = set; then :
4664 enableval=$enable_sim_smp; case "${enableval}" in
4665 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
4666 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
4667 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
4668 esac
4669 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
4670 echo "Setting smp flags = $sim_smp" 6>&1
4671 fi
4672 else
4673 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
4674 if test x"$silent" != x"yes"; then
4675 echo "Setting smp flags = $sim_smp" 6>&1
4676 fi
4677 fi
4678
4679
4680 # Check whether --enable-sim-stdcall was given.
4681 if test "${enable_sim_stdcall+set}" = set; then :
4682 enableval=$enable_sim_stdcall; case "${enableval}" in
4683 no) sim_stdcall="" ;;
4684 std*) sim_stdcall="-DWITH_STDCALL=1";;
4685 yes) sim_stdcall="-DWITH_STDCALL=1";;
4686 *) as_fn_error "\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall="";;
4687 esac
4688 if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
4689 echo "Setting function call flags = $sim_stdcall" 6>&1
4690 fi
4691 else
4692 sim_stdcall=""
4693 fi
4694
4695
4696 # Check whether --enable-sim-stdio was given.
4697 if test "${enable_sim_stdio+set}" = set; then :
4698 enableval=$enable_sim_stdio; case "${enableval}" in
4699 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4700 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
4701 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
4702 esac
4703 if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4704 echo "Setting stdio flags = $sim_stdio" 6>&1
4705 fi
4706 else
4707 sim_stdio=""
4708 fi
4709
4710
4711 # Check whether --enable-sim-switch was given.
4712 if test "${enable_sim_switch+set}" = set; then :
4713 enableval=$enable_sim_switch; case "${enableval}" in
4714 yes) sim_switch="-s";;
4715 no) sim_switch="";;
4716 *) as_fn_error "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
4717 esac
4718 if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
4719 echo "Setting switch flags = $sim_switch" 6>&1
4720 fi
4721 else
4722 sim_switch="";
4723 if test x"$silent" != x"yes"; then
4724 echo "Setting switch flags = $sim_switch" 6>&1
4725 fi
4726 fi
4727
4728
4729 # Check whether --enable-sim-timebase was given.
4730 if test "${enable_sim_timebase+set}" = set; then :
4731 enableval=$enable_sim_timebase; case "${enableval}" in
4732 yes) sim_timebase="-DWITH_TIME_BASE=1";;
4733 no) sim_timebase="-DWITH_TIME_BASE=0";;
4734 *) as_fn_error "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
4735 esac
4736 if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
4737 echo "Setting timebase flags = $sim_timebase" 6>&1
4738 fi
4739 else
4740 sim_timebase=""
4741 fi
4742
4743
4744 # Check whether --enable-sim-trace was given.
4745 if test "${enable_sim_trace+set}" = set; then :
4746 enableval=$enable_sim_trace; case "${enableval}" in
4747 yes) sim_trace="-DWITH_TRACE=1";;
4748 no) sim_trace="-DWITH_TRACE=0";;
4749 *) as_fn_error "\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace="";;
4750 esac
4751 if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4752 echo "Setting trace flags = $sim_trace" 6>&1
4753 fi
4754 else
4755 sim_trace=""
4756 fi
4757
4758
4759 # Check whether --enable-sim-warnings was given.
4760 if test "${enable_sim_warnings+set}" = set; then :
4761 enableval=$enable_sim_warnings; case "${enableval}" in
4762 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4763 no) sim_warnings="-w";;
4764 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4765 esac
4766 if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
4767 echo "Setting warning flags = $sim_warnings" 6>&1
4768 fi
4769 else
4770 sim_warnings=""
4771 fi
4772
4773
4774 # Check whether --enable-sim-xor-endian was given.
4775 if test "${enable_sim_xor_endian+set}" = set; then :
4776 enableval=$enable_sim_xor_endian; case "${enableval}" in
4777 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
4778 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
4779 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
4780 esac
4781 if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
4782 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4783 fi
4784 else
4785 sim_xor_endian=""
4786 fi
4787
4788
4789
4790
4791 # Check whether --with-pkgversion was given.
4792 if test "${with_pkgversion+set}" = set; then :
4793 withval=$with_pkgversion; case "$withval" in
4794 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4795 no) PKGVERSION= ;;
4796 *) PKGVERSION="($withval) " ;;
4797 esac
4798 else
4799 PKGVERSION="(GDB) "
4800
4801 fi
4802
4803
4804
4805
4806
4807 # Check whether --with-bugurl was given.
4808 if test "${with_bugurl+set}" = set; then :
4809 withval=$with_bugurl; case "$withval" in
4810 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4811 no) BUGURL=
4812 ;;
4813 *) BUGURL="$withval"
4814 ;;
4815 esac
4816 else
4817 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4818
4819 fi
4820
4821 case ${BUGURL} in
4822 "")
4823 REPORT_BUGS_TO=
4824 REPORT_BUGS_TEXI=
4825 ;;
4826 *)
4827 REPORT_BUGS_TO="<$BUGURL>"
4828 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4829 ;;
4830 esac;
4831
4832
4833
4834
4835 cat >>confdefs.h <<_ACEOF
4836 #define PKGVERSION "$PKGVERSION"
4837 _ACEOF
4838
4839
4840 cat >>confdefs.h <<_ACEOF
4841 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4842 _ACEOF
4843
4844
4845 # Make sure we can run config.sub.
4846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4847 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4850 $as_echo_n "checking build system type... " >&6; }
4851 if test "${ac_cv_build+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 ac_build_alias=$build_alias
4855 test "x$ac_build_alias" = x &&
4856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4857 test "x$ac_build_alias" = x &&
4858 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4859 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4860 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4861
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4864 $as_echo "$ac_cv_build" >&6; }
4865 case $ac_cv_build in
4866 *-*-*) ;;
4867 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4868 esac
4869 build=$ac_cv_build
4870 ac_save_IFS=$IFS; IFS='-'
4871 set x $ac_cv_build
4872 shift
4873 build_cpu=$1
4874 build_vendor=$2
4875 shift; shift
4876 # Remember, the first character of IFS is used to create $*,
4877 # except with old shells:
4878 build_os=$*
4879 IFS=$ac_save_IFS
4880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881
4882
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4884 $as_echo_n "checking host system type... " >&6; }
4885 if test "${ac_cv_host+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test "x$host_alias" = x; then
4889 ac_cv_host=$ac_cv_build
4890 else
4891 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4892 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4893 fi
4894
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4897 $as_echo "$ac_cv_host" >&6; }
4898 case $ac_cv_host in
4899 *-*-*) ;;
4900 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4901 esac
4902 host=$ac_cv_host
4903 ac_save_IFS=$IFS; IFS='-'
4904 set x $ac_cv_host
4905 shift
4906 host_cpu=$1
4907 host_vendor=$2
4908 shift; shift
4909 # Remember, the first character of IFS is used to create $*,
4910 # except with old shells:
4911 host_os=$*
4912 IFS=$ac_save_IFS
4913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914
4915
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4917 $as_echo_n "checking target system type... " >&6; }
4918 if test "${ac_cv_target+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test "x$target_alias" = x; then
4922 ac_cv_target=$ac_cv_host
4923 else
4924 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4925 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4926 fi
4927
4928 fi
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4930 $as_echo "$ac_cv_target" >&6; }
4931 case $ac_cv_target in
4932 *-*-*) ;;
4933 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4934 esac
4935 target=$ac_cv_target
4936 ac_save_IFS=$IFS; IFS='-'
4937 set x $ac_cv_target
4938 shift
4939 target_cpu=$1
4940 target_vendor=$2
4941 shift; shift
4942 # Remember, the first character of IFS is used to create $*,
4943 # except with old shells:
4944 target_os=$*
4945 IFS=$ac_save_IFS
4946 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4947
4948
4949 # The aliases save the names the user supplied, while $host etc.
4950 # will get canonicalized.
4951 test -n "$target_alias" &&
4952 test "$program_prefix$program_suffix$program_transform_name" = \
4953 NONENONEs,x,x, &&
4954 program_prefix=${target_alias}-
4955
4956 test "$program_prefix" != NONE &&
4957 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4958 # Use a double $ so make ignores it.
4959 test "$program_suffix" != NONE &&
4960 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4961 # Double any \ or $.
4962 # By default was `s,x,x', remove it if useless.
4963 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4964 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4965
4966
4967 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4968 # using the same condition.
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4970 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4971 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 ac_func_search_save_LIBS=$LIBS
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977
4978 /* Override any GCC internal prototype to avoid an error.
4979 Use char because int might match the return type of a GCC
4980 builtin and then its argument prototype would still apply. */
4981 #ifdef __cplusplus
4982 extern "C"
4983 #endif
4984 char zlibVersion ();
4985 int
4986 main ()
4987 {
4988 return zlibVersion ();
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 for ac_lib in '' z; do
4994 if test -z "$ac_lib"; then
4995 ac_res="none required"
4996 else
4997 ac_res=-l$ac_lib
4998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4999 fi
5000 if ac_fn_c_try_link "$LINENO"; then :
5001 ac_cv_search_zlibVersion=$ac_res
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext \
5004 conftest$ac_exeext
5005 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5006 break
5007 fi
5008 done
5009 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5010
5011 else
5012 ac_cv_search_zlibVersion=no
5013 fi
5014 rm conftest.$ac_ext
5015 LIBS=$ac_func_search_save_LIBS
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5018 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5019 ac_res=$ac_cv_search_zlibVersion
5020 if test "$ac_res" != no; then :
5021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5022 for ac_header in zlib.h
5023 do :
5024 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_zlib_h" = x""yes; then :
5026 cat >>confdefs.h <<_ACEOF
5027 #define HAVE_ZLIB_H 1
5028 _ACEOF
5029
5030 fi
5031
5032 done
5033
5034 fi
5035
5036
5037 . ${srcdir}/../../bfd/configure.host
5038
5039 case ${host} in
5040 *mingw32*)
5041
5042 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5043
5044 ;;
5045 esac
5046
5047 ac_config_headers="$ac_config_headers config.h:config.in"
5048
5049
5050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5051 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
5052
5053 cat >>confdefs.h <<_ACEOF
5054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5055 _ACEOF
5056
5057
5058 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5059
5060 fi
5061
5062
5063 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5064 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5068 _ACEOF
5069
5070
5071 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5072
5073 else
5074 case " $LIBOBJS " in
5075 *" fileblocks.$ac_objext "* ) ;;
5076 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5077 ;;
5078 esac
5079
5080 fi
5081
5082
5083 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5084 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5085
5086 cat >>confdefs.h <<_ACEOF
5087 #define HAVE_STRUCT_STAT_ST_RDEV 1
5088 _ACEOF
5089
5090
5091 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5092
5093 fi
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5097 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5098 if test "${ac_cv_struct_tm+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <sys/types.h>
5104 #include <time.h>
5105
5106 int
5107 main ()
5108 {
5109 struct tm tm;
5110 int *p = &tm.tm_sec;
5111 return !p;
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 ac_cv_struct_tm=time.h
5118 else
5119 ac_cv_struct_tm=sys/time.h
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5124 $as_echo "$ac_cv_struct_tm" >&6; }
5125 if test $ac_cv_struct_tm = sys/time.h; then
5126
5127 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5128
5129 fi
5130
5131 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5132 #include <$ac_cv_struct_tm>
5133
5134 "
5135 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
5136
5137 cat >>confdefs.h <<_ACEOF
5138 #define HAVE_STRUCT_TM_TM_ZONE 1
5139 _ACEOF
5140
5141
5142 fi
5143
5144 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5145
5146 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5147
5148 else
5149 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5150 "
5151 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
5152 ac_have_decl=1
5153 else
5154 ac_have_decl=0
5155 fi
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define HAVE_DECL_TZNAME $ac_have_decl
5159 _ACEOF
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5162 $as_echo_n "checking for tzname... " >&6; }
5163 if test "${ac_cv_var_tzname+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <time.h>
5169 #if !HAVE_DECL_TZNAME
5170 extern char *tzname[];
5171 #endif
5172
5173 int
5174 main ()
5175 {
5176 return tzname[0][0];
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_link "$LINENO"; then :
5182 ac_cv_var_tzname=yes
5183 else
5184 ac_cv_var_tzname=no
5185 fi
5186 rm -f core conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5190 $as_echo "$ac_cv_var_tzname" >&6; }
5191 if test $ac_cv_var_tzname = yes; then
5192
5193 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5194
5195 fi
5196 fi
5197
5198
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5200 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5201 if test "${ac_cv_type_uid_t+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5207
5208 _ACEOF
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "uid_t" >/dev/null 2>&1; then :
5211 ac_cv_type_uid_t=yes
5212 else
5213 ac_cv_type_uid_t=no
5214 fi
5215 rm -f conftest*
5216
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5219 $as_echo "$ac_cv_type_uid_t" >&6; }
5220 if test $ac_cv_type_uid_t = no; then
5221
5222 $as_echo "#define uid_t int" >>confdefs.h
5223
5224
5225 $as_echo "#define gid_t int" >>confdefs.h
5226
5227 fi
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5230 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5231 if test "${ac_cv_type_getgroups+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test "$cross_compiling" = yes; then :
5235 ac_cv_type_getgroups=cross
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 /* Thanks to Mike Rendell for this test. */
5240 $ac_includes_default
5241 #define NGID 256
5242 #undef MAX
5243 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5244
5245 int
5246 main ()
5247 {
5248 gid_t gidset[NGID];
5249 int i, n;
5250 union { gid_t gval; long int lval; } val;
5251
5252 val.lval = -1;
5253 for (i = 0; i < NGID; i++)
5254 gidset[i] = val.gval;
5255 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5256 gidset);
5257 /* Exit non-zero if getgroups seems to require an array of ints. This
5258 happens when gid_t is short int but getgroups modifies an array
5259 of ints. */
5260 return n > 0 && gidset[n] != val.gval;
5261 }
5262 _ACEOF
5263 if ac_fn_c_try_run "$LINENO"; then :
5264 ac_cv_type_getgroups=gid_t
5265 else
5266 ac_cv_type_getgroups=int
5267 fi
5268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5269 conftest.$ac_objext conftest.beam conftest.$ac_ext
5270 fi
5271
5272 if test $ac_cv_type_getgroups = cross; then
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <unistd.h>
5276
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
5280 ac_cv_type_getgroups=gid_t
5281 else
5282 ac_cv_type_getgroups=int
5283 fi
5284 rm -f conftest*
5285
5286 fi
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5289 $as_echo "$ac_cv_type_getgroups" >&6; }
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define GETGROUPS_T $ac_cv_type_getgroups
5293 _ACEOF
5294
5295
5296 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5297 if test "x$ac_cv_type_mode_t" = x""yes; then :
5298
5299 else
5300
5301 cat >>confdefs.h <<_ACEOF
5302 #define mode_t int
5303 _ACEOF
5304
5305 fi
5306
5307 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5308 if test "x$ac_cv_type_off_t" = x""yes; then :
5309
5310 else
5311
5312 cat >>confdefs.h <<_ACEOF
5313 #define off_t long int
5314 _ACEOF
5315
5316 fi
5317
5318 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5319 if test "x$ac_cv_type_pid_t" = x""yes; then :
5320
5321 else
5322
5323 cat >>confdefs.h <<_ACEOF
5324 #define pid_t int
5325 _ACEOF
5326
5327 fi
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5330 $as_echo_n "checking return type of signal handlers... " >&6; }
5331 if test "${ac_cv_type_signal+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <sys/types.h>
5337 #include <signal.h>
5338
5339 int
5340 main ()
5341 {
5342 return *(signal (0, 0)) (0) == 1;
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 ac_cv_type_signal=int
5349 else
5350 ac_cv_type_signal=void
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5355 $as_echo "$ac_cv_type_signal" >&6; }
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define RETSIGTYPE $ac_cv_type_signal
5359 _ACEOF
5360
5361
5362 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5363 if test "x$ac_cv_type_size_t" = x""yes; then :
5364
5365 else
5366
5367 cat >>confdefs.h <<_ACEOF
5368 #define size_t unsigned int
5369 _ACEOF
5370
5371 fi
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5374 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5375 if test "${ac_cv_type_uid_t+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <sys/types.h>
5381
5382 _ACEOF
5383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "uid_t" >/dev/null 2>&1; then :
5385 ac_cv_type_uid_t=yes
5386 else
5387 ac_cv_type_uid_t=no
5388 fi
5389 rm -f conftest*
5390
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5393 $as_echo "$ac_cv_type_uid_t" >&6; }
5394 if test $ac_cv_type_uid_t = no; then
5395
5396 $as_echo "#define uid_t int" >>confdefs.h
5397
5398
5399 $as_echo "#define gid_t int" >>confdefs.h
5400
5401 fi
5402
5403
5404 for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5405 do :
5406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5408 eval as_val=\$$as_ac_var
5409 if test "x$as_val" = x""yes; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5412 _ACEOF
5413
5414 fi
5415 done
5416
5417
5418 for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
5419 do :
5420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5422 eval as_val=\$$as_ac_Header
5423 if test "x$as_val" = x""yes; then :
5424 cat >>confdefs.h <<_ACEOF
5425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5426 _ACEOF
5427
5428 fi
5429
5430 done
5431
5432 ac_header_dirent=no
5433 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5434 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5436 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 #include <$ac_hdr>
5444
5445 int
5446 main ()
5447 {
5448 if ((DIR *) 0)
5449 return 0;
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 eval "$as_ac_Header=yes"
5456 else
5457 eval "$as_ac_Header=no"
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 fi
5461 eval ac_res=\$$as_ac_Header
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5463 $as_echo "$ac_res" >&6; }
5464 eval as_val=\$$as_ac_Header
5465 if test "x$as_val" = x""yes; then :
5466 cat >>confdefs.h <<_ACEOF
5467 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5468 _ACEOF
5469
5470 ac_header_dirent=$ac_hdr; break
5471 fi
5472
5473 done
5474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5475 if test $ac_header_dirent = dirent.h; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5477 $as_echo_n "checking for library containing opendir... " >&6; }
5478 if test "${ac_cv_search_opendir+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 ac_func_search_save_LIBS=$LIBS
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484
5485 /* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5488 #ifdef __cplusplus
5489 extern "C"
5490 #endif
5491 char opendir ();
5492 int
5493 main ()
5494 {
5495 return opendir ();
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 for ac_lib in '' dir; do
5501 if test -z "$ac_lib"; then
5502 ac_res="none required"
5503 else
5504 ac_res=-l$ac_lib
5505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5506 fi
5507 if ac_fn_c_try_link "$LINENO"; then :
5508 ac_cv_search_opendir=$ac_res
5509 fi
5510 rm -f core conftest.err conftest.$ac_objext \
5511 conftest$ac_exeext
5512 if test "${ac_cv_search_opendir+set}" = set; then :
5513 break
5514 fi
5515 done
5516 if test "${ac_cv_search_opendir+set}" = set; then :
5517
5518 else
5519 ac_cv_search_opendir=no
5520 fi
5521 rm conftest.$ac_ext
5522 LIBS=$ac_func_search_save_LIBS
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5525 $as_echo "$ac_cv_search_opendir" >&6; }
5526 ac_res=$ac_cv_search_opendir
5527 if test "$ac_res" != no; then :
5528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5529
5530 fi
5531
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5534 $as_echo_n "checking for library containing opendir... " >&6; }
5535 if test "${ac_cv_search_opendir+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 ac_func_search_save_LIBS=$LIBS
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541
5542 /* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 char opendir ();
5549 int
5550 main ()
5551 {
5552 return opendir ();
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 for ac_lib in '' x; do
5558 if test -z "$ac_lib"; then
5559 ac_res="none required"
5560 else
5561 ac_res=-l$ac_lib
5562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5563 fi
5564 if ac_fn_c_try_link "$LINENO"; then :
5565 ac_cv_search_opendir=$ac_res
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext
5569 if test "${ac_cv_search_opendir+set}" = set; then :
5570 break
5571 fi
5572 done
5573 if test "${ac_cv_search_opendir+set}" = set; then :
5574
5575 else
5576 ac_cv_search_opendir=no
5577 fi
5578 rm conftest.$ac_ext
5579 LIBS=$ac_func_search_save_LIBS
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5582 $as_echo "$ac_cv_search_opendir" >&6; }
5583 ac_res=$ac_cv_search_opendir
5584 if test "$ac_res" != no; then :
5585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5586
5587 fi
5588
5589 fi
5590
5591
5592 sim_termio=""
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5594 $as_echo_n "checking for struct termios... " >&6; }
5595 if test "${ac_cv_termios_struct+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <sys/types.h>
5601 #include <sys/termios.h>
5602 int
5603 main ()
5604 {
5605 static struct termios x;
5606 x.c_iflag = 0;
5607 x.c_oflag = 0;
5608 x.c_cflag = 0;
5609 x.c_lflag = 0;
5610 x.c_cc[NCCS] = 0;
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_termios_struct=yes
5617 else
5618 ac_cv_termios_struct=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5624 $as_echo "$ac_cv_termios_struct" >&6; }
5625 if test $ac_cv_termios_struct = yes; then
5626 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5627 fi
5628
5629 if test "$ac_cv_termios_struct" = "yes"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5631 $as_echo_n "checking for c_line field in struct termios... " >&6; }
5632 if test "${ac_cv_termios_cline+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 #include <sys/termios.h>
5639 int
5640 main ()
5641 {
5642 static struct termios x; x.c_line = 0;
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_termios_cline=yes
5649 else
5650 ac_cv_termios_cline=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5657 $as_echo "$ac_cv_termios_cline" >&6; }
5658 if test $ac_cv_termios_cline = yes; then
5659 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5660 fi
5661 else
5662 ac_cv_termios_cline=no
5663 fi
5664
5665 if test "$ac_cv_termios_struct" != "yes"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5667 $as_echo_n "checking for struct termio... " >&6; }
5668 if test "${ac_cv_termio_struct+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 #include <sys/termio.h>
5675 int
5676 main ()
5677 {
5678 static struct termio x;
5679 x.c_iflag = 0;
5680 x.c_oflag = 0;
5681 x.c_cflag = 0;
5682 x.c_lflag = 0;
5683 x.c_cc[NCC] = 0;
5684 ;
5685 return 0;
5686 }
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689 ac_cv_termio_struct=yes
5690 else
5691 ac_cv_termio_struct=no
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5697 $as_echo "$ac_cv_termio_struct" >&6; }
5698 if test $ac_cv_termio_struct = yes; then
5699 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5700 fi
5701 else
5702 ac_cv_termio_struct=no
5703 fi
5704
5705 if test "$ac_cv_termio_struct" = "yes"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
5707 $as_echo_n "checking for c_line field in struct termio... " >&6; }
5708 if test "${ac_cv_termio_cline+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <sys/termio.h>
5715 int
5716 main ()
5717 {
5718 static struct termio x; x.c_line = 0;
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_termio_cline=yes
5725 else
5726 ac_cv_termio_cline=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 fi
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
5733 $as_echo "$ac_cv_termio_cline" >&6; }
5734 if test $ac_cv_termio_cline = yes; then
5735 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
5736 fi
5737 else
5738 ac_cv_termio_cline=no
5739 fi
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
5742 $as_echo_n "checking for struct statfs... " >&6; }
5743 if test "${ac_cv_struct_statfs+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #ifdef HAVE_SYS_PARAM_H
5750 #include <sys/param.h>
5751 #endif
5752 #ifdef HAVE_SYS_MOUNT_H
5753 #include <sys/mount.h>
5754 #endif
5755 #ifdef HAVE_SYS_VFS_H
5756 #include <sys/vfs.h>
5757 #endif
5758 #ifdef HAVE_SYS_STATFS_H
5759 #include <sys/statfs.h>
5760 #endif
5761 int
5762 main ()
5763 {
5764 static struct statfs s;
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 ac_cv_struct_statfs=yes
5771 else
5772 ac_cv_struct_statfs=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5778 $as_echo "$ac_cv_struct_statfs" >&6; }
5779 if test $ac_cv_struct_statfs = yes; then
5780
5781 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5782
5783 fi
5784
5785 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5786 if test "x$ac_cv_type_long_long" = x""yes; then :
5787
5788 cat >>confdefs.h <<_ACEOF
5789 #define HAVE_LONG_LONG 1
5790 _ACEOF
5791
5792
5793 fi
5794
5795
5796 sim_devzero=""
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5798 $as_echo_n "checking for /dev/zero... " >&6; }
5799 if test "${ac_cv_devzero+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test "$cross_compiling" = yes; then :
5803 ac_cv_devzero=no
5804 else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #include <fcntl.h>
5808 main () {
5809 char buf[2048];
5810 int i;
5811 int fd = open ("/dev/zero", O_RDONLY);
5812 if (fd < 0)
5813 return 1;
5814 for (i = 0; i < sizeof (buf); i++)
5815 buf[i] = 1;
5816 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5817 return 1;
5818 for (i = 0; i < sizeof (buf); i++)
5819 if (buf[i])
5820 return 1;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_run "$LINENO"; then :
5825 ac_cv_devzero=yes
5826 else
5827 ac_cv_devzero=no
5828 fi
5829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5830 conftest.$ac_objext conftest.beam conftest.$ac_ext
5831 fi
5832
5833 fi
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5836 $as_echo "$ac_cv_devzero" >&6; }
5837 if test $ac_cv_devzero = yes; then
5838 sim_devzero="-DHAVE_DEVZERO"
5839 else
5840 sim_devzero=""
5841 fi
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5844 $as_echo_n "checking for common simulator directory... " >&6; }
5845 if test -f "${srcdir}/../common/callback.c"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847 $as_echo "yes" >&6; }
5848 sim_callback="callback.o targ-map.o"
5849 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5853 sim_callback=""
5854 sim_targ_vals=""
5855 fi
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5858 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5859 if test -f "${srcdir}/../common/sim-fpu.c"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861 $as_echo "yes" >&6; }
5862 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5863 sim_fpu="sim-fpu.o"
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 sim_fpu_cflags=
5868 sim_fpu=
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877 AR=${AR-ar}
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$RANLIB"; then
5888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 RANLIB=$ac_cv_prog_RANLIB
5908 if test -n "$RANLIB"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5910 $as_echo "$RANLIB" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_RANLIB"; then
5919 ac_ct_RANLIB=$RANLIB
5920 # Extract the first word of "ranlib", so it can be a program name with args.
5921 set dummy ranlib; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_RANLIB"; then
5928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_RANLIB="ranlib"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5948 if test -n "$ac_ct_RANLIB"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5950 $as_echo "$ac_ct_RANLIB" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_RANLIB" = x; then
5957 RANLIB=":"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 RANLIB=$ac_ct_RANLIB
5966 fi
5967 else
5968 RANLIB="$ac_cv_prog_RANLIB"
5969 fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017 ac_config_files="$ac_config_files Makefile"
6018
6019 ac_config_commands="$ac_config_commands default"
6020
6021 cat >confcache <<\_ACEOF
6022 # This file is a shell script that caches the results of configure
6023 # tests run on this system so they can be shared between configure
6024 # scripts and configure runs, see configure's option --config-cache.
6025 # It is not useful on other systems. If it contains results you don't
6026 # want to keep, you may remove or edit it.
6027 #
6028 # config.status only pays attention to the cache file if you give it
6029 # the --recheck option to rerun configure.
6030 #
6031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6033 # following values.
6034
6035 _ACEOF
6036
6037 # The following way of writing the cache mishandles newlines in values,
6038 # but we know of no workaround that is simple, portable, and efficient.
6039 # So, we kill variables containing newlines.
6040 # Ultrix sh set writes to stderr and can't be redirected directly,
6041 # and sets the high bit in the cache file unless we assign to the vars.
6042 (
6043 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6044 eval ac_val=\$$ac_var
6045 case $ac_val in #(
6046 *${as_nl}*)
6047 case $ac_var in #(
6048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6050 esac
6051 case $ac_var in #(
6052 _ | IFS | as_nl) ;; #(
6053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6054 *) { eval $ac_var=; unset $ac_var;} ;;
6055 esac ;;
6056 esac
6057 done
6058
6059 (set) 2>&1 |
6060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6061 *${as_nl}ac_space=\ *)
6062 # `set' does not quote correctly, so add quotes: double-quote
6063 # substitution turns \\\\ into \\, and sed turns \\ into \.
6064 sed -n \
6065 "s/'/'\\\\''/g;
6066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6067 ;; #(
6068 *)
6069 # `set' quotes correctly as required by POSIX, so do not add quotes.
6070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6071 ;;
6072 esac |
6073 sort
6074 ) |
6075 sed '
6076 /^ac_cv_env_/b end
6077 t clear
6078 :clear
6079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6080 t end
6081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6082 :end' >>confcache
6083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6084 if test -w "$cache_file"; then
6085 test "x$cache_file" != "x/dev/null" &&
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6087 $as_echo "$as_me: updating cache $cache_file" >&6;}
6088 cat confcache >$cache_file
6089 else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6092 fi
6093 fi
6094 rm -f confcache
6095
6096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6097 # Let make expand exec_prefix.
6098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6099
6100 DEFS=-DHAVE_CONFIG_H
6101
6102 ac_libobjs=
6103 ac_ltlibobjs=
6104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6105 # 1. Remove the extension, and $U if already installed.
6106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6109 # will be set to the directory where LIBOBJS objects are built.
6110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6112 done
6113 LIBOBJS=$ac_libobjs
6114
6115 LTLIBOBJS=$ac_ltlibobjs
6116
6117
6118
6119
6120 : ${CONFIG_STATUS=./config.status}
6121 ac_write_fail=0
6122 ac_clean_files_save=$ac_clean_files
6123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6126 as_write_fail=0
6127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6128 #! $SHELL
6129 # Generated by $as_me.
6130 # Run this file to recreate the current configuration.
6131 # Compiler output produced by configure, useful for debugging
6132 # configure, is in config.log if it exists.
6133
6134 debug=false
6135 ac_cs_recheck=false
6136 ac_cs_silent=false
6137
6138 SHELL=\${CONFIG_SHELL-$SHELL}
6139 export SHELL
6140 _ASEOF
6141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6142 ## -------------------- ##
6143 ## M4sh Initialization. ##
6144 ## -------------------- ##
6145
6146 # Be more Bourne compatible
6147 DUALCASE=1; export DUALCASE # for MKS sh
6148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6149 emulate sh
6150 NULLCMD=:
6151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6152 # is contrary to our usage. Disable this feature.
6153 alias -g '${1+"$@"}'='"$@"'
6154 setopt NO_GLOB_SUBST
6155 else
6156 case `(set -o) 2>/dev/null` in #(
6157 *posix*) :
6158 set -o posix ;; #(
6159 *) :
6160 ;;
6161 esac
6162 fi
6163
6164
6165 as_nl='
6166 '
6167 export as_nl
6168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6172 # Prefer a ksh shell builtin over an external printf program on Solaris,
6173 # but without wasting forks for bash or zsh.
6174 if test -z "$BASH_VERSION$ZSH_VERSION" \
6175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6176 as_echo='print -r --'
6177 as_echo_n='print -rn --'
6178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6179 as_echo='printf %s\n'
6180 as_echo_n='printf %s'
6181 else
6182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6184 as_echo_n='/usr/ucb/echo -n'
6185 else
6186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6187 as_echo_n_body='eval
6188 arg=$1;
6189 case $arg in #(
6190 *"$as_nl"*)
6191 expr "X$arg" : "X\\(.*\\)$as_nl";
6192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6193 esac;
6194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6195 '
6196 export as_echo_n_body
6197 as_echo_n='sh -c $as_echo_n_body as_echo'
6198 fi
6199 export as_echo_body
6200 as_echo='sh -c $as_echo_body as_echo'
6201 fi
6202
6203 # The user is always right.
6204 if test "${PATH_SEPARATOR+set}" != set; then
6205 PATH_SEPARATOR=:
6206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6208 PATH_SEPARATOR=';'
6209 }
6210 fi
6211
6212
6213 # IFS
6214 # We need space, tab and new line, in precisely that order. Quoting is
6215 # there to prevent editors from complaining about space-tab.
6216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6217 # splitting by setting IFS to empty value.)
6218 IFS=" "" $as_nl"
6219
6220 # Find who we are. Look in the path if we contain no directory separator.
6221 case $0 in #((
6222 *[\\/]* ) as_myself=$0 ;;
6223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6229 done
6230 IFS=$as_save_IFS
6231
6232 ;;
6233 esac
6234 # We did not find ourselves, most probably we were run as `sh COMMAND'
6235 # in which case we are not to be found in the path.
6236 if test "x$as_myself" = x; then
6237 as_myself=$0
6238 fi
6239 if test ! -f "$as_myself"; then
6240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6241 exit 1
6242 fi
6243
6244 # Unset variables that we do not need and which cause bugs (e.g. in
6245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6246 # suppresses any "Segmentation fault" message there. '((' could
6247 # trigger a bug in pdksh 5.2.14.
6248 for as_var in BASH_ENV ENV MAIL MAILPATH
6249 do eval test x\${$as_var+set} = xset \
6250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6251 done
6252 PS1='$ '
6253 PS2='> '
6254 PS4='+ '
6255
6256 # NLS nuisances.
6257 LC_ALL=C
6258 export LC_ALL
6259 LANGUAGE=C
6260 export LANGUAGE
6261
6262 # CDPATH.
6263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6264
6265
6266 # as_fn_error ERROR [LINENO LOG_FD]
6267 # ---------------------------------
6268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6270 # script with status $?, using 1 if that was 0.
6271 as_fn_error ()
6272 {
6273 as_status=$?; test $as_status -eq 0 && as_status=1
6274 if test "$3"; then
6275 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6277 fi
6278 $as_echo "$as_me: error: $1" >&2
6279 as_fn_exit $as_status
6280 } # as_fn_error
6281
6282
6283 # as_fn_set_status STATUS
6284 # -----------------------
6285 # Set $? to STATUS, without forking.
6286 as_fn_set_status ()
6287 {
6288 return $1
6289 } # as_fn_set_status
6290
6291 # as_fn_exit STATUS
6292 # -----------------
6293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6294 as_fn_exit ()
6295 {
6296 set +e
6297 as_fn_set_status $1
6298 exit $1
6299 } # as_fn_exit
6300
6301 # as_fn_unset VAR
6302 # ---------------
6303 # Portably unset VAR.
6304 as_fn_unset ()
6305 {
6306 { eval $1=; unset $1;}
6307 }
6308 as_unset=as_fn_unset
6309 # as_fn_append VAR VALUE
6310 # ----------------------
6311 # Append the text in VALUE to the end of the definition contained in VAR. Take
6312 # advantage of any shell optimizations that allow amortized linear growth over
6313 # repeated appends, instead of the typical quadratic growth present in naive
6314 # implementations.
6315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6316 eval 'as_fn_append ()
6317 {
6318 eval $1+=\$2
6319 }'
6320 else
6321 as_fn_append ()
6322 {
6323 eval $1=\$$1\$2
6324 }
6325 fi # as_fn_append
6326
6327 # as_fn_arith ARG...
6328 # ------------------
6329 # Perform arithmetic evaluation on the ARGs, and store the result in the
6330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6331 # must be portable across $(()) and expr.
6332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6333 eval 'as_fn_arith ()
6334 {
6335 as_val=$(( $* ))
6336 }'
6337 else
6338 as_fn_arith ()
6339 {
6340 as_val=`expr "$@" || test $? -eq 1`
6341 }
6342 fi # as_fn_arith
6343
6344
6345 if expr a : '\(a\)' >/dev/null 2>&1 &&
6346 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6347 as_expr=expr
6348 else
6349 as_expr=false
6350 fi
6351
6352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6353 as_basename=basename
6354 else
6355 as_basename=false
6356 fi
6357
6358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6359 as_dirname=dirname
6360 else
6361 as_dirname=false
6362 fi
6363
6364 as_me=`$as_basename -- "$0" ||
6365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6366 X"$0" : 'X\(//\)$' \| \
6367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6368 $as_echo X/"$0" |
6369 sed '/^.*\/\([^/][^/]*\)\/*$/{
6370 s//\1/
6371 q
6372 }
6373 /^X\/\(\/\/\)$/{
6374 s//\1/
6375 q
6376 }
6377 /^X\/\(\/\).*/{
6378 s//\1/
6379 q
6380 }
6381 s/.*/./; q'`
6382
6383 # Avoid depending upon Character Ranges.
6384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6387 as_cr_digits='0123456789'
6388 as_cr_alnum=$as_cr_Letters$as_cr_digits
6389
6390 ECHO_C= ECHO_N= ECHO_T=
6391 case `echo -n x` in #(((((
6392 -n*)
6393 case `echo 'xy\c'` in
6394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6395 xy) ECHO_C='\c';;
6396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6397 ECHO_T=' ';;
6398 esac;;
6399 *)
6400 ECHO_N='-n';;
6401 esac
6402
6403 rm -f conf$$ conf$$.exe conf$$.file
6404 if test -d conf$$.dir; then
6405 rm -f conf$$.dir/conf$$.file
6406 else
6407 rm -f conf$$.dir
6408 mkdir conf$$.dir 2>/dev/null
6409 fi
6410 if (echo >conf$$.file) 2>/dev/null; then
6411 if ln -s conf$$.file conf$$ 2>/dev/null; then
6412 as_ln_s='ln -s'
6413 # ... but there are two gotchas:
6414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6416 # In both cases, we have to default to `cp -p'.
6417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6418 as_ln_s='cp -p'
6419 elif ln conf$$.file conf$$ 2>/dev/null; then
6420 as_ln_s=ln
6421 else
6422 as_ln_s='cp -p'
6423 fi
6424 else
6425 as_ln_s='cp -p'
6426 fi
6427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6428 rmdir conf$$.dir 2>/dev/null
6429
6430
6431 # as_fn_mkdir_p
6432 # -------------
6433 # Create "$as_dir" as a directory, including parents if necessary.
6434 as_fn_mkdir_p ()
6435 {
6436
6437 case $as_dir in #(
6438 -*) as_dir=./$as_dir;;
6439 esac
6440 test -d "$as_dir" || eval $as_mkdir_p || {
6441 as_dirs=
6442 while :; do
6443 case $as_dir in #(
6444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6445 *) as_qdir=$as_dir;;
6446 esac
6447 as_dirs="'$as_qdir' $as_dirs"
6448 as_dir=`$as_dirname -- "$as_dir" ||
6449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$as_dir" : 'X\(//\)[^/]' \| \
6451 X"$as_dir" : 'X\(//\)$' \| \
6452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6453 $as_echo X"$as_dir" |
6454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6455 s//\1/
6456 q
6457 }
6458 /^X\(\/\/\)[^/].*/{
6459 s//\1/
6460 q
6461 }
6462 /^X\(\/\/\)$/{
6463 s//\1/
6464 q
6465 }
6466 /^X\(\/\).*/{
6467 s//\1/
6468 q
6469 }
6470 s/.*/./; q'`
6471 test -d "$as_dir" && break
6472 done
6473 test -z "$as_dirs" || eval "mkdir $as_dirs"
6474 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6475
6476
6477 } # as_fn_mkdir_p
6478 if mkdir -p . 2>/dev/null; then
6479 as_mkdir_p='mkdir -p "$as_dir"'
6480 else
6481 test -d ./-p && rmdir ./-p
6482 as_mkdir_p=false
6483 fi
6484
6485 if test -x / >/dev/null 2>&1; then
6486 as_test_x='test -x'
6487 else
6488 if ls -dL / >/dev/null 2>&1; then
6489 as_ls_L_option=L
6490 else
6491 as_ls_L_option=
6492 fi
6493 as_test_x='
6494 eval sh -c '\''
6495 if test -d "$1"; then
6496 test -d "$1/.";
6497 else
6498 case $1 in #(
6499 -*)set "./$1";;
6500 esac;
6501 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6502 ???[sx]*):;;*)false;;esac;fi
6503 '\'' sh
6504 '
6505 fi
6506 as_executable_p=$as_test_x
6507
6508 # Sed expression to map a string onto a valid CPP name.
6509 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6510
6511 # Sed expression to map a string onto a valid variable name.
6512 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6513
6514
6515 exec 6>&1
6516 ## ----------------------------------- ##
6517 ## Main body of $CONFIG_STATUS script. ##
6518 ## ----------------------------------- ##
6519 _ASEOF
6520 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6521
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6523 # Save the log message, to keep $0 and so on meaningful, and to
6524 # report actual input values of CONFIG_FILES etc. instead of their
6525 # values after options handling.
6526 ac_log="
6527 This file was extended by $as_me, which was
6528 generated by GNU Autoconf 2.64. Invocation command line was
6529
6530 CONFIG_FILES = $CONFIG_FILES
6531 CONFIG_HEADERS = $CONFIG_HEADERS
6532 CONFIG_LINKS = $CONFIG_LINKS
6533 CONFIG_COMMANDS = $CONFIG_COMMANDS
6534 $ $0 $@
6535
6536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6537 "
6538
6539 _ACEOF
6540
6541 case $ac_config_files in *"
6542 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6543 esac
6544
6545 case $ac_config_headers in *"
6546 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6547 esac
6548
6549
6550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6551 # Files that config.status was made for.
6552 config_files="$ac_config_files"
6553 config_headers="$ac_config_headers"
6554 config_commands="$ac_config_commands"
6555
6556 _ACEOF
6557
6558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6559 ac_cs_usage="\
6560 \`$as_me' instantiates files and other configuration actions
6561 from templates according to the current configuration. Unless the files
6562 and actions are specified as TAGs, all are instantiated by default.
6563
6564 Usage: $0 [OPTION]... [TAG]...
6565
6566 -h, --help print this help, then exit
6567 -V, --version print version number and configuration settings, then exit
6568 -q, --quiet, --silent
6569 do not print progress messages
6570 -d, --debug don't remove temporary files
6571 --recheck update $as_me by reconfiguring in the same conditions
6572 --file=FILE[:TEMPLATE]
6573 instantiate the configuration file FILE
6574 --header=FILE[:TEMPLATE]
6575 instantiate the configuration header FILE
6576
6577 Configuration files:
6578 $config_files
6579
6580 Configuration headers:
6581 $config_headers
6582
6583 Configuration commands:
6584 $config_commands
6585
6586 Report bugs to the package provider."
6587
6588 _ACEOF
6589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6590 ac_cs_version="\\
6591 config.status
6592 configured by $0, generated by GNU Autoconf 2.64,
6593 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6594
6595 Copyright (C) 2009 Free Software Foundation, Inc.
6596 This config.status script is free software; the Free Software Foundation
6597 gives unlimited permission to copy, distribute and modify it."
6598
6599 ac_pwd='$ac_pwd'
6600 srcdir='$srcdir'
6601 INSTALL='$INSTALL'
6602 test -n "\$AWK" || AWK=awk
6603 _ACEOF
6604
6605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6606 # The default lists apply if the user does not specify any file.
6607 ac_need_defaults=:
6608 while test $# != 0
6609 do
6610 case $1 in
6611 --*=*)
6612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6614 ac_shift=:
6615 ;;
6616 *)
6617 ac_option=$1
6618 ac_optarg=$2
6619 ac_shift=shift
6620 ;;
6621 esac
6622
6623 case $ac_option in
6624 # Handling of the options.
6625 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6626 ac_cs_recheck=: ;;
6627 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6628 $as_echo "$ac_cs_version"; exit ;;
6629 --debug | --debu | --deb | --de | --d | -d )
6630 debug=: ;;
6631 --file | --fil | --fi | --f )
6632 $ac_shift
6633 case $ac_optarg in
6634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6635 esac
6636 as_fn_append CONFIG_FILES " '$ac_optarg'"
6637 ac_need_defaults=false;;
6638 --header | --heade | --head | --hea )
6639 $ac_shift
6640 case $ac_optarg in
6641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6642 esac
6643 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6644 ac_need_defaults=false;;
6645 --he | --h)
6646 # Conflict between --help and --header
6647 as_fn_error "ambiguous option: \`$1'
6648 Try \`$0 --help' for more information.";;
6649 --help | --hel | -h )
6650 $as_echo "$ac_cs_usage"; exit ;;
6651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6653 ac_cs_silent=: ;;
6654
6655 # This is an error.
6656 -*) as_fn_error "unrecognized option: \`$1'
6657 Try \`$0 --help' for more information." ;;
6658
6659 *) as_fn_append ac_config_targets " $1"
6660 ac_need_defaults=false ;;
6661
6662 esac
6663 shift
6664 done
6665
6666 ac_configure_extra_args=
6667
6668 if $ac_cs_silent; then
6669 exec 6>/dev/null
6670 ac_configure_extra_args="$ac_configure_extra_args --silent"
6671 fi
6672
6673 _ACEOF
6674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6675 if \$ac_cs_recheck; then
6676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6677 shift
6678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6679 CONFIG_SHELL='$SHELL'
6680 export CONFIG_SHELL
6681 exec "\$@"
6682 fi
6683
6684 _ACEOF
6685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6686 exec 5>>config.log
6687 {
6688 echo
6689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6690 ## Running $as_me. ##
6691 _ASBOX
6692 $as_echo "$ac_log"
6693 } >&5
6694
6695 _ACEOF
6696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6697 _ACEOF
6698
6699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6700
6701 # Handling of arguments.
6702 for ac_config_target in $ac_config_targets
6703 do
6704 case $ac_config_target in
6705 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6706 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6707 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6708
6709 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6710 esac
6711 done
6712
6713
6714 # If the user did not use the arguments to specify the items to instantiate,
6715 # then the envvar interface is used. Set only those that are not.
6716 # We use the long form for the default assignment because of an extremely
6717 # bizarre bug on SunOS 4.1.3.
6718 if $ac_need_defaults; then
6719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6722 fi
6723
6724 # Have a temporary directory for convenience. Make it in the build tree
6725 # simply because there is no reason against having it here, and in addition,
6726 # creating and moving files from /tmp can sometimes cause problems.
6727 # Hook for its removal unless debugging.
6728 # Note that there is a small window in which the directory will not be cleaned:
6729 # after its creation but before its name has been assigned to `$tmp'.
6730 $debug ||
6731 {
6732 tmp=
6733 trap 'exit_status=$?
6734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6735 ' 0
6736 trap 'as_fn_exit 1' 1 2 13 15
6737 }
6738 # Create a (secure) tmp directory for tmp files.
6739
6740 {
6741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6742 test -n "$tmp" && test -d "$tmp"
6743 } ||
6744 {
6745 tmp=./conf$$-$RANDOM
6746 (umask 077 && mkdir "$tmp")
6747 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6748
6749 # Set up the scripts for CONFIG_FILES section.
6750 # No need to generate them if there are no CONFIG_FILES.
6751 # This happens for instance with `./config.status config.h'.
6752 if test -n "$CONFIG_FILES"; then
6753
6754
6755 ac_cr=`echo X | tr X '\015'`
6756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6757 # But we know of no other shell where ac_cr would be empty at this
6758 # point, so we can use a bashism as a fallback.
6759 if test "x$ac_cr" = x; then
6760 eval ac_cr=\$\'\\r\'
6761 fi
6762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6764 ac_cs_awk_cr='\r'
6765 else
6766 ac_cs_awk_cr=$ac_cr
6767 fi
6768
6769 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6770 _ACEOF
6771
6772
6773 {
6774 echo "cat >conf$$subs.awk <<_ACEOF" &&
6775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6776 echo "_ACEOF"
6777 } >conf$$subs.sh ||
6778 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6780 ac_delim='%!_!# '
6781 for ac_last_try in false false false false false :; do
6782 . ./conf$$subs.sh ||
6783 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6784
6785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6786 if test $ac_delim_n = $ac_delim_num; then
6787 break
6788 elif $ac_last_try; then
6789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6790 else
6791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6792 fi
6793 done
6794 rm -f conf$$subs.sh
6795
6796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6797 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6798 _ACEOF
6799 sed -n '
6800 h
6801 s/^/S["/; s/!.*/"]=/
6802 p
6803 g
6804 s/^[^!]*!//
6805 :repl
6806 t repl
6807 s/'"$ac_delim"'$//
6808 t delim
6809 :nl
6810 h
6811 s/\(.\{148\}\).*/\1/
6812 t more1
6813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6814 p
6815 n
6816 b repl
6817 :more1
6818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6819 p
6820 g
6821 s/.\{148\}//
6822 t nl
6823 :delim
6824 h
6825 s/\(.\{148\}\).*/\1/
6826 t more2
6827 s/["\\]/\\&/g; s/^/"/; s/$/"/
6828 p
6829 b
6830 :more2
6831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6832 p
6833 g
6834 s/.\{148\}//
6835 t delim
6836 ' <conf$$subs.awk | sed '
6837 /^[^""]/{
6838 N
6839 s/\n//
6840 }
6841 ' >>$CONFIG_STATUS || ac_write_fail=1
6842 rm -f conf$$subs.awk
6843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6844 _ACAWK
6845 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6846 for (key in S) S_is_set[key] = 1
6847 FS = "\a"
6848
6849 }
6850 {
6851 line = $ 0
6852 nfields = split(line, field, "@")
6853 substed = 0
6854 len = length(field[1])
6855 for (i = 2; i < nfields; i++) {
6856 key = field[i]
6857 keylen = length(key)
6858 if (S_is_set[key]) {
6859 value = S[key]
6860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6861 len += length(value) + length(field[++i])
6862 substed = 1
6863 } else
6864 len += 1 + keylen
6865 }
6866
6867 print line
6868 }
6869
6870 _ACAWK
6871 _ACEOF
6872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6875 else
6876 cat
6877 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6878 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6879 _ACEOF
6880
6881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6883 # trailing colons and then remove the whole line if VPATH becomes empty
6884 # (actually we leave an empty line to preserve line numbers).
6885 if test "x$srcdir" = x.; then
6886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6887 s/:*\$(srcdir):*/:/
6888 s/:*\${srcdir}:*/:/
6889 s/:*@srcdir@:*/:/
6890 s/^\([^=]*=[ ]*\):*/\1/
6891 s/:*$//
6892 s/^[^=]*=[ ]*$//
6893 }'
6894 fi
6895
6896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6897 fi # test -n "$CONFIG_FILES"
6898
6899 # Set up the scripts for CONFIG_HEADERS section.
6900 # No need to generate them if there are no CONFIG_HEADERS.
6901 # This happens for instance with `./config.status Makefile'.
6902 if test -n "$CONFIG_HEADERS"; then
6903 cat >"$tmp/defines.awk" <<\_ACAWK ||
6904 BEGIN {
6905 _ACEOF
6906
6907 # Transform confdefs.h into an awk script `defines.awk', embedded as
6908 # here-document in config.status, that substitutes the proper values into
6909 # config.h.in to produce config.h.
6910
6911 # Create a delimiter string that does not exist in confdefs.h, to ease
6912 # handling of long lines.
6913 ac_delim='%!_!# '
6914 for ac_last_try in false false :; do
6915 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6916 if test -z "$ac_t"; then
6917 break
6918 elif $ac_last_try; then
6919 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6920 else
6921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6922 fi
6923 done
6924
6925 # For the awk script, D is an array of macro values keyed by name,
6926 # likewise P contains macro parameters if any. Preserve backslash
6927 # newline sequences.
6928
6929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6930 sed -n '
6931 s/.\{148\}/&'"$ac_delim"'/g
6932 t rset
6933 :rset
6934 s/^[ ]*#[ ]*define[ ][ ]*/ /
6935 t def
6936 d
6937 :def
6938 s/\\$//
6939 t bsnl
6940 s/["\\]/\\&/g
6941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6942 D["\1"]=" \3"/p
6943 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6944 d
6945 :bsnl
6946 s/["\\]/\\&/g
6947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6948 D["\1"]=" \3\\\\\\n"\\/p
6949 t cont
6950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6951 t cont
6952 d
6953 :cont
6954 n
6955 s/.\{148\}/&'"$ac_delim"'/g
6956 t clear
6957 :clear
6958 s/\\$//
6959 t bsnlc
6960 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6961 d
6962 :bsnlc
6963 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6964 b cont
6965 ' <confdefs.h | sed '
6966 s/'"$ac_delim"'/"\\\
6967 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6968
6969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6970 for (key in D) D_is_set[key] = 1
6971 FS = "\a"
6972 }
6973 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6974 line = \$ 0
6975 split(line, arg, " ")
6976 if (arg[1] == "#") {
6977 defundef = arg[2]
6978 mac1 = arg[3]
6979 } else {
6980 defundef = substr(arg[1], 2)
6981 mac1 = arg[2]
6982 }
6983 split(mac1, mac2, "(") #)
6984 macro = mac2[1]
6985 prefix = substr(line, 1, index(line, defundef) - 1)
6986 if (D_is_set[macro]) {
6987 # Preserve the white space surrounding the "#".
6988 print prefix "define", macro P[macro] D[macro]
6989 next
6990 } else {
6991 # Replace #undef with comments. This is necessary, for example,
6992 # in the case of _POSIX_SOURCE, which is predefined and required
6993 # on some systems where configure will not decide to define it.
6994 if (defundef == "undef") {
6995 print "/*", prefix defundef, macro, "*/"
6996 next
6997 }
6998 }
6999 }
7000 { print }
7001 _ACAWK
7002 _ACEOF
7003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7004 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7005 fi # test -n "$CONFIG_HEADERS"
7006
7007
7008 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7009 shift
7010 for ac_tag
7011 do
7012 case $ac_tag in
7013 :[FHLC]) ac_mode=$ac_tag; continue;;
7014 esac
7015 case $ac_mode$ac_tag in
7016 :[FHL]*:*);;
7017 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7018 :[FH]-) ac_tag=-:-;;
7019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7020 esac
7021 ac_save_IFS=$IFS
7022 IFS=:
7023 set x $ac_tag
7024 IFS=$ac_save_IFS
7025 shift
7026 ac_file=$1
7027 shift
7028
7029 case $ac_mode in
7030 :L) ac_source=$1;;
7031 :[FH])
7032 ac_file_inputs=
7033 for ac_f
7034 do
7035 case $ac_f in
7036 -) ac_f="$tmp/stdin";;
7037 *) # Look for the file first in the build tree, then in the source tree
7038 # (if the path is not absolute). The absolute path cannot be DOS-style,
7039 # because $ac_f cannot contain `:'.
7040 test -f "$ac_f" ||
7041 case $ac_f in
7042 [\\/$]*) false;;
7043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7044 esac ||
7045 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7046 esac
7047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7048 as_fn_append ac_file_inputs " '$ac_f'"
7049 done
7050
7051 # Let's still pretend it is `configure' which instantiates (i.e., don't
7052 # use $as_me), people would be surprised to read:
7053 # /* config.h. Generated by config.status. */
7054 configure_input='Generated from '`
7055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7056 `' by configure.'
7057 if test x"$ac_file" != x-; then
7058 configure_input="$ac_file. $configure_input"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7060 $as_echo "$as_me: creating $ac_file" >&6;}
7061 fi
7062 # Neutralize special characters interpreted by sed in replacement strings.
7063 case $configure_input in #(
7064 *\&* | *\|* | *\\* )
7065 ac_sed_conf_input=`$as_echo "$configure_input" |
7066 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7067 *) ac_sed_conf_input=$configure_input;;
7068 esac
7069
7070 case $ac_tag in
7071 *:-:* | *:-) cat >"$tmp/stdin" \
7072 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7073 esac
7074 ;;
7075 esac
7076
7077 ac_dir=`$as_dirname -- "$ac_file" ||
7078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7079 X"$ac_file" : 'X\(//\)[^/]' \| \
7080 X"$ac_file" : 'X\(//\)$' \| \
7081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7082 $as_echo X"$ac_file" |
7083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7084 s//\1/
7085 q
7086 }
7087 /^X\(\/\/\)[^/].*/{
7088 s//\1/
7089 q
7090 }
7091 /^X\(\/\/\)$/{
7092 s//\1/
7093 q
7094 }
7095 /^X\(\/\).*/{
7096 s//\1/
7097 q
7098 }
7099 s/.*/./; q'`
7100 as_dir="$ac_dir"; as_fn_mkdir_p
7101 ac_builddir=.
7102
7103 case "$ac_dir" in
7104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7105 *)
7106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7107 # A ".." for each directory in $ac_dir_suffix.
7108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7109 case $ac_top_builddir_sub in
7110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7112 esac ;;
7113 esac
7114 ac_abs_top_builddir=$ac_pwd
7115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7116 # for backward compatibility:
7117 ac_top_builddir=$ac_top_build_prefix
7118
7119 case $srcdir in
7120 .) # We are building in place.
7121 ac_srcdir=.
7122 ac_top_srcdir=$ac_top_builddir_sub
7123 ac_abs_top_srcdir=$ac_pwd ;;
7124 [\\/]* | ?:[\\/]* ) # Absolute name.
7125 ac_srcdir=$srcdir$ac_dir_suffix;
7126 ac_top_srcdir=$srcdir
7127 ac_abs_top_srcdir=$srcdir ;;
7128 *) # Relative name.
7129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7130 ac_top_srcdir=$ac_top_build_prefix$srcdir
7131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7132 esac
7133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7134
7135
7136 case $ac_mode in
7137 :F)
7138 #
7139 # CONFIG_FILE
7140 #
7141
7142 case $INSTALL in
7143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7145 esac
7146 _ACEOF
7147
7148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7149 # If the template does not know about datarootdir, expand it.
7150 # FIXME: This hack should be removed a few years after 2.60.
7151 ac_datarootdir_hack=; ac_datarootdir_seen=
7152 ac_sed_dataroot='
7153 /datarootdir/ {
7154 p
7155 q
7156 }
7157 /@datadir@/p
7158 /@docdir@/p
7159 /@infodir@/p
7160 /@localedir@/p
7161 /@mandir@/p'
7162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7163 *datarootdir*) ac_datarootdir_seen=yes;;
7164 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7167 _ACEOF
7168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7169 ac_datarootdir_hack='
7170 s&@datadir@&$datadir&g
7171 s&@docdir@&$docdir&g
7172 s&@infodir@&$infodir&g
7173 s&@localedir@&$localedir&g
7174 s&@mandir@&$mandir&g
7175 s&\\\${datarootdir}&$datarootdir&g' ;;
7176 esac
7177 _ACEOF
7178
7179 # Neutralize VPATH when `$srcdir' = `.'.
7180 # Shell code in configure.ac might set extrasub.
7181 # FIXME: do we really want to maintain this feature?
7182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7183 ac_sed_extra="$ac_vpsub
7184 $extrasub
7185 _ACEOF
7186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7187 :t
7188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7189 s|@configure_input@|$ac_sed_conf_input|;t t
7190 s&@top_builddir@&$ac_top_builddir_sub&;t t
7191 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7192 s&@srcdir@&$ac_srcdir&;t t
7193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7194 s&@top_srcdir@&$ac_top_srcdir&;t t
7195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7196 s&@builddir@&$ac_builddir&;t t
7197 s&@abs_builddir@&$ac_abs_builddir&;t t
7198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7199 s&@INSTALL@&$ac_INSTALL&;t t
7200 $ac_datarootdir_hack
7201 "
7202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7203 || as_fn_error "could not create $ac_file" "$LINENO" 5
7204
7205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7209 which seems to be undefined. Please make sure it is defined." >&5
7210 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7211 which seems to be undefined. Please make sure it is defined." >&2;}
7212
7213 rm -f "$tmp/stdin"
7214 case $ac_file in
7215 -) cat "$tmp/out" && rm -f "$tmp/out";;
7216 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7217 esac \
7218 || as_fn_error "could not create $ac_file" "$LINENO" 5
7219 ;;
7220 :H)
7221 #
7222 # CONFIG_HEADER
7223 #
7224 if test x"$ac_file" != x-; then
7225 {
7226 $as_echo "/* $configure_input */" \
7227 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7228 } >"$tmp/config.h" \
7229 || as_fn_error "could not create $ac_file" "$LINENO" 5
7230 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7232 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7233 else
7234 rm -f "$ac_file"
7235 mv "$tmp/config.h" "$ac_file" \
7236 || as_fn_error "could not create $ac_file" "$LINENO" 5
7237 fi
7238 else
7239 $as_echo "/* $configure_input */" \
7240 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7241 || as_fn_error "could not create -" "$LINENO" 5
7242 fi
7243 ;;
7244
7245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7246 $as_echo "$as_me: executing $ac_file commands" >&6;}
7247 ;;
7248 esac
7249
7250
7251 case $ac_file$ac_mode in
7252 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7253
7254 esac
7255 done # for ac_tag
7256
7257
7258 as_fn_exit 0
7259 _ACEOF
7260 ac_clean_files=$ac_clean_files_save
7261
7262 test $ac_write_fail = 0 ||
7263 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7264
7265
7266 # configure is writing to config.log, and then calls config.status.
7267 # config.status does its own redirection, appending to config.log.
7268 # Unfortunately, on DOS this fails, as config.log is still kept open
7269 # by configure, so config.status won't be able to write to it; its
7270 # output is simply discarded. So we exec the FD to /dev/null,
7271 # effectively closing config.log, so it can be properly (re)opened and
7272 # appended to by config.status. When coming back to configure, we
7273 # need to make the FD available again.
7274 if test "$no_create" != yes; then
7275 ac_cs_success=:
7276 ac_config_status_args=
7277 test "$silent" = yes &&
7278 ac_config_status_args="$ac_config_status_args --quiet"
7279 exec 5>/dev/null
7280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7281 exec 5>>config.log
7282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7283 # would make configure fail if this is the last instruction.
7284 $ac_cs_success || as_fn_exit $?
7285 fi
7286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7288 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7289 fi
7290
This page took 0.185526 seconds and 4 git commands to generate.