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