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