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