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