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