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