2012-09-24 Steve Ellcey <sellcey@mips.com>
[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 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5316 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5317 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5318 *) SIM_SUBTARGET="";;
5319 esac
5320
5321
5322
5323
5324 #
5325 # Select the byte order of the target
5326 #
5327 mips_endian=
5328 default_endian=
5329 case "${target}" in
5330 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
5331 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
5332 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5333 mips16*-*-*) default_endian=BIG_ENDIAN ;;
5334 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5335 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
5336 mips*-*-*) default_endian=BIG_ENDIAN ;;
5337 *) default_endian=BIG_ENDIAN ;;
5338 esac
5339
5340 wire_endian="$mips_endian"
5341 default_endian="$default_endian"
5342 # Check whether --enable-sim-endian was given.
5343 if test "${enable_sim_endian+set}" = set; then :
5344 enableval=$enable_sim_endian; case "${enableval}" in
5345 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5346 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5347 yes) if test x"$wire_endian" != x; then
5348 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5349 else
5350 if test x"$default_endian" != x; then
5351 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5352 else
5353 echo "No hard-wired endian for target $target" 1>&6
5354 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5355 fi
5356 fi;;
5357 no) if test x"$default_endian" != x; then
5358 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5359 else
5360 if test x"$wire_endian" != x; then
5361 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5362 else
5363 echo "No default endian for target $target" 1>&6
5364 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5365 fi
5366 fi;;
5367 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5368 esac
5369 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5370 echo "Setting endian flags = $sim_endian" 6>&1
5371 fi
5372 else
5373 if test x"$default_endian" != x; then
5374 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5375 else
5376 if test x"$wire_endian" != x; then
5377 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5378 else
5379 sim_endian=
5380 fi
5381 fi
5382 fi
5383
5384
5385
5386
5387 #
5388 # Select the bitsize of the target
5389 #
5390 mips_addr_bitsize=
5391 case "${target}" in
5392 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5393 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
5394 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5395 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5396 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5397 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5398 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5399 *) mips_bitsize=64 ; mips_msb=63 ;;
5400 esac
5401 wire_word_bitsize="$mips_bitsize"
5402 wire_word_msb="$mips_msb"
5403 wire_address_bitsize="$mips_addr_bitsize"
5404 wire_cell_bitsize=""
5405 # Check whether --enable-sim-bitsize was given.
5406 if test "${enable_sim_bitsize+set}" = set; then :
5407 enableval=$enable_sim_bitsize; sim_bitsize=
5408 case "${enableval}" in
5409 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5410 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5411 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5412 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5413 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5414 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5415 else
5416 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5417 fi ;;
5418 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5419 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5420 else
5421 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5422 fi ;;
5423 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
5424 esac
5425 # address bitsize
5426 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5427 case x"${tmp}" in
5428 x ) ;;
5429 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5430 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
5431 * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
5432 esac
5433 # cell bitsize
5434 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5435 case x"${tmp}" in
5436 x ) ;;
5437 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5438 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
5439 * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
5440 esac
5441 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5442 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5443 fi
5444 else
5445 sim_bitsize=""
5446 if test x"$wire_word_bitsize" != x; then
5447 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5448 fi
5449 if test x"$wire_word_msb" != x; then
5450 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5451 fi
5452 if test x"$wire_address_bitsize" != x; then
5453 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5454 fi
5455 if test x"$wire_cell_bitsize" != x; then
5456 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5457 fi
5458 fi
5459
5460
5461
5462
5463 #
5464 # Select the floating hardware support of the target
5465 #
5466 mips_fpu=HARDWARE_FLOATING_POINT
5467 mips_fpu_bitsize=
5468 case "${target}" in
5469 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5470 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5471 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5472 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5473 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5474 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5475 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5476 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5477 *) mips_fpu=HARD_FLOATING_POINT ;;
5478 esac
5479
5480 default_sim_float="$mips_fpu"
5481 default_sim_float_bitsize="$mips_fpu_bitsize"
5482 # Check whether --enable-sim-float was given.
5483 if test "${enable_sim_float+set}" = set; then :
5484 enableval=$enable_sim_float; case "${enableval}" in
5485 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5486 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5487 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5488 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
5489 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5490 esac
5491 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5492 echo "Setting float flags = $sim_float" 6>&1
5493 fi
5494 else
5495
5496 sim_float=
5497 if test x"${default_sim_float}" != x""; then
5498 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5499 fi
5500 if test x"${default_sim_float_bitsize}" != x""; then
5501 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5502 fi
5503
5504 fi
5505
5506
5507
5508
5509 #
5510 # Select the level of SMP support
5511 #
5512 case "${target}" in
5513 *) mips_smp=0 ;;
5514 esac
5515
5516 default_sim_smp="$mips_smp"
5517 # Check whether --enable-sim-smp was given.
5518 if test "${enable_sim_smp+set}" = set; then :
5519 enableval=$enable_sim_smp; case "${enableval}" in
5520 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5521 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5522 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5523 esac
5524 if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5525 echo "Setting smp flags = $sim_smp" 6>&1
5526 fi
5527 else
5528 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5529 if test x"$silent" != x"yes"; then
5530 echo "Setting smp flags = $sim_smp" 6>&1
5531 fi
5532 fi
5533
5534
5535
5536
5537 #
5538 # Select the IGEN architecture
5539 #
5540 sim_gen=IGEN
5541 sim_igen_machine="-M mipsIV"
5542 sim_m16_machine="-M mips16,mipsIII"
5543 sim_igen_filter="32,64,f"
5544 sim_m16_filter="16"
5545 sim_mach_default="mips8000"
5546
5547 case "${target}" in
5548 mips*tx39*) sim_gen=IGEN
5549 sim_igen_filter="32,f"
5550 sim_igen_machine="-M r3900"
5551 ;;
5552 mips64vr43*-*-*) sim_gen=IGEN
5553 sim_igen_machine="-M mipsIV"
5554 sim_mach_default="mips8000"
5555 ;;
5556 mips64vr5*-*-*) sim_gen=IGEN
5557 sim_igen_machine="-M vr5000"
5558 sim_mach_default="mips5000"
5559 ;;
5560 mips64vr41*) sim_gen=M16
5561 sim_igen_machine="-M vr4100"
5562 sim_m16_machine="-M vr4100"
5563 sim_igen_filter="32,64,f"
5564 sim_m16_filter="16"
5565 sim_mach_default="mips4100"
5566 ;;
5567 mips64vr-*-* | mips64vrel-*-*)
5568 sim_gen=MULTI
5569 sim_multi_configs="\
5570 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5571 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5572 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5573 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5574 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5575 sim_multi_default=mips5000
5576 ;;
5577 mips*-sde-elf* | mips*-mti-elf*)
5578 sim_gen=M16
5579 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5580 sim_m16_machine="-M mips16,mips16e,mips64r2"
5581 sim_igen_filter="32,64,f"
5582 sim_mach_default="mipsisa64r2"
5583 ;;
5584 mips64*-*-*) sim_igen_filter="32,64,f"
5585 sim_gen=IGEN
5586 ;;
5587 mips16*-*-*) sim_gen=M16
5588 sim_igen_filter="32,64,f"
5589 sim_m16_filter="16"
5590 ;;
5591 mipsisa32r2*-*-*) sim_gen=M16
5592 sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5593 sim_m16_machine="-M mips16,mips16e,mips32r2"
5594 sim_igen_filter="32,f"
5595 sim_mach_default="mipsisa32r2"
5596 ;;
5597 mipsisa32*-*-*) sim_gen=M16
5598 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
5599 sim_m16_machine="-M mips16,mips16e,mips32"
5600 sim_igen_filter="32,f"
5601 sim_mach_default="mipsisa32"
5602 ;;
5603 mipsisa64r2*-*-*) sim_gen=M16
5604 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5605 sim_m16_machine="-M mips16,mips16e,mips64r2"
5606 sim_igen_filter="32,64,f"
5607 sim_mach_default="mipsisa64r2"
5608 ;;
5609 mipsisa64sb1*-*-*) sim_gen=IGEN
5610 sim_igen_machine="-M mips64,mips3d,sb1"
5611 sim_igen_filter="32,64,f"
5612 sim_mach_default="mips_sb1"
5613 ;;
5614 mipsisa64*-*-*) sim_gen=M16
5615 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
5616 sim_m16_machine="-M mips16,mips16e,mips64"
5617 sim_igen_filter="32,64,f"
5618 sim_mach_default="mipsisa64"
5619 ;;
5620 mips*lsi*) sim_gen=M16
5621 sim_igen_machine="-M mipsIII,mips16"
5622 sim_m16_machine="-M mips16,mipsIII"
5623 sim_igen_filter="32,f"
5624 sim_m16_filter="16"
5625 sim_mach_default="mips4000"
5626 ;;
5627 mips*-*-*) sim_gen=IGEN
5628 sim_igen_filter="32,f"
5629 ;;
5630 esac
5631
5632 # The MULTI generator can combine several simulation engines into one.
5633 # executable. A configuration which uses the MULTI should set two
5634 # variables: ${sim_multi_configs} and ${sim_multi_default}.
5635 #
5636 # ${sim_multi_configs} is the list of engines to build. Each
5637 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5638 # where:
5639 #
5640 # - NAME is a C-compatible prefix for the engine,
5641 # - MACHINE is a -M argument,
5642 # - FILTER is a -F argument, and
5643 # - BFDMACHS is a comma-separated list of bfd machines that the
5644 # simulator can run.
5645 #
5646 # Each entry will have a separate simulation engine whose prefix is
5647 # m32<NAME>. If the machine list includes "mips16", there will also
5648 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5649 # generated using the same machine list as the 32-bit version,
5650 # but the filter will be "16" instead of FILTER.
5651 #
5652 # The simulator compares the bfd mach against BFDMACHS to decide
5653 # which engine to use. Entries in BFDMACHS should be bfd_mach
5654 # values with "bfd_mach_" removed. ${sim_multi_default} says
5655 # which entry should be the default.
5656 if test ${sim_gen} = MULTI; then
5657
5658 # Simple sanity check.
5659 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
5660 as_fn_error "Error in configure.in: MULTI simulator not set up correctly" "$LINENO" 5
5661 fi
5662
5663 # Start in a known state.
5664 rm -f multi-include.h multi-run.c
5665 sim_multi_flags=
5666 sim_multi_src=
5667 sim_multi_obj=multi-run.o
5668 sim_multi_igen_configs=
5669 sim_seen_default=no
5670
5671 cat << __EOF__ > multi-run.c
5672 /* Main entry point for MULTI simulators.
5673 Copyright (C) 2003, 2007, 2010, 2012 Free Software Foundation, Inc.
5674
5675 This program is free software; you can redistribute it and/or modify
5676 it under the terms of the GNU General Public License as published by
5677 the Free Software Foundation; either version 3 of the License, or
5678 (at your option) any later version.
5679
5680 This program is distributed in the hope that it will be useful,
5681 but WITHOUT ANY WARRANTY; without even the implied warranty of
5682 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5683 GNU General Public License for more details.
5684
5685 You should have received a copy of the GNU General Public License
5686 along with this program. If not, see <http://www.gnu.org/licenses/>.
5687
5688 --
5689
5690 This file was generated by sim/mips/configure. */
5691
5692 #include "sim-main.h"
5693 #include "multi-include.h"
5694
5695 #define SD sd
5696 #define CPU cpu
5697
5698 void
5699 sim_engine_run (SIM_DESC sd,
5700 int next_cpu_nr,
5701 int nr_cpus,
5702 int signal) /* ignore */
5703 {
5704 int mach;
5705
5706 if (STATE_ARCHITECTURE (sd) == NULL)
5707 mach = bfd_mach_${sim_multi_default};
5708 else
5709 mach = STATE_ARCHITECTURE (SD)->mach;
5710
5711 switch (mach)
5712 {
5713 __EOF__
5714
5715 for fc in ${sim_multi_configs}; do
5716
5717 # Split up the entry. ${c} contains the first three elements.
5718 # Note: outer sqaure brackets are m4 quotes.
5719 c=`echo ${fc} | sed 's/:[^:]*$//'`
5720 bfdmachs=`echo ${fc} | sed 's/.*://'`
5721 name=`echo ${c} | sed 's/:.*//'`
5722 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5723 filter=`echo ${c} | sed 's/.*://'`
5724
5725 # Build the following lists:
5726 #
5727 # sim_multi_flags: all -M and -F flags used by the simulator
5728 # sim_multi_src: all makefile-generated source files
5729 # sim_multi_obj: the objects for ${sim_multi_src}
5730 # sim_multi_igen_configs: igen configuration strings.
5731 #
5732 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5733 # or m16) followed by the NAME, MACHINE and FILTER part of
5734 # the ${sim_multi_configs} entry.
5735 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5736
5737 # Check whether mips16 handling is needed.
5738 case ${c} in
5739 *:*mips16*:*)
5740 # Run igen twice, once for normal mode and once for mips16.
5741 ws="m32 m16"
5742
5743 # The top-level function for the mips16 simulator is
5744 # in a file m16${name}_run.c, generated by the
5745 # tmp-run-multi Makefile rule.
5746 sim_multi_src="${sim_multi_src} m16${name}_run.c"
5747 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5748 sim_multi_flags="${sim_multi_flags} -F 16"
5749 ;;
5750 *)
5751 ws=m32
5752 ;;
5753 esac
5754
5755 # Now add the list of igen-generated files to ${sim_multi_src}
5756 # and ${sim_multi_obj}.
5757 for w in ${ws}; do
5758 for base in engine icache idecode model semantics support; do
5759 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5760 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5761 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5762 done
5763 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5764 done
5765
5766 # Add an include for the engine.h file. This file declares the
5767 # top-level foo_engine_run() function.
5768 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5769
5770 # Add case statements for this engine to sim_engine_run().
5771 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5772 echo " case bfd_mach_${mach}:" >> multi-run.c
5773 if test ${mach} = ${sim_multi_default}; then
5774 echo " default:" >> multi-run.c
5775 sim_seen_default=yes
5776 fi
5777 done
5778 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5779 >> multi-run.c
5780 echo " break;" >> multi-run.c
5781 done
5782
5783 # Check whether we added a 'default:' label.
5784 if test ${sim_seen_default} = no; then
5785 as_fn_error "Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
5786 fi
5787
5788 cat << __EOF__ >> multi-run.c
5789 }
5790 }
5791
5792 int
5793 mips_mach_multi (SIM_DESC sd)
5794 {
5795 if (STATE_ARCHITECTURE (sd) == NULL)
5796 return bfd_mach_${sim_multi_default};
5797
5798 switch (STATE_ARCHITECTURE (SD)->mach)
5799 {
5800 __EOF__
5801
5802 # Add case statements for this engine to mips_mach_multi().
5803 for fc in ${sim_multi_configs}; do
5804
5805 # Split up the entry. ${c} contains the first three elements.
5806 # Note: outer sqaure brackets are m4 quotes.
5807 c=`echo ${fc} | sed 's/:[^:]*$//'`
5808 bfdmachs=`echo ${fc} | sed 's/.*://'`
5809
5810 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5811 echo " case bfd_mach_${mach}:" >> multi-run.c
5812 done
5813 done
5814
5815 cat << __EOF__ >> multi-run.c
5816 return (STATE_ARCHITECTURE (SD)->mach);
5817 default:
5818 return bfd_mach_${sim_multi_default};
5819 }
5820 }
5821 __EOF__
5822
5823 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5824 else
5825 # For clean-extra
5826 sim_multi_src=doesnt-exist.c
5827
5828 if test x"${sim_mach_default}" = x""; then
5829 as_fn_error "Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
5830 fi
5831 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5832 fi
5833 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5834 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 #
5845 # Add simulated hardware devices
5846 #
5847 hw_enabled=no
5848 case "${target}" in
5849 mips*tx39*)
5850 hw_enabled=yes
5851 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
5852 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5853 ;;
5854 *)
5855 ;;
5856 esac
5857
5858 if test x"$hw_enabled" = x"yes"; then
5859 sim_hw_p=yes
5860 else
5861 sim_hw_p=no
5862 fi
5863 if test "$hw_devices"; then
5864 hardware="$hw_devices"
5865 else
5866 hardware="cfi core pal glue"
5867 fi
5868 hardware="$hardware $hw_extra_devices"
5869 sim_hw_cflags="-DWITH_HW=1"
5870 sim_hw="$hardware"
5871 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
5872 # Check whether --enable-sim-hardware was given.
5873 if test "${enable_sim_hardware+set}" = set; then :
5874 enableval=$enable_sim_hardware;
5875 case "${enableval}" in
5876 yes) sim_hw_p=yes;;
5877 no) sim_hw_p=no;;
5878 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5879 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5880 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5881 esac
5882 if test "$sim_hw_p" != yes; then
5883 sim_hw_objs=
5884 sim_hw_cflags="-DWITH_HW=0"
5885 sim_hw=
5886 else
5887 sim_hw_cflags="-DWITH_HW=1"
5888 # remove duplicates
5889 sim_hw=""
5890 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
5891 for i in $hardware ; do
5892 case " $sim_hw " in
5893 *" $i "*) ;;
5894 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5895 esac
5896 done
5897 fi
5898 if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5899 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5900 fi
5901 else
5902
5903 if test "$sim_hw_p" != yes; then
5904 sim_hw_objs=
5905 sim_hw_cflags="-DWITH_HW=0"
5906 sim_hw=
5907 fi
5908 if test x"$silent" != x"yes"; then
5909 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5910 fi
5911 fi
5912
5913 case " $hardware " in
5914 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5915 $as_echo_n "checking for log2 in -lm... " >&6; }
5916 if test "${ac_cv_lib_m_log2+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 ac_check_lib_save_LIBS=$LIBS
5920 LIBS="-lm $LIBS"
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 /* Override any GCC internal prototype to avoid an error.
5925 Use char because int might match the return type of a GCC
5926 builtin and then its argument prototype would still apply. */
5927 #ifdef __cplusplus
5928 extern "C"
5929 #endif
5930 char log2 ();
5931 int
5932 main ()
5933 {
5934 return log2 ();
5935 ;
5936 return 0;
5937 }
5938 _ACEOF
5939 if ac_fn_c_try_link "$LINENO"; then :
5940 ac_cv_lib_m_log2=yes
5941 else
5942 ac_cv_lib_m_log2=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_check_lib_save_LIBS
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5949 $as_echo "$ac_cv_lib_m_log2" >&6; }
5950 if test "x$ac_cv_lib_m_log2" = x""yes; then :
5951 cat >>confdefs.h <<_ACEOF
5952 #define HAVE_LIBM 1
5953 _ACEOF
5954
5955 LIBS="-lm $LIBS"
5956
5957 fi
5958 ;;
5959 esac
5960
5961 mips_extra_objs="dv-sockser.o"
5962
5963
5964
5965 # Choose simulator engine
5966 case "${target}" in
5967 *) mips_igen_engine="engine.o"
5968 ;;
5969 esac
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5974 $as_echo_n "checking for X... " >&6; }
5975
5976
5977 # Check whether --with-x was given.
5978 if test "${with_x+set}" = set; then :
5979 withval=$with_x;
5980 fi
5981
5982 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5983 if test "x$with_x" = xno; then
5984 # The user explicitly disabled X.
5985 have_x=disabled
5986 else
5987 case $x_includes,$x_libraries in #(
5988 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5989 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 # One or both of the vars are not set, and there is no cached value.
5993 ac_x_includes=no ac_x_libraries=no
5994 rm -f -r conftest.dir
5995 if mkdir conftest.dir; then
5996 cd conftest.dir
5997 cat >Imakefile <<'_ACEOF'
5998 incroot:
5999 @echo incroot='${INCROOT}'
6000 usrlibdir:
6001 @echo usrlibdir='${USRLIBDIR}'
6002 libdir:
6003 @echo libdir='${LIBDIR}'
6004 _ACEOF
6005 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6007 for ac_var in incroot usrlibdir libdir; do
6008 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6009 done
6010 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6011 for ac_extension in a so sl dylib la dll; do
6012 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6013 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6014 ac_im_usrlibdir=$ac_im_libdir; break
6015 fi
6016 done
6017 # Screen out bogus values from the imake configuration. They are
6018 # bogus both because they are the default anyway, and because
6019 # using them would break gcc on systems where it needs fixed includes.
6020 case $ac_im_incroot in
6021 /usr/include) ac_x_includes= ;;
6022 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6023 esac
6024 case $ac_im_usrlibdir in
6025 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6026 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6027 esac
6028 fi
6029 cd ..
6030 rm -f -r conftest.dir
6031 fi
6032
6033 # Standard set of common directories for X headers.
6034 # Check X11 before X11Rn because it is often a symlink to the current release.
6035 ac_x_header_dirs='
6036 /usr/X11/include
6037 /usr/X11R7/include
6038 /usr/X11R6/include
6039 /usr/X11R5/include
6040 /usr/X11R4/include
6041
6042 /usr/include/X11
6043 /usr/include/X11R7
6044 /usr/include/X11R6
6045 /usr/include/X11R5
6046 /usr/include/X11R4
6047
6048 /usr/local/X11/include
6049 /usr/local/X11R7/include
6050 /usr/local/X11R6/include
6051 /usr/local/X11R5/include
6052 /usr/local/X11R4/include
6053
6054 /usr/local/include/X11
6055 /usr/local/include/X11R7
6056 /usr/local/include/X11R6
6057 /usr/local/include/X11R5
6058 /usr/local/include/X11R4
6059
6060 /usr/X386/include
6061 /usr/x386/include
6062 /usr/XFree86/include/X11
6063
6064 /usr/include
6065 /usr/local/include
6066 /usr/unsupported/include
6067 /usr/athena/include
6068 /usr/local/x11r5/include
6069 /usr/lpp/Xamples/include
6070
6071 /usr/openwin/include
6072 /usr/openwin/share/include'
6073
6074 if test "$ac_x_includes" = no; then
6075 # Guess where to find include files, by looking for Xlib.h.
6076 # First, try using that file with no special directory specified.
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <X11/Xlib.h>
6080 _ACEOF
6081 if ac_fn_c_try_cpp "$LINENO"; then :
6082 # We can compile using X headers with no special include directory.
6083 ac_x_includes=
6084 else
6085 for ac_dir in $ac_x_header_dirs; do
6086 if test -r "$ac_dir/X11/Xlib.h"; then
6087 ac_x_includes=$ac_dir
6088 break
6089 fi
6090 done
6091 fi
6092 rm -f conftest.err conftest.$ac_ext
6093 fi # $ac_x_includes = no
6094
6095 if test "$ac_x_libraries" = no; then
6096 # Check for the libraries.
6097 # See if we find them without any special options.
6098 # Don't add to $LIBS permanently.
6099 ac_save_LIBS=$LIBS
6100 LIBS="-lX11 $LIBS"
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #include <X11/Xlib.h>
6104 int
6105 main ()
6106 {
6107 XrmInitialize ()
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 if ac_fn_c_try_link "$LINENO"; then :
6113 LIBS=$ac_save_LIBS
6114 # We can link X programs with no special library path.
6115 ac_x_libraries=
6116 else
6117 LIBS=$ac_save_LIBS
6118 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6119 do
6120 # Don't even attempt the hair of trying to link an X program!
6121 for ac_extension in a so sl dylib la dll; do
6122 if test -r "$ac_dir/libX11.$ac_extension"; then
6123 ac_x_libraries=$ac_dir
6124 break 2
6125 fi
6126 done
6127 done
6128 fi
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131 fi # $ac_x_libraries = no
6132
6133 case $ac_x_includes,$ac_x_libraries in #(
6134 no,* | *,no | *\'*)
6135 # Didn't find X, or a directory has "'" in its name.
6136 ac_cv_have_x="have_x=no";; #(
6137 *)
6138 # Record where we found X for the cache.
6139 ac_cv_have_x="have_x=yes\
6140 ac_x_includes='$ac_x_includes'\
6141 ac_x_libraries='$ac_x_libraries'"
6142 esac
6143 fi
6144 ;; #(
6145 *) have_x=yes;;
6146 esac
6147 eval "$ac_cv_have_x"
6148 fi # $with_x != no
6149
6150 if test "$have_x" != yes; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6152 $as_echo "$have_x" >&6; }
6153 no_x=yes
6154 else
6155 # If each of the values was on the command line, it overrides each guess.
6156 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6157 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6158 # Update the cache value to reflect the command line values.
6159 ac_cv_have_x="have_x=yes\
6160 ac_x_includes='$x_includes'\
6161 ac_x_libraries='$x_libraries'"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6163 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6164 fi
6165
6166 mips_extra_libs=""
6167
6168
6169 for ac_header in string.h strings.h stdlib.h stdlib.h
6170 do :
6171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6172 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6173 eval as_val=\$$as_ac_Header
6174 if test "x$as_val" = x""yes; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6177 _ACEOF
6178
6179 fi
6180
6181 done
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
6184 $as_echo_n "checking for fabs in -lm... " >&6; }
6185 if test "${ac_cv_lib_m_fabs+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 ac_check_lib_save_LIBS=$LIBS
6189 LIBS="-lm $LIBS"
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char fabs ();
6200 int
6201 main ()
6202 {
6203 return fabs ();
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_link "$LINENO"; then :
6209 ac_cv_lib_m_fabs=yes
6210 else
6211 ac_cv_lib_m_fabs=no
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
6218 $as_echo "$ac_cv_lib_m_fabs" >&6; }
6219 if test "x$ac_cv_lib_m_fabs" = x""yes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_LIBM 1
6222 _ACEOF
6223
6224 LIBS="-lm $LIBS"
6225
6226 fi
6227
6228 for ac_func in aint anint sqrt
6229 do :
6230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6232 eval as_val=\$$as_ac_var
6233 if test "x$as_val" = x""yes; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6236 _ACEOF
6237
6238 fi
6239 done
6240
6241
6242
6243 ac_sources="$sim_link_files"
6244 ac_dests="$sim_link_links"
6245 while test -n "$ac_sources"; do
6246 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6247 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6248 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6249 done
6250 ac_config_links="$ac_config_links $ac_config_links_1"
6251
6252 cgen_breaks=""
6253 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
6254 cgen_breaks="break cgen_rtx_error";
6255 fi
6256
6257 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
6258
6259 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
6260
6261 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
6262
6263 ac_config_commands="$ac_config_commands Makefile"
6264
6265 ac_config_commands="$ac_config_commands stamp-h"
6266
6267 cat >confcache <<\_ACEOF
6268 # This file is a shell script that caches the results of configure
6269 # tests run on this system so they can be shared between configure
6270 # scripts and configure runs, see configure's option --config-cache.
6271 # It is not useful on other systems. If it contains results you don't
6272 # want to keep, you may remove or edit it.
6273 #
6274 # config.status only pays attention to the cache file if you give it
6275 # the --recheck option to rerun configure.
6276 #
6277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6279 # following values.
6280
6281 _ACEOF
6282
6283 # The following way of writing the cache mishandles newlines in values,
6284 # but we know of no workaround that is simple, portable, and efficient.
6285 # So, we kill variables containing newlines.
6286 # Ultrix sh set writes to stderr and can't be redirected directly,
6287 # and sets the high bit in the cache file unless we assign to the vars.
6288 (
6289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6290 eval ac_val=\$$ac_var
6291 case $ac_val in #(
6292 *${as_nl}*)
6293 case $ac_var in #(
6294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6296 esac
6297 case $ac_var in #(
6298 _ | IFS | as_nl) ;; #(
6299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6300 *) { eval $ac_var=; unset $ac_var;} ;;
6301 esac ;;
6302 esac
6303 done
6304
6305 (set) 2>&1 |
6306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6307 *${as_nl}ac_space=\ *)
6308 # `set' does not quote correctly, so add quotes: double-quote
6309 # substitution turns \\\\ into \\, and sed turns \\ into \.
6310 sed -n \
6311 "s/'/'\\\\''/g;
6312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6313 ;; #(
6314 *)
6315 # `set' quotes correctly as required by POSIX, so do not add quotes.
6316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6317 ;;
6318 esac |
6319 sort
6320 ) |
6321 sed '
6322 /^ac_cv_env_/b end
6323 t clear
6324 :clear
6325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6326 t end
6327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6328 :end' >>confcache
6329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6330 if test -w "$cache_file"; then
6331 test "x$cache_file" != "x/dev/null" &&
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6333 $as_echo "$as_me: updating cache $cache_file" >&6;}
6334 cat confcache >$cache_file
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6338 fi
6339 fi
6340 rm -f confcache
6341
6342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6343 # Let make expand exec_prefix.
6344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6345
6346 DEFS=-DHAVE_CONFIG_H
6347
6348 ac_libobjs=
6349 ac_ltlibobjs=
6350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6351 # 1. Remove the extension, and $U if already installed.
6352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6355 # will be set to the directory where LIBOBJS objects are built.
6356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6358 done
6359 LIBOBJS=$ac_libobjs
6360
6361 LTLIBOBJS=$ac_ltlibobjs
6362
6363
6364 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6365 as_fn_error "conditional \"GMAKE\" was never defined.
6366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6367 fi
6368
6369
6370 : ${CONFIG_STATUS=./config.status}
6371 ac_write_fail=0
6372 ac_clean_files_save=$ac_clean_files
6373 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6375 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6376 as_write_fail=0
6377 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6378 #! $SHELL
6379 # Generated by $as_me.
6380 # Run this file to recreate the current configuration.
6381 # Compiler output produced by configure, useful for debugging
6382 # configure, is in config.log if it exists.
6383
6384 debug=false
6385 ac_cs_recheck=false
6386 ac_cs_silent=false
6387
6388 SHELL=\${CONFIG_SHELL-$SHELL}
6389 export SHELL
6390 _ASEOF
6391 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6392 ## -------------------- ##
6393 ## M4sh Initialization. ##
6394 ## -------------------- ##
6395
6396 # Be more Bourne compatible
6397 DUALCASE=1; export DUALCASE # for MKS sh
6398 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6399 emulate sh
6400 NULLCMD=:
6401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6402 # is contrary to our usage. Disable this feature.
6403 alias -g '${1+"$@"}'='"$@"'
6404 setopt NO_GLOB_SUBST
6405 else
6406 case `(set -o) 2>/dev/null` in #(
6407 *posix*) :
6408 set -o posix ;; #(
6409 *) :
6410 ;;
6411 esac
6412 fi
6413
6414
6415 as_nl='
6416 '
6417 export as_nl
6418 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6419 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6420 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6422 # Prefer a ksh shell builtin over an external printf program on Solaris,
6423 # but without wasting forks for bash or zsh.
6424 if test -z "$BASH_VERSION$ZSH_VERSION" \
6425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6426 as_echo='print -r --'
6427 as_echo_n='print -rn --'
6428 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6429 as_echo='printf %s\n'
6430 as_echo_n='printf %s'
6431 else
6432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6434 as_echo_n='/usr/ucb/echo -n'
6435 else
6436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6437 as_echo_n_body='eval
6438 arg=$1;
6439 case $arg in #(
6440 *"$as_nl"*)
6441 expr "X$arg" : "X\\(.*\\)$as_nl";
6442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6443 esac;
6444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6445 '
6446 export as_echo_n_body
6447 as_echo_n='sh -c $as_echo_n_body as_echo'
6448 fi
6449 export as_echo_body
6450 as_echo='sh -c $as_echo_body as_echo'
6451 fi
6452
6453 # The user is always right.
6454 if test "${PATH_SEPARATOR+set}" != set; then
6455 PATH_SEPARATOR=:
6456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6458 PATH_SEPARATOR=';'
6459 }
6460 fi
6461
6462
6463 # IFS
6464 # We need space, tab and new line, in precisely that order. Quoting is
6465 # there to prevent editors from complaining about space-tab.
6466 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6467 # splitting by setting IFS to empty value.)
6468 IFS=" "" $as_nl"
6469
6470 # Find who we are. Look in the path if we contain no directory separator.
6471 case $0 in #((
6472 *[\\/]* ) as_myself=$0 ;;
6473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6479 done
6480 IFS=$as_save_IFS
6481
6482 ;;
6483 esac
6484 # We did not find ourselves, most probably we were run as `sh COMMAND'
6485 # in which case we are not to be found in the path.
6486 if test "x$as_myself" = x; then
6487 as_myself=$0
6488 fi
6489 if test ! -f "$as_myself"; then
6490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6491 exit 1
6492 fi
6493
6494 # Unset variables that we do not need and which cause bugs (e.g. in
6495 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6496 # suppresses any "Segmentation fault" message there. '((' could
6497 # trigger a bug in pdksh 5.2.14.
6498 for as_var in BASH_ENV ENV MAIL MAILPATH
6499 do eval test x\${$as_var+set} = xset \
6500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6501 done
6502 PS1='$ '
6503 PS2='> '
6504 PS4='+ '
6505
6506 # NLS nuisances.
6507 LC_ALL=C
6508 export LC_ALL
6509 LANGUAGE=C
6510 export LANGUAGE
6511
6512 # CDPATH.
6513 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6514
6515
6516 # as_fn_error ERROR [LINENO LOG_FD]
6517 # ---------------------------------
6518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6520 # script with status $?, using 1 if that was 0.
6521 as_fn_error ()
6522 {
6523 as_status=$?; test $as_status -eq 0 && as_status=1
6524 if test "$3"; then
6525 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6527 fi
6528 $as_echo "$as_me: error: $1" >&2
6529 as_fn_exit $as_status
6530 } # as_fn_error
6531
6532
6533 # as_fn_set_status STATUS
6534 # -----------------------
6535 # Set $? to STATUS, without forking.
6536 as_fn_set_status ()
6537 {
6538 return $1
6539 } # as_fn_set_status
6540
6541 # as_fn_exit STATUS
6542 # -----------------
6543 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6544 as_fn_exit ()
6545 {
6546 set +e
6547 as_fn_set_status $1
6548 exit $1
6549 } # as_fn_exit
6550
6551 # as_fn_unset VAR
6552 # ---------------
6553 # Portably unset VAR.
6554 as_fn_unset ()
6555 {
6556 { eval $1=; unset $1;}
6557 }
6558 as_unset=as_fn_unset
6559 # as_fn_append VAR VALUE
6560 # ----------------------
6561 # Append the text in VALUE to the end of the definition contained in VAR. Take
6562 # advantage of any shell optimizations that allow amortized linear growth over
6563 # repeated appends, instead of the typical quadratic growth present in naive
6564 # implementations.
6565 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6566 eval 'as_fn_append ()
6567 {
6568 eval $1+=\$2
6569 }'
6570 else
6571 as_fn_append ()
6572 {
6573 eval $1=\$$1\$2
6574 }
6575 fi # as_fn_append
6576
6577 # as_fn_arith ARG...
6578 # ------------------
6579 # Perform arithmetic evaluation on the ARGs, and store the result in the
6580 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6581 # must be portable across $(()) and expr.
6582 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6583 eval 'as_fn_arith ()
6584 {
6585 as_val=$(( $* ))
6586 }'
6587 else
6588 as_fn_arith ()
6589 {
6590 as_val=`expr "$@" || test $? -eq 1`
6591 }
6592 fi # as_fn_arith
6593
6594
6595 if expr a : '\(a\)' >/dev/null 2>&1 &&
6596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6597 as_expr=expr
6598 else
6599 as_expr=false
6600 fi
6601
6602 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6603 as_basename=basename
6604 else
6605 as_basename=false
6606 fi
6607
6608 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6609 as_dirname=dirname
6610 else
6611 as_dirname=false
6612 fi
6613
6614 as_me=`$as_basename -- "$0" ||
6615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6616 X"$0" : 'X\(//\)$' \| \
6617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6618 $as_echo X/"$0" |
6619 sed '/^.*\/\([^/][^/]*\)\/*$/{
6620 s//\1/
6621 q
6622 }
6623 /^X\/\(\/\/\)$/{
6624 s//\1/
6625 q
6626 }
6627 /^X\/\(\/\).*/{
6628 s//\1/
6629 q
6630 }
6631 s/.*/./; q'`
6632
6633 # Avoid depending upon Character Ranges.
6634 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6635 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6636 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6637 as_cr_digits='0123456789'
6638 as_cr_alnum=$as_cr_Letters$as_cr_digits
6639
6640 ECHO_C= ECHO_N= ECHO_T=
6641 case `echo -n x` in #(((((
6642 -n*)
6643 case `echo 'xy\c'` in
6644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6645 xy) ECHO_C='\c';;
6646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6647 ECHO_T=' ';;
6648 esac;;
6649 *)
6650 ECHO_N='-n';;
6651 esac
6652
6653 rm -f conf$$ conf$$.exe conf$$.file
6654 if test -d conf$$.dir; then
6655 rm -f conf$$.dir/conf$$.file
6656 else
6657 rm -f conf$$.dir
6658 mkdir conf$$.dir 2>/dev/null
6659 fi
6660 if (echo >conf$$.file) 2>/dev/null; then
6661 if ln -s conf$$.file conf$$ 2>/dev/null; then
6662 as_ln_s='ln -s'
6663 # ... but there are two gotchas:
6664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6666 # In both cases, we have to default to `cp -p'.
6667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6668 as_ln_s='cp -p'
6669 elif ln conf$$.file conf$$ 2>/dev/null; then
6670 as_ln_s=ln
6671 else
6672 as_ln_s='cp -p'
6673 fi
6674 else
6675 as_ln_s='cp -p'
6676 fi
6677 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6678 rmdir conf$$.dir 2>/dev/null
6679
6680
6681 # as_fn_mkdir_p
6682 # -------------
6683 # Create "$as_dir" as a directory, including parents if necessary.
6684 as_fn_mkdir_p ()
6685 {
6686
6687 case $as_dir in #(
6688 -*) as_dir=./$as_dir;;
6689 esac
6690 test -d "$as_dir" || eval $as_mkdir_p || {
6691 as_dirs=
6692 while :; do
6693 case $as_dir in #(
6694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6695 *) as_qdir=$as_dir;;
6696 esac
6697 as_dirs="'$as_qdir' $as_dirs"
6698 as_dir=`$as_dirname -- "$as_dir" ||
6699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6700 X"$as_dir" : 'X\(//\)[^/]' \| \
6701 X"$as_dir" : 'X\(//\)$' \| \
6702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6703 $as_echo X"$as_dir" |
6704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6705 s//\1/
6706 q
6707 }
6708 /^X\(\/\/\)[^/].*/{
6709 s//\1/
6710 q
6711 }
6712 /^X\(\/\/\)$/{
6713 s//\1/
6714 q
6715 }
6716 /^X\(\/\).*/{
6717 s//\1/
6718 q
6719 }
6720 s/.*/./; q'`
6721 test -d "$as_dir" && break
6722 done
6723 test -z "$as_dirs" || eval "mkdir $as_dirs"
6724 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6725
6726
6727 } # as_fn_mkdir_p
6728 if mkdir -p . 2>/dev/null; then
6729 as_mkdir_p='mkdir -p "$as_dir"'
6730 else
6731 test -d ./-p && rmdir ./-p
6732 as_mkdir_p=false
6733 fi
6734
6735 if test -x / >/dev/null 2>&1; then
6736 as_test_x='test -x'
6737 else
6738 if ls -dL / >/dev/null 2>&1; then
6739 as_ls_L_option=L
6740 else
6741 as_ls_L_option=
6742 fi
6743 as_test_x='
6744 eval sh -c '\''
6745 if test -d "$1"; then
6746 test -d "$1/.";
6747 else
6748 case $1 in #(
6749 -*)set "./$1";;
6750 esac;
6751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6752 ???[sx]*):;;*)false;;esac;fi
6753 '\'' sh
6754 '
6755 fi
6756 as_executable_p=$as_test_x
6757
6758 # Sed expression to map a string onto a valid CPP name.
6759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6760
6761 # Sed expression to map a string onto a valid variable name.
6762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6763
6764
6765 exec 6>&1
6766 ## ----------------------------------- ##
6767 ## Main body of $CONFIG_STATUS script. ##
6768 ## ----------------------------------- ##
6769 _ASEOF
6770 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6771
6772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6773 # Save the log message, to keep $0 and so on meaningful, and to
6774 # report actual input values of CONFIG_FILES etc. instead of their
6775 # values after options handling.
6776 ac_log="
6777 This file was extended by $as_me, which was
6778 generated by GNU Autoconf 2.64. Invocation command line was
6779
6780 CONFIG_FILES = $CONFIG_FILES
6781 CONFIG_HEADERS = $CONFIG_HEADERS
6782 CONFIG_LINKS = $CONFIG_LINKS
6783 CONFIG_COMMANDS = $CONFIG_COMMANDS
6784 $ $0 $@
6785
6786 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6787 "
6788
6789 _ACEOF
6790
6791 case $ac_config_files in *"
6792 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6793 esac
6794
6795 case $ac_config_headers in *"
6796 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6797 esac
6798
6799
6800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6801 # Files that config.status was made for.
6802 config_files="$ac_config_files"
6803 config_headers="$ac_config_headers"
6804 config_links="$ac_config_links"
6805 config_commands="$ac_config_commands"
6806
6807 _ACEOF
6808
6809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6810 ac_cs_usage="\
6811 \`$as_me' instantiates files and other configuration actions
6812 from templates according to the current configuration. Unless the files
6813 and actions are specified as TAGs, all are instantiated by default.
6814
6815 Usage: $0 [OPTION]... [TAG]...
6816
6817 -h, --help print this help, then exit
6818 -V, --version print version number and configuration settings, then exit
6819 -q, --quiet, --silent
6820 do not print progress messages
6821 -d, --debug don't remove temporary files
6822 --recheck update $as_me by reconfiguring in the same conditions
6823 --file=FILE[:TEMPLATE]
6824 instantiate the configuration file FILE
6825 --header=FILE[:TEMPLATE]
6826 instantiate the configuration header FILE
6827
6828 Configuration files:
6829 $config_files
6830
6831 Configuration headers:
6832 $config_headers
6833
6834 Configuration links:
6835 $config_links
6836
6837 Configuration commands:
6838 $config_commands
6839
6840 Report bugs to the package provider."
6841
6842 _ACEOF
6843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6844 ac_cs_version="\\
6845 config.status
6846 configured by $0, generated by GNU Autoconf 2.64,
6847 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6848
6849 Copyright (C) 2009 Free Software Foundation, Inc.
6850 This config.status script is free software; the Free Software Foundation
6851 gives unlimited permission to copy, distribute and modify it."
6852
6853 ac_pwd='$ac_pwd'
6854 srcdir='$srcdir'
6855 INSTALL='$INSTALL'
6856 test -n "\$AWK" || AWK=awk
6857 _ACEOF
6858
6859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6860 # The default lists apply if the user does not specify any file.
6861 ac_need_defaults=:
6862 while test $# != 0
6863 do
6864 case $1 in
6865 --*=*)
6866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6868 ac_shift=:
6869 ;;
6870 *)
6871 ac_option=$1
6872 ac_optarg=$2
6873 ac_shift=shift
6874 ;;
6875 esac
6876
6877 case $ac_option in
6878 # Handling of the options.
6879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6880 ac_cs_recheck=: ;;
6881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6882 $as_echo "$ac_cs_version"; exit ;;
6883 --debug | --debu | --deb | --de | --d | -d )
6884 debug=: ;;
6885 --file | --fil | --fi | --f )
6886 $ac_shift
6887 case $ac_optarg in
6888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6889 esac
6890 as_fn_append CONFIG_FILES " '$ac_optarg'"
6891 ac_need_defaults=false;;
6892 --header | --heade | --head | --hea )
6893 $ac_shift
6894 case $ac_optarg in
6895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6896 esac
6897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6898 ac_need_defaults=false;;
6899 --he | --h)
6900 # Conflict between --help and --header
6901 as_fn_error "ambiguous option: \`$1'
6902 Try \`$0 --help' for more information.";;
6903 --help | --hel | -h )
6904 $as_echo "$ac_cs_usage"; exit ;;
6905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6907 ac_cs_silent=: ;;
6908
6909 # This is an error.
6910 -*) as_fn_error "unrecognized option: \`$1'
6911 Try \`$0 --help' for more information." ;;
6912
6913 *) as_fn_append ac_config_targets " $1"
6914 ac_need_defaults=false ;;
6915
6916 esac
6917 shift
6918 done
6919
6920 ac_configure_extra_args=
6921
6922 if $ac_cs_silent; then
6923 exec 6>/dev/null
6924 ac_configure_extra_args="$ac_configure_extra_args --silent"
6925 fi
6926
6927 _ACEOF
6928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929 if \$ac_cs_recheck; then
6930 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6931 shift
6932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6933 CONFIG_SHELL='$SHELL'
6934 export CONFIG_SHELL
6935 exec "\$@"
6936 fi
6937
6938 _ACEOF
6939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6940 exec 5>>config.log
6941 {
6942 echo
6943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6944 ## Running $as_me. ##
6945 _ASBOX
6946 $as_echo "$ac_log"
6947 } >&5
6948
6949 _ACEOF
6950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6951 #
6952 # INIT-COMMANDS
6953 #
6954 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6955
6956 _ACEOF
6957
6958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6959
6960 # Handling of arguments.
6961 for ac_config_target in $ac_config_targets
6962 do
6963 case $ac_config_target in
6964 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6965 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6966 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6967 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6968 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6969 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6970 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6971 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6972
6973 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6974 esac
6975 done
6976
6977
6978 # If the user did not use the arguments to specify the items to instantiate,
6979 # then the envvar interface is used. Set only those that are not.
6980 # We use the long form for the default assignment because of an extremely
6981 # bizarre bug on SunOS 4.1.3.
6982 if $ac_need_defaults; then
6983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6985 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6987 fi
6988
6989 # Have a temporary directory for convenience. Make it in the build tree
6990 # simply because there is no reason against having it here, and in addition,
6991 # creating and moving files from /tmp can sometimes cause problems.
6992 # Hook for its removal unless debugging.
6993 # Note that there is a small window in which the directory will not be cleaned:
6994 # after its creation but before its name has been assigned to `$tmp'.
6995 $debug ||
6996 {
6997 tmp=
6998 trap 'exit_status=$?
6999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7000 ' 0
7001 trap 'as_fn_exit 1' 1 2 13 15
7002 }
7003 # Create a (secure) tmp directory for tmp files.
7004
7005 {
7006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7007 test -n "$tmp" && test -d "$tmp"
7008 } ||
7009 {
7010 tmp=./conf$$-$RANDOM
7011 (umask 077 && mkdir "$tmp")
7012 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7013
7014 # Set up the scripts for CONFIG_FILES section.
7015 # No need to generate them if there are no CONFIG_FILES.
7016 # This happens for instance with `./config.status config.h'.
7017 if test -n "$CONFIG_FILES"; then
7018
7019
7020 ac_cr=`echo X | tr X '\015'`
7021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7022 # But we know of no other shell where ac_cr would be empty at this
7023 # point, so we can use a bashism as a fallback.
7024 if test "x$ac_cr" = x; then
7025 eval ac_cr=\$\'\\r\'
7026 fi
7027 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7029 ac_cs_awk_cr='\r'
7030 else
7031 ac_cs_awk_cr=$ac_cr
7032 fi
7033
7034 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7035 _ACEOF
7036
7037
7038 {
7039 echo "cat >conf$$subs.awk <<_ACEOF" &&
7040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7041 echo "_ACEOF"
7042 } >conf$$subs.sh ||
7043 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7045 ac_delim='%!_!# '
7046 for ac_last_try in false false false false false :; do
7047 . ./conf$$subs.sh ||
7048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7049
7050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7051 if test $ac_delim_n = $ac_delim_num; then
7052 break
7053 elif $ac_last_try; then
7054 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7055 else
7056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7057 fi
7058 done
7059 rm -f conf$$subs.sh
7060
7061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7062 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7063 _ACEOF
7064 sed -n '
7065 h
7066 s/^/S["/; s/!.*/"]=/
7067 p
7068 g
7069 s/^[^!]*!//
7070 :repl
7071 t repl
7072 s/'"$ac_delim"'$//
7073 t delim
7074 :nl
7075 h
7076 s/\(.\{148\}\).*/\1/
7077 t more1
7078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7079 p
7080 n
7081 b repl
7082 :more1
7083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7084 p
7085 g
7086 s/.\{148\}//
7087 t nl
7088 :delim
7089 h
7090 s/\(.\{148\}\).*/\1/
7091 t more2
7092 s/["\\]/\\&/g; s/^/"/; s/$/"/
7093 p
7094 b
7095 :more2
7096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7097 p
7098 g
7099 s/.\{148\}//
7100 t delim
7101 ' <conf$$subs.awk | sed '
7102 /^[^""]/{
7103 N
7104 s/\n//
7105 }
7106 ' >>$CONFIG_STATUS || ac_write_fail=1
7107 rm -f conf$$subs.awk
7108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7109 _ACAWK
7110 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7111 for (key in S) S_is_set[key] = 1
7112 FS = "\a"
7113
7114 }
7115 {
7116 line = $ 0
7117 nfields = split(line, field, "@")
7118 substed = 0
7119 len = length(field[1])
7120 for (i = 2; i < nfields; i++) {
7121 key = field[i]
7122 keylen = length(key)
7123 if (S_is_set[key]) {
7124 value = S[key]
7125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7126 len += length(value) + length(field[++i])
7127 substed = 1
7128 } else
7129 len += 1 + keylen
7130 }
7131
7132 print line
7133 }
7134
7135 _ACAWK
7136 _ACEOF
7137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7138 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7140 else
7141 cat
7142 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7143 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7144 _ACEOF
7145
7146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7148 # trailing colons and then remove the whole line if VPATH becomes empty
7149 # (actually we leave an empty line to preserve line numbers).
7150 if test "x$srcdir" = x.; then
7151 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7152 s/:*\$(srcdir):*/:/
7153 s/:*\${srcdir}:*/:/
7154 s/:*@srcdir@:*/:/
7155 s/^\([^=]*=[ ]*\):*/\1/
7156 s/:*$//
7157 s/^[^=]*=[ ]*$//
7158 }'
7159 fi
7160
7161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7162 fi # test -n "$CONFIG_FILES"
7163
7164 # Set up the scripts for CONFIG_HEADERS section.
7165 # No need to generate them if there are no CONFIG_HEADERS.
7166 # This happens for instance with `./config.status Makefile'.
7167 if test -n "$CONFIG_HEADERS"; then
7168 cat >"$tmp/defines.awk" <<\_ACAWK ||
7169 BEGIN {
7170 _ACEOF
7171
7172 # Transform confdefs.h into an awk script `defines.awk', embedded as
7173 # here-document in config.status, that substitutes the proper values into
7174 # config.h.in to produce config.h.
7175
7176 # Create a delimiter string that does not exist in confdefs.h, to ease
7177 # handling of long lines.
7178 ac_delim='%!_!# '
7179 for ac_last_try in false false :; do
7180 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7181 if test -z "$ac_t"; then
7182 break
7183 elif $ac_last_try; then
7184 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7185 else
7186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7187 fi
7188 done
7189
7190 # For the awk script, D is an array of macro values keyed by name,
7191 # likewise P contains macro parameters if any. Preserve backslash
7192 # newline sequences.
7193
7194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7195 sed -n '
7196 s/.\{148\}/&'"$ac_delim"'/g
7197 t rset
7198 :rset
7199 s/^[ ]*#[ ]*define[ ][ ]*/ /
7200 t def
7201 d
7202 :def
7203 s/\\$//
7204 t bsnl
7205 s/["\\]/\\&/g
7206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7207 D["\1"]=" \3"/p
7208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7209 d
7210 :bsnl
7211 s/["\\]/\\&/g
7212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7213 D["\1"]=" \3\\\\\\n"\\/p
7214 t cont
7215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7216 t cont
7217 d
7218 :cont
7219 n
7220 s/.\{148\}/&'"$ac_delim"'/g
7221 t clear
7222 :clear
7223 s/\\$//
7224 t bsnlc
7225 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7226 d
7227 :bsnlc
7228 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7229 b cont
7230 ' <confdefs.h | sed '
7231 s/'"$ac_delim"'/"\\\
7232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7233
7234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7235 for (key in D) D_is_set[key] = 1
7236 FS = "\a"
7237 }
7238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7239 line = \$ 0
7240 split(line, arg, " ")
7241 if (arg[1] == "#") {
7242 defundef = arg[2]
7243 mac1 = arg[3]
7244 } else {
7245 defundef = substr(arg[1], 2)
7246 mac1 = arg[2]
7247 }
7248 split(mac1, mac2, "(") #)
7249 macro = mac2[1]
7250 prefix = substr(line, 1, index(line, defundef) - 1)
7251 if (D_is_set[macro]) {
7252 # Preserve the white space surrounding the "#".
7253 print prefix "define", macro P[macro] D[macro]
7254 next
7255 } else {
7256 # Replace #undef with comments. This is necessary, for example,
7257 # in the case of _POSIX_SOURCE, which is predefined and required
7258 # on some systems where configure will not decide to define it.
7259 if (defundef == "undef") {
7260 print "/*", prefix defundef, macro, "*/"
7261 next
7262 }
7263 }
7264 }
7265 { print }
7266 _ACAWK
7267 _ACEOF
7268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7269 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7270 fi # test -n "$CONFIG_HEADERS"
7271
7272
7273 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7274 shift
7275 for ac_tag
7276 do
7277 case $ac_tag in
7278 :[FHLC]) ac_mode=$ac_tag; continue;;
7279 esac
7280 case $ac_mode$ac_tag in
7281 :[FHL]*:*);;
7282 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7283 :[FH]-) ac_tag=-:-;;
7284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7285 esac
7286 ac_save_IFS=$IFS
7287 IFS=:
7288 set x $ac_tag
7289 IFS=$ac_save_IFS
7290 shift
7291 ac_file=$1
7292 shift
7293
7294 case $ac_mode in
7295 :L) ac_source=$1;;
7296 :[FH])
7297 ac_file_inputs=
7298 for ac_f
7299 do
7300 case $ac_f in
7301 -) ac_f="$tmp/stdin";;
7302 *) # Look for the file first in the build tree, then in the source tree
7303 # (if the path is not absolute). The absolute path cannot be DOS-style,
7304 # because $ac_f cannot contain `:'.
7305 test -f "$ac_f" ||
7306 case $ac_f in
7307 [\\/$]*) false;;
7308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7309 esac ||
7310 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7311 esac
7312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7313 as_fn_append ac_file_inputs " '$ac_f'"
7314 done
7315
7316 # Let's still pretend it is `configure' which instantiates (i.e., don't
7317 # use $as_me), people would be surprised to read:
7318 # /* config.h. Generated by config.status. */
7319 configure_input='Generated from '`
7320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7321 `' by configure.'
7322 if test x"$ac_file" != x-; then
7323 configure_input="$ac_file. $configure_input"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7325 $as_echo "$as_me: creating $ac_file" >&6;}
7326 fi
7327 # Neutralize special characters interpreted by sed in replacement strings.
7328 case $configure_input in #(
7329 *\&* | *\|* | *\\* )
7330 ac_sed_conf_input=`$as_echo "$configure_input" |
7331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7332 *) ac_sed_conf_input=$configure_input;;
7333 esac
7334
7335 case $ac_tag in
7336 *:-:* | *:-) cat >"$tmp/stdin" \
7337 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7338 esac
7339 ;;
7340 esac
7341
7342 ac_dir=`$as_dirname -- "$ac_file" ||
7343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7344 X"$ac_file" : 'X\(//\)[^/]' \| \
7345 X"$ac_file" : 'X\(//\)$' \| \
7346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7347 $as_echo X"$ac_file" |
7348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7349 s//\1/
7350 q
7351 }
7352 /^X\(\/\/\)[^/].*/{
7353 s//\1/
7354 q
7355 }
7356 /^X\(\/\/\)$/{
7357 s//\1/
7358 q
7359 }
7360 /^X\(\/\).*/{
7361 s//\1/
7362 q
7363 }
7364 s/.*/./; q'`
7365 as_dir="$ac_dir"; as_fn_mkdir_p
7366 ac_builddir=.
7367
7368 case "$ac_dir" in
7369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7370 *)
7371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7372 # A ".." for each directory in $ac_dir_suffix.
7373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7374 case $ac_top_builddir_sub in
7375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7377 esac ;;
7378 esac
7379 ac_abs_top_builddir=$ac_pwd
7380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7381 # for backward compatibility:
7382 ac_top_builddir=$ac_top_build_prefix
7383
7384 case $srcdir in
7385 .) # We are building in place.
7386 ac_srcdir=.
7387 ac_top_srcdir=$ac_top_builddir_sub
7388 ac_abs_top_srcdir=$ac_pwd ;;
7389 [\\/]* | ?:[\\/]* ) # Absolute name.
7390 ac_srcdir=$srcdir$ac_dir_suffix;
7391 ac_top_srcdir=$srcdir
7392 ac_abs_top_srcdir=$srcdir ;;
7393 *) # Relative name.
7394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7395 ac_top_srcdir=$ac_top_build_prefix$srcdir
7396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7397 esac
7398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7399
7400
7401 case $ac_mode in
7402 :F)
7403 #
7404 # CONFIG_FILE
7405 #
7406
7407 case $INSTALL in
7408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7410 esac
7411 _ACEOF
7412
7413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7414 # If the template does not know about datarootdir, expand it.
7415 # FIXME: This hack should be removed a few years after 2.60.
7416 ac_datarootdir_hack=; ac_datarootdir_seen=
7417 ac_sed_dataroot='
7418 /datarootdir/ {
7419 p
7420 q
7421 }
7422 /@datadir@/p
7423 /@docdir@/p
7424 /@infodir@/p
7425 /@localedir@/p
7426 /@mandir@/p'
7427 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7428 *datarootdir*) ac_datarootdir_seen=yes;;
7429 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7431 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7432 _ACEOF
7433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7434 ac_datarootdir_hack='
7435 s&@datadir@&$datadir&g
7436 s&@docdir@&$docdir&g
7437 s&@infodir@&$infodir&g
7438 s&@localedir@&$localedir&g
7439 s&@mandir@&$mandir&g
7440 s&\\\${datarootdir}&$datarootdir&g' ;;
7441 esac
7442 _ACEOF
7443
7444 # Neutralize VPATH when `$srcdir' = `.'.
7445 # Shell code in configure.ac might set extrasub.
7446 # FIXME: do we really want to maintain this feature?
7447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7448 ac_sed_extra="$ac_vpsub
7449 $extrasub
7450 _ACEOF
7451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7452 :t
7453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7454 s|@configure_input@|$ac_sed_conf_input|;t t
7455 s&@top_builddir@&$ac_top_builddir_sub&;t t
7456 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7457 s&@srcdir@&$ac_srcdir&;t t
7458 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7459 s&@top_srcdir@&$ac_top_srcdir&;t t
7460 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7461 s&@builddir@&$ac_builddir&;t t
7462 s&@abs_builddir@&$ac_abs_builddir&;t t
7463 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7464 s&@INSTALL@&$ac_INSTALL&;t t
7465 $ac_datarootdir_hack
7466 "
7467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7468 || as_fn_error "could not create $ac_file" "$LINENO" 5
7469
7470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7474 which seems to be undefined. Please make sure it is defined." >&5
7475 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7476 which seems to be undefined. Please make sure it is defined." >&2;}
7477
7478 rm -f "$tmp/stdin"
7479 case $ac_file in
7480 -) cat "$tmp/out" && rm -f "$tmp/out";;
7481 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7482 esac \
7483 || as_fn_error "could not create $ac_file" "$LINENO" 5
7484 ;;
7485 :H)
7486 #
7487 # CONFIG_HEADER
7488 #
7489 if test x"$ac_file" != x-; then
7490 {
7491 $as_echo "/* $configure_input */" \
7492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7493 } >"$tmp/config.h" \
7494 || as_fn_error "could not create $ac_file" "$LINENO" 5
7495 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7497 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7498 else
7499 rm -f "$ac_file"
7500 mv "$tmp/config.h" "$ac_file" \
7501 || as_fn_error "could not create $ac_file" "$LINENO" 5
7502 fi
7503 else
7504 $as_echo "/* $configure_input */" \
7505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7506 || as_fn_error "could not create -" "$LINENO" 5
7507 fi
7508 ;;
7509 :L)
7510 #
7511 # CONFIG_LINK
7512 #
7513
7514 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
7515 :
7516 else
7517 # Prefer the file from the source tree if names are identical.
7518 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7519 ac_source=$srcdir/$ac_source
7520 fi
7521
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7523 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
7524
7525 if test ! -r "$ac_source"; then
7526 as_fn_error "$ac_source: file not found" "$LINENO" 5
7527 fi
7528 rm -f "$ac_file"
7529
7530 # Try a relative symlink, then a hard link, then a copy.
7531 case $srcdir in
7532 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7533 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7534 esac
7535 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7536 ln "$ac_source" "$ac_file" 2>/dev/null ||
7537 cp -p "$ac_source" "$ac_file" ||
7538 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7539 fi
7540 ;;
7541 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7542 $as_echo "$as_me: executing $ac_file commands" >&6;}
7543 ;;
7544 esac
7545
7546
7547 case $ac_file$ac_mode in
7548 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7549 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
7550 rm -f Makesim1.tmp Makesim2.tmp Makefile
7551 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7552 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7553 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
7554 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7555 <Makefile.sim >Makefile
7556 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
7557 ;;
7558 "stamp-h":C) echo > stamp-h ;;
7559
7560 esac
7561 done # for ac_tag
7562
7563
7564 as_fn_exit 0
7565 _ACEOF
7566 ac_clean_files=$ac_clean_files_save
7567
7568 test $ac_write_fail = 0 ||
7569 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7570
7571
7572 # configure is writing to config.log, and then calls config.status.
7573 # config.status does its own redirection, appending to config.log.
7574 # Unfortunately, on DOS this fails, as config.log is still kept open
7575 # by configure, so config.status won't be able to write to it; its
7576 # output is simply discarded. So we exec the FD to /dev/null,
7577 # effectively closing config.log, so it can be properly (re)opened and
7578 # appended to by config.status. When coming back to configure, we
7579 # need to make the FD available again.
7580 if test "$no_create" != yes; then
7581 ac_cs_success=:
7582 ac_config_status_args=
7583 test "$silent" = yes &&
7584 ac_config_status_args="$ac_config_status_args --quiet"
7585 exec 5>/dev/null
7586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7587 exec 5>>config.log
7588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7589 # would make configure fail if this is the last instruction.
7590 $ac_cs_success || as_fn_exit $?
7591 fi
7592 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7594 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7595 fi
7596
7597
This page took 0.262303 seconds and 4 git commands to generate.