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