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