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