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