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