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