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