2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
165 exitcode=1; echo positional parameters were not saved.
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 :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
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 :
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
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.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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."
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."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
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
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
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 :
352 as_val
=`expr "$@" || test $? -eq 1`
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.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
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'"
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'"
527 exec 7<&0 </dev
/null
6>&1
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`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="Makefile.in"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
697 program_transform_name
731 enable_option_checking
738 enable_sim_decode_mechanism
739 enable_sim_default_model
746 enable_sim_hostbitsize
747 enable_sim_hostendian
753 enable_sim_model_issue
758 enable_sim_reserved_bits
766 enable_sim_xor_endian
771 ac_precious_vars
='build_alias
782 # Initialize some variables set by options.
784 ac_init_version
=false
785 ac_unrecognized_opts
=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir
='${exec_prefix}/bin'
811 sbindir
='${exec_prefix}/sbin'
812 libexecdir
='${exec_prefix}/libexec'
813 datarootdir
='${prefix}/share'
814 datadir
='${datarootdir}'
815 sysconfdir
='${prefix}/etc'
816 sharedstatedir
='${prefix}/com'
817 localstatedir
='${prefix}/var'
818 includedir
='${prefix}/include'
819 oldincludedir
='/usr/include'
820 docdir
='${datarootdir}/doc/${PACKAGE}'
821 infodir
='${datarootdir}/info'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
910 -enable-* |
--enable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=\
$ac_optarg ;;
926 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
927 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
928 |
--exec |
--exe |
--ex)
929 ac_prev
=exec_prefix
;;
930 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
931 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
932 |
--exec=* |
--exe=* |
--ex=*)
933 exec_prefix
=$ac_optarg ;;
935 -gas |
--gas |
--ga |
--g)
936 # Obsolete; use --with-gas.
939 -help |
--help |
--hel |
--he |
-h)
941 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
942 ac_init_help
=recursive
;;
943 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
944 ac_init_help
=short
;;
946 -host |
--host |
--hos |
--ho)
947 ac_prev
=host_alias
;;
948 -host=* |
--host=* |
--hos=* |
--ho=*)
949 host_alias
=$ac_optarg ;;
951 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
953 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
955 htmldir
=$ac_optarg ;;
957 -includedir |
--includedir |
--includedi |
--included |
--include \
958 |
--includ |
--inclu |
--incl |
--inc)
959 ac_prev
=includedir
;;
960 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
961 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
962 includedir
=$ac_optarg ;;
964 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
966 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
967 infodir
=$ac_optarg ;;
969 -libdir |
--libdir |
--libdi |
--libd)
971 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
974 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
975 |
--libexe |
--libex |
--libe)
976 ac_prev
=libexecdir
;;
977 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
978 |
--libexe=* |
--libex=* |
--libe=*)
979 libexecdir
=$ac_optarg ;;
981 -localedir |
--localedir |
--localedi |
--localed |
--locale)
983 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
984 localedir
=$ac_optarg ;;
986 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
987 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
988 ac_prev
=localstatedir
;;
989 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
990 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
991 localstatedir
=$ac_optarg ;;
993 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
995 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
999 # Obsolete; use --without-fp.
1002 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1003 |
--no-cr |
--no-c |
-n)
1006 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1007 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1010 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1011 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1012 |
--oldin |
--oldi |
--old |
--ol |
--o)
1013 ac_prev
=oldincludedir
;;
1014 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1015 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1016 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1017 oldincludedir
=$ac_optarg ;;
1019 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1021 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1022 prefix
=$ac_optarg ;;
1024 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1025 |
--program-pre |
--program-pr |
--program-p)
1026 ac_prev
=program_prefix
;;
1027 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1028 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1029 program_prefix
=$ac_optarg ;;
1031 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1032 |
--program-suf |
--program-su |
--program-s)
1033 ac_prev
=program_suffix
;;
1034 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1035 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1036 program_suffix
=$ac_optarg ;;
1038 -program-transform-name |
--program-transform-name \
1039 |
--program-transform-nam |
--program-transform-na \
1040 |
--program-transform-n |
--program-transform- \
1041 |
--program-transform |
--program-transfor \
1042 |
--program-transfo |
--program-transf \
1043 |
--program-trans |
--program-tran \
1044 |
--progr-tra |
--program-tr |
--program-t)
1045 ac_prev
=program_transform_name
;;
1046 -program-transform-name=* |
--program-transform-name=* \
1047 |
--program-transform-nam=* |
--program-transform-na=* \
1048 |
--program-transform-n=* |
--program-transform-=* \
1049 |
--program-transform=* |
--program-transfor=* \
1050 |
--program-transfo=* |
--program-transf=* \
1051 |
--program-trans=* |
--program-tran=* \
1052 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1053 program_transform_name
=$ac_optarg ;;
1055 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1057 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1058 pdfdir
=$ac_optarg ;;
1060 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1062 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1065 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1066 |
-silent |
--silent |
--silen |
--sile |
--sil)
1069 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1071 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1073 sbindir
=$ac_optarg ;;
1075 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1076 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1077 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1079 ac_prev
=sharedstatedir
;;
1080 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1081 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1082 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1084 sharedstatedir
=$ac_optarg ;;
1086 -site |
--site |
--sit)
1088 -site=* |
--site=* |
--sit=*)
1091 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1093 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1094 srcdir
=$ac_optarg ;;
1096 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1097 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1098 ac_prev
=sysconfdir
;;
1099 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1100 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1101 sysconfdir
=$ac_optarg ;;
1103 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1104 ac_prev
=target_alias
;;
1105 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1106 target_alias
=$ac_optarg ;;
1108 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1111 -version |
--version |
--versio |
--versi |
--vers |
-V)
1112 ac_init_version
=: ;;
1115 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error
"invalid package name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval with_
$ac_useropt=\
$ac_optarg ;;
1130 -without-* |
--without-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error
"invalid package name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=no
;;
1147 # Obsolete; use --with-x.
1150 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1151 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1152 ac_prev
=x_includes
;;
1153 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1154 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1155 x_includes
=$ac_optarg ;;
1157 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1158 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1159 ac_prev
=x_libraries
;;
1160 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1161 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1162 x_libraries
=$ac_optarg ;;
1164 -*) as_fn_error
"unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1169 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1173 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\
$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 if test -n "$ac_prev"; then
1190 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error
"missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val
=\$
$ac_var
1209 # Remove trailing slashes.
1212 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\
$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$
]* | ?
:[\\/]* ) continue;;
1218 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1220 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target
=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x
; then
1232 if test "x$build_alias" = x
; then
1233 cross_compiling
=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1244 test "$silent" = yes && exec 6>/dev
/null
1247 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di
=`ls -di .` &&
1249 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error
"working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error
"pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted
=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir
=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted
=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1291 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures this package to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1384 --build=BUILD configure
for building on BUILD
[guessed
]
1385 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1386 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1390 if test -n "$ac_init_help"; then
1395 --disable-option-checking ignore unrecognized
--enable/--with options
1396 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1397 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1398 --enable-sim-alignment=align Specify strict or nonstrict alignment.
1399 --enable-sim-assert Specify whether to perform random assertions.
1400 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
1401 --enable-sim-bswap Use the BSWAP instruction on Intel
486s and Pentiums.
1402 --enable-sim-cflags=opts Extra CFLAGS
for use
in building simulator
1403 --enable-sim-config=file Override default config
file
1404 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
1405 --enable-sim-default-model=which Specify default PowerPC to model.
1406 --enable-sim-duplicate Expand
(duplicate
) semantic functions.
1407 --enable-sim-endian=endian Specify target byte endian orientation.
1408 --enable-sim-env=env Specify target environment
(operating
, virtual
, user
).
1409 --enable-sim-filter=rule Specify filter rules.
1410 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1411 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1412 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1413 --enable-sim-hostendian=end Specify
host byte endian orientation.
1414 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1415 --enable-sim-inline=inlines Specify
which functions should be inlined.
1416 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1417 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1418 --enable-sim-model=which Specify PowerPC to model.
1419 --enable-sim-model-issue Specify whether to simulate model specific actions
1420 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1421 --enable-sim-opcode=which Override default opcode lookup.
1422 --enable-sim-packages=list Specify the packages to be included
in the build.
1423 --enable-sim-regparm=nr-parm Pass parameters
in registers instead of on the stack
- x86
/GCC specific.
1424 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1425 --enable-sim-smp=n Specify number of processors to configure
for.
1426 --enable-sim-stdcall=type Use an alternative
function call
/return mechanism
- x86
/GCC specific.
1427 --enable-sim-stdio Specify whether to use stdio
for console input
/output.
1428 --enable-sim-switch Use a switch instead of a table
for instruction call.
1429 --enable-sim-timebase Specify whether the PPC timebase is supported.
1430 --enable-sim-trace Specify whether tracing is supported.
1431 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1432 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1435 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1436 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1437 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1438 --with-bugurl=URL Direct users to URL to report a bug
1439 --with-zlib include zlib support
(auto
/yes
/no
)
1441 Some influential environment variables
:
1442 CC C compiler
command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1445 nonstandard directory
<lib dir
>
1446 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1447 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1448 you have headers
in a nonstandard directory
<include dir
>
1451 Use these variables to override the choices made by
`configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to the package provider.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1484 .) # We are building in place.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1518 generated by GNU Autoconf 2.64
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1541 *) ac_try_echo
=$ac_try;;
1543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1547 if test -s conftest.err
; then
1548 grep -v '^ *+' conftest.err
>conftest.er1
1549 cat conftest.er1
>&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.
$ac_objext; then :
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.
$ac_ext >&5
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1567 } # ac_fn_c_try_compile
1569 # ac_fn_c_try_run LINENO
1570 # ----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1572 # that executables *can* be run.
1575 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1576 if { { ac_try
="$ac_link"
1578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>&5
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1587 { { case "(($ac_try" in
1588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1589 *) ac_try_echo
=$ac_try;;
1591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_try") 2>&5
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; }; }; then :
1599 $as_echo "$as_me: program exited with status $ac_status" >&5
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.
$ac_ext >&5
1603 ac_retval
=$ac_status
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } >/dev/null && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1689 *) ac_try_echo
=$ac_try;;
1691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err
; then
1696 grep -v '^ *+' conftest.err
>conftest.er1
1697 cat conftest.er1
>&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest
$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest
$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.
$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1730 ac_fn_c_check_header_mongrel
()
1732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1733 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1751 if ac_fn_c_try_compile
"$LINENO"; then :
1752 ac_header_compiler
=yes
1754 ac_header_compiler
=no
1756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1767 if ac_fn_c_try_cpp
"$LINENO"; then :
1768 ac_header_preproc
=yes
1770 ac_header_preproc
=no
1772 rm -f conftest.err conftest.
$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1802 eval "$3=\$ac_header_compiler"
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 } # ac_fn_c_check_header_mongrel
1812 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1813 # ----------------------------------------------------
1814 # Tries to find if the field MEMBER exists in type AGGR, after including
1815 # INCLUDES, setting cache variable VAR accordingly.
1816 ac_fn_c_check_member
()
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1820 $as_echo_n "checking for $2.$3... " >&6; }
1821 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1837 if ac_fn_c_try_compile
"$LINENO"; then :
1840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1847 if (sizeof ac_aggr.$3)
1853 if ac_fn_c_try_compile
"$LINENO"; then :
1858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1867 } # ac_fn_c_check_member
1869 # ac_fn_c_check_decl LINENO SYMBOL VAR
1870 # ------------------------------------
1871 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1872 ac_fn_c_check_decl
()
1874 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1876 $as_echo_n "checking whether $2 is declared... " >&6; }
1877 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1894 if ac_fn_c_try_compile
"$LINENO"; then :
1899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1906 } # ac_fn_c_check_decl
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type
()
1914 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918 $as_echo_n "(cached) " >&6
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1933 if ac_fn_c_try_compile
"$LINENO"; then :
1934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1946 if ac_fn_c_try_compile
"$LINENO"; then :
1951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1960 } # ac_fn_c_check_type
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func
()
1967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1977 #define $2 innocuous_$2
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char $2 (); below.
1981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1982 <limits.h> exists even on freestanding compilers. */
1985 # include <limits.h>
1987 # include <assert.h>
1992 /* Override any GCC internal prototype to avoid an error.
1993 Use char because int might match the return type of a GCC
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined __stub_$2 || defined __stub___$2
2014 if ac_fn_c_try_link
"$LINENO"; then :
2019 rm -f core conftest.err conftest.
$ac_objext \
2020 conftest
$ac_exeext conftest.
$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2027 } # ac_fn_c_check_func
2028 cat >config.log
<<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2032 It was created by $as_me, which was
2033 generated by GNU Autoconf 2.64. Invocation command line was
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir
=.
2069 $as_echo "PATH: $as_dir"
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_must_keep_next
=false
2099 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2100 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2101 |
-silent |
--silent |
--silen |
--sile |
--sil)
2104 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2109 as_fn_append ac_configure_args1
" '$ac_arg'"
2110 if test $ac_must_keep_next = true
; then
2111 ac_must_keep_next
=false
# Got value, back to normal.
2114 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2115 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2116 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2117 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2118 case "$ac_configure_args0 " in
2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 -* ) ac_must_keep_next
=true
;;
2125 as_fn_append ac_configure_args
" '$ac_arg'"
2130 { ac_configure_args0
=; unset ac_configure_args0
;}
2131 { ac_configure_args1
=; unset ac_configure_args1
;}
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log. We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139 # Save into config.log some information that might help in debugging.
2144 ## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##
2149 # The following way of writing the cache mishandles newlines in values,
2151 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152 eval ac_val=\$$ac_var
2156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 _ | IFS | as_nl) ;; #(
2161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2162 *) { eval $ac_var=; unset $ac_var;} ;;
2167 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168 *${as_nl}ac_space=\ *)
2170 "s/'\''/'\''\\\\'\'''\''/g;
2171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -n "$ac_subst_files"; then
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2204 for ac_var
in $ac_subst_files
2206 eval ac_val
=\$
$ac_var
2208 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 $as_echo "$ac_var='\''$ac_val'\''"
2215 if test -s confdefs.h; then
2225 test "$ac_signal" != 0 &&
2226 $as_echo "$as_me: caught signal $ac_signal"
2227 $as_echo "$as_me: exit $exit_status"
2229 rm -f core *.core core.conftest.* &&
2230 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2233 for ac_signal
in 1 2 13 15; do
2234 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest
* confdefs.h
2241 $as_echo "/* confdefs.h */" > confdefs.h
2243 # Predefined preprocessor variables.
2245 cat >>confdefs.h
<<_ACEOF
2246 #define PACKAGE_NAME "$PACKAGE_NAME"
2249 cat >>confdefs.h
<<_ACEOF
2250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2253 cat >>confdefs.h
<<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2257 cat >>confdefs.h
<<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2261 cat >>confdefs.h
<<_ACEOF
2262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 cat >>confdefs.h
<<_ACEOF
2266 #define PACKAGE_URL "$PACKAGE_URL"
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2274 if test -n "$CONFIG_SITE"; then
2275 ac_site_file1
=$CONFIG_SITE
2276 elif test "x$prefix" != xNONE
; then
2277 ac_site_file1
=$prefix/share
/config.site
2278 ac_site_file2
=$prefix/etc
/config.site
2280 ac_site_file1
=$ac_default_prefix/share
/config.site
2281 ac_site_file2
=$ac_default_prefix/etc
/config.site
2283 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2285 test "x$ac_site_file" = xNONE
&& continue
2286 if test -r "$ac_site_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2289 sed 's/^/| /' "$ac_site_file" >&5
2294 if test -r "$cache_file"; then
2295 # Some versions of bash will fail to source /dev/null (special
2296 # files actually), so we avoid doing that.
2297 if test -f "$cache_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 $as_echo "$as_me: loading cache $cache_file" >&6;}
2301 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2302 *) .
"./$cache_file";;
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311 # Check that the precious variables saved in the cache have kept the same
2313 ac_cache_corrupted
=false
2314 for ac_var
in $ac_precious_vars; do
2315 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2316 eval ac_new_set
=\
$ac_env_${ac_var}_set
2317 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2318 eval ac_new_val
=\
$ac_env_${ac_var}_value
2319 case $ac_old_set,$ac_new_set in
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323 ac_cache_corrupted
=: ;;
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327 ac_cache_corrupted
=: ;;
2330 if test "x$ac_old_val" != "x$ac_new_val"; then
2331 # differences in whitespace do not lead to failure.
2332 ac_old_val_w
=`echo x $ac_old_val`
2333 ac_new_val_w
=`echo x $ac_new_val`
2334 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2336 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2337 ac_cache_corrupted
=:
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2340 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2341 eval $ac_var=\
$ac_old_val
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2344 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2346 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2349 # Pass precious variables to config.status.
2350 if test "$ac_new_set" = set; then
2352 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 *) ac_arg
=$ac_var=$ac_new_val ;;
2355 case " $ac_configure_args " in
2356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2357 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2361 if $ac_cache_corrupted; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2365 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368 ## -------------------- ##
2369 ## Main body of script. ##
2370 ## -------------------- ##
2373 ac_cpp
='$CPP $CPPFLAGS'
2374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2384 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 for ac_t
in install-sh
install.sh shtool
; do
2386 if test -f "$ac_dir/$ac_t"; then
2388 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2393 if test -z "$ac_aux_dir"; then
2394 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2397 # These three variables are undocumented and unsupported,
2398 # and are intended to be withdrawn in a future Autoconf release.
2399 # They can cause serious problems if a builder's source tree is in a directory
2400 # whose full name contains unusual characters.
2401 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2402 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2403 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 # Reject install programs that cannot install multiple files.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2422 if test -z "$INSTALL"; then
2423 if test "${ac_cv_path_install+set}" = set; then :
2424 $as_echo_n "(cached) " >&6
2426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir
=.
2431 # Account for people who put trailing slashes in PATH elements.
2432 case $as_dir/ in #((
2433 .
/ | .
// |
/[cC
]/* | \
2434 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2435 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2438 # OSF1 and SCO ODT 3.0 have their own names for install.
2439 # Don't use installbsd from OSF since it installs stuff as root
2441 for ac_prog
in ginstall scoinst
install; do
2442 for ac_exec_ext
in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2444 if test $ac_prog = install &&
2445 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2446 # AIX install. It has an incompatible calling convention.
2448 elif test $ac_prog = install &&
2449 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2450 # program-specific install script used by HP pwplus--don't use.
2453 rm -rf conftest.one conftest.two conftest.dir
2454 echo one
> conftest.one
2455 echo two
> conftest.two
2457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2458 test -s conftest.one
&& test -s conftest.two
&&
2459 test -s conftest.dir
/conftest.one
&&
2460 test -s conftest.dir
/conftest.two
2462 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2475 rm -rf conftest.one conftest.two conftest.dir
2478 if test "${ac_cv_path_install+set}" = set; then
2479 INSTALL
=$ac_cv_path_install
2481 # As a last resort, use the slow shell script. Don't cache a
2482 # value for INSTALL within a source directory, because that will
2483 # break other packages using the cache if that directory is
2484 # removed, or if the value is a relative name.
2485 INSTALL
=$ac_install_sh
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489 $as_echo "$INSTALL" >&6; }
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2497 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2500 ac_cpp
='$CPP $CPPFLAGS'
2501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2506 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC
="$CC" # Let the user override the test.
2515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir
=.
2520 for ac_exec_ext
in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2543 if test -z "$ac_cv_prog_CC"; then
2545 # Extract the first word of "gcc", so it can be a program name with args.
2546 set dummy gcc
; ac_word
=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir
=.
2560 for ac_exec_ext
in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_ac_ct_CC
="gcc"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575 $as_echo "$ac_ct_CC" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2581 if test "x$ac_ct_CC" = x
; then
2584 case $cross_compiling:$ac_tool_warned in
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned
=yes ;;
2596 if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2599 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$CC"; then
2606 ac_cv_prog_CC
="$CC" # Let the user override the test.
2608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir
=.
2613 for ac_exec_ext
in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 if test -n "$CC"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2628 $as_echo "$CC" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2637 if test -z "$CC"; then
2638 # Extract the first word of "cc", so it can be a program name with args.
2639 set dummy cc
; ac_word
=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC
="$CC" # Let the user override the test.
2649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir
=.
2654 for ac_exec_ext
in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2657 ac_prog_rejected
=yes
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 if test $ac_prog_rejected = yes; then
2669 # We found a bogon in the path, so make sure we never use it.
2670 set dummy
$ac_cv_prog_CC
2672 if test $# != 0; then
2673 # We chose a different compiler from the bogus one.
2674 # However, it has the same basename, so the bogon will be chosen
2675 # first if we set CC to just the basename; use the full file name.
2677 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2693 if test -z "$CC"; then
2694 if test -n "$ac_tool_prefix"; then
2695 for ac_prog
in cl.exe
2697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2698 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC
="$CC" # Let the user override the test.
2707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir
=.
2712 for ac_exec_ext
in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2734 test -n "$CC" && break
2737 if test -z "$CC"; then
2739 for ac_prog
in cl.exe
2741 # Extract the first word of "$ac_prog", so it can be a program name with args.
2742 set dummy
$ac_prog; ac_word
=$2
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 $as_echo_n "checking for $ac_word... " >&6; }
2745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2746 $as_echo_n "(cached) " >&6
2748 if test -n "$ac_ct_CC"; then
2749 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_ac_ct_CC
="$ac_prog"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 $as_echo "$ac_ct_CC" >&6; }
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 $as_echo "no" >&6; }
2778 test -n "$ac_ct_CC" && break
2781 if test "x$ac_ct_CC" = x
; then
2784 case $cross_compiling:$ac_tool_warned in
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788 ac_tool_warned
=yes ;;
2797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 as_fn_error
"no acceptable C compiler found in \$PATH
2800 See \`config.log' for more details." "$LINENO" 5; }
2802 # Provide some information about the compiler.
2803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2806 for ac_option
in --version -v -V -qversion; do
2807 { { ac_try
="$ac_compiler $ac_option >&5"
2809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2813 $as_echo "$ac_try_echo"; } >&5
2814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2816 if test -s conftest.err; then
2818 ... rest of stderr output deleted ...
2819 10q' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 rm -f conftest.er1 conftest.err
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2838 ac_clean_files_save=$ac_clean_files
2839 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2840 # Try to create an executable without -o first, disregard a.out.
2841 # It will help us diagnose broken compilers, and finding out an intuition
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2844 $as_echo_n "checking for C compiler default output file name... " >&6; }
2845 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2847 # The possible output files:
2848 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2851 for ac_file in $ac_files
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2855 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2860 if { { ac_try="$ac_link_default"
2862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2863 *) ac_try_echo
=$ac_try;;
2865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link_default") 2>&5
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; }; then :
2871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2874 # so that the user can short-circuit this test for compilers unknown to
2876 for ac_file
in $ac_files ''
2878 test -f "$ac_file" ||
continue
2880 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2883 # We found the default executable, but exeext='' is most
2887 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2889 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 # We set ac_cv_exeext here because the later test for it is not
2892 # safe: cross compilers may not add the suffix if given an `-o'
2893 # argument, so we may need to know it at that point already.
2894 # Even if this section looks crufty: it has the advantage of
2901 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2907 $as_echo "$ac_file" >&6; }
2908 if test -z "$ac_file"; then :
2909 $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.
$ac_ext >&5
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 { as_fn_set_status
77
2915 as_fn_error
"C compiler cannot create executables
2916 See \`config.log' for more details." "$LINENO" 5; }; }
2918 ac_exeext
=$ac_cv_exeext
2920 # Check that the compiler produces executables we can run. If not, either
2921 # the compiler is broken, or we cross compile.
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2923 $as_echo_n "checking whether the C compiler works... " >&6; }
2924 # If not cross compiling, check that we can run a simple program.
2925 if test "$cross_compiling" != yes; then
2926 if { ac_try
='./$ac_file'
2927 { { case "(($ac_try" in
2928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_try") 2>&5
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; }; then
2939 if test "$cross_compiling" = maybe; then
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error "cannot run C compiled programs.
2945 If you meant to cross compile
, use \
`--host'.
2946 See \`config.log
' for more details." "$LINENO" 5; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2953 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2954 ac_clean_files=$ac_clean_files_save
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2958 $as_echo_n "checking whether we are cross compiling... " >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2960 $as_echo "$cross_compiling" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2963 $as_echo_n "checking for suffix of executables... " >&6; }
2964 if { { ac_try="$ac_link"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_link") 2>&5
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; then :
2975 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2976 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2977 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2979 for ac_file
in conftest.exe conftest conftest.
*; do
2980 test -f "$ac_file" ||
continue
2982 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2983 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details." "$LINENO" 5; }
2994 rm -f conftest
$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2996 $as_echo "$ac_cv_exeext" >&6; }
2998 rm -f conftest.
$ac_ext
2999 EXEEXT
=$ac_cv_exeext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3002 $as_echo_n "checking for suffix of object files... " >&6; }
3003 if test "${ac_cv_objext+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3017 rm -f conftest.o conftest.obj
3018 if { { ac_try
="$ac_compile"
3020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compile") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error "cannot compute suffix of object files
: cannot compile
3044 See \
`config.log' for more details." "$LINENO" 5; }
3046 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049 $as_echo "$ac_cv_objext" >&6; }
3050 OBJEXT=$ac_cv_objext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3053 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3054 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3071 if ac_fn_c_try_compile "$LINENO"; then :
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3081 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3082 if test $ac_compiler_gnu = yes; then
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3090 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3109 if ac_fn_c_try_compile "$LINENO"; then :
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3124 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3140 if ac_fn_c_try_compile "$LINENO"; then :
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151 $as_echo "$ac_cv_prog_cc_g" >&6; }
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS=$ac_save_CFLAGS
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3161 if test "$GCC" = yes; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3168 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3169 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3172 ac_cv_prog_cc_c89=no
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3178 #include <sys/types.h>
3179 #include <sys/stat.h>
3180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3181 struct buf { int x; };
3182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3183 static char *e (p, i)
3189 static char *f (char * (*g) (char **, int), char **p, ...)
3194 s = g (p, va_arg (v,int));
3199 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3200 function prototypes and stuff, but not '\xHH' hex character constants.
3201 These don't provoke an error unfortunately, instead are silently treated
3202 as 'x'. The following induces an error, until -std is added to get
3203 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3204 array size at least. It's necessary to write '\x00'==0 to get something
3205 that's true only with -std. */
3206 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3209 inside strings and character constants. */
3211 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213 int test (int i, double x);
3214 struct s1 {int (*f) (int a);};
3215 struct s2 {int (*f) (double a);};
3216 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3222 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3227 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3228 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 CC="$ac_save_CC $ac_arg"
3231 if ac_fn_c_try_compile "$LINENO"; then :
3232 ac_cv_prog_cc_c89=$ac_arg
3234 rm -f core conftest.err conftest.$ac_objext
3235 test "x$ac_cv_prog_cc_c89" != "xno" && break
3237 rm -f conftest.$ac_ext
3242 case "x$ac_cv_prog_cc_c89" in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3245 $as_echo "none needed" >&6; } ;;
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3248 $as_echo "unsupported" >&6; } ;;
3250 CC="$CC $ac_cv_prog_cc_c89"
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3252 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3254 if test "x$ac_cv_prog_cc_c89" != xno; then :
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 # Put a plausible default for CC_FOR_BUILD in Makefile.
3266 if test "x$cross_compiling" = "xno"; then
3267 CC_FOR_BUILD='$(CC)'
3271 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3274 # If we haven't got the data from the intl directory,
3275 # assume NLS is disabled.
3284 if test -f ../../intl/config.intl; then
3285 . ../../intl/config.intl
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3288 $as_echo_n "checking whether NLS is requested... " >&6; }
3289 if test x"$USE_NLS" != xyes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3300 $as_echo_n "checking for catalogs to be installed... " >&6; }
3301 # Look for .po and .gmo files in the source directory.
3304 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3305 # If there aren't any .gmo files the shell will give us the
3306 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3308 case "$cat" in *\**)
3311 # The quadruple backslash is collapsed to a double backslash
3312 # by the backticks, then collapsed again by the double quotes,
3313 # leaving us with one backslash in the sed expression (right
3314 # before the dot that mustn't act as a wildcard).
3315 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3316 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3317 # The user is allowed to set LINGUAS to a list of languages to
3318 # install catalogs for. If it's empty that means "all of them."
3319 if test "x$LINGUAS" = x; then
3320 CATALOGS="$CATALOGS $cat"
3321 XLINGUAS="$XLINGUAS $lang"
3323 case "$LINGUAS" in *$lang*)
3324 CATALOGS="$CATALOGS $cat"
3325 XLINGUAS="$XLINGUAS $lang"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3332 $as_echo "$LINGUAS" >&6; }
3346 # Check whether --enable-sim-alignment was given.
3347 if test "${enable_sim_alignment+set}" = set; then :
3348 enableval=$enable_sim_alignment; case "${enableval}" in
3349 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3350 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3351 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3352 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3354 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3355 echo "Setting alignment flags = $sim_alignment" 6>&1
3362 # Check whether --enable-sim-assert was given.
3363 if test "${enable_sim_assert+set}" = set; then :
3364 enableval=$enable_sim_assert; case "${enableval}" in
3365 yes) sim_assert="-DWITH_ASSERT=1";;
3366 no) sim_assert="-DWITH_ASSERT=0";;
3367 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
3369 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3370 echo "Setting assert flags = $sim_assert" 6>&1
3377 # Check whether --enable-sim-bitsize was given.
3378 if test "${enable_sim_bitsize+set}" = set; then :
3379 enableval=$enable_sim_bitsize; case "${enableval}" in
3380 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3381 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3383 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3384 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3391 # Check whether --enable-sim-bswap was given.
3392 if test "${enable_sim_bswap+set}" = set; then :
3393 enableval=$enable_sim_bswap; case "${enableval}" in
3394 yes) sim_bswap="-DWITH_BSWAP=1";;
3395 no) sim_bswap="-DWITH_BSWAP=0";;
3396 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
3398 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3399 echo "Setting bswap flags = $sim_bswap" 6>&1
3406 # Check whether --enable-sim-cflags was given.
3407 if test "${enable_sim_cflags+set}" = set; then :
3408 enableval=$enable_sim_cflags; case "${enableval}" in
3409 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3411 *) sim_cflags=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
3413 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3414 echo "Setting sim cflags = $sim_cflags" 6>&1
3421 # Check whether --enable-sim-config was given.
3422 if test "${enable_sim_config+set}" = set; then :
3423 enableval=$enable_sim_config; case "${enableval}" in
3424 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3425 *) if test -f "${srcdir}/${enableval}"; then
3426 sim_config="${enableval}";
3427 elif test -f "${srcdir}/${enableval}-config.h"; then
3428 sim_config="${enableval}-config.h"
3430 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
3431 sim_config=std-config.h
3434 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3435 echo "Setting config flags = $sim_config" 6>&1
3438 sim_config="std-config.h"
3439 if test x"$silent" != x"yes"; then
3440 echo "Setting config flags = $sim_config" 6>&1
3445 # Check whether --enable-sim-decode-mechanism was given.
3446 if test "${enable_sim_decode_mechanism+set}" = set; then :
3447 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3448 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3449 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3450 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3451 sim_decode_mechanism="switch";;
3453 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3454 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3457 sim_decode_mechanism=""
3458 if test x"$silent" != x"yes"; then
3459 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3464 # Check whether --enable-sim-default-model was given.
3465 if test "${enable_sim_default_model+set}" = set; then :
3466 enableval=$enable_sim_default_model; case "${enableval}" in
3467 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3468 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3470 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3471 echo "Setting default-model flags = $sim_default_model" 6>&1
3474 sim_default_model=""
3478 # Check whether --enable-sim-duplicate was given.
3479 if test "${enable_sim_duplicate+set}" = set; then :
3480 enableval=$enable_sim_duplicate; case "${enableval}" in
3483 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3485 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3486 echo "Setting duplicate flags = $sim_dup" 6>&1
3490 if test x"$silent" != x"yes"; then
3491 echo "Setting duplicate flags = $sim_dup" 6>&1
3496 # Check whether --enable-sim-endian was given.
3497 if test "${enable_sim_endian+set}" = set; then :
3498 enableval=$enable_sim_endian; case "${enableval}" in
3499 yes) case "$target" in
3500 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3501 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3502 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3504 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3505 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3506 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3507 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3509 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3510 echo "Setting endian flags = $sim_endian" 6>&1
3517 # Check whether --enable-sim-env was given.
3518 if test "${enable_sim_env+set}" = set; then :
3519 enableval=$enable_sim_env; case "${enableval}" in
3520 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3521 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3522 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3523 no) sim_env="-DWITH_ENVIRONMENT=0";;
3524 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
3526 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3527 echo "Setting env flags = $sim_env" 6>&1
3534 # Check whether --enable-sim-filter was given.
3535 if test "${enable_sim_filter+set}" = set; then :
3536 enableval=$enable_sim_filter; case "${enableval}" in
3537 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3539 *) sim_filter="-F $enableval";;
3541 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3542 echo "Setting filter flags = $sim_filter" 6>&1
3545 sim_filter="-F 32,f,o"
3546 if test x"$silent" != x"yes"; then
3547 echo "Setting filter flags = $sim_filter" 6>&1
3552 # Check whether --enable-sim-float was given.
3553 if test "${enable_sim_float+set}" = set; then :
3554 enableval=$enable_sim_float; case "${enableval}" in
3555 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3556 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3557 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3558 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3559 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3561 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3562 echo "Setting float flags = $sim_float" 6>&1
3567 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3568 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3576 $as_echo_n "checking if union semun defined... " >&6; }
3577 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3583 #include <sys/types.h>
3584 #include <sys/ipc.h>
3585 #include <sys/sem.h>
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_has_union_semun="yes"
3597 ac_cv_has_union_semun="no"
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3601 $as_echo "$ac_cv_has_union_semun" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3605 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3608 if test "$ac_cv_has_union_semun" = "yes"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3610 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3611 if test "${ac_cv_sysv_sem+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3615 if test "$cross_compiling" = yes; then :
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3621 #include <sys/types.h>
3622 #include <sys/ipc.h>
3623 #include <sys/sem.h>
3627 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3630 arg.val = 0; /* avoid implicit type cast to union */
3631 if (semctl(id, 0, IPC_RMID, arg) == -1)
3637 if ac_fn_c_try_run "$LINENO"; then :
3638 ac_cv_sysv_sem="yes"
3642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3643 conftest.$ac_objext conftest.beam conftest.$ac_ext
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3649 $as_echo "$ac_cv_sysv_sem" >&6; }
3650 else # semun is not defined
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3652 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3653 if test "${ac_cv_sysv_sem+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3657 if test "$cross_compiling" = yes; then :
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3663 #include <sys/types.h>
3664 #include <sys/ipc.h>
3665 #include <sys/sem.h>
3668 struct semid_ds *buf;
3674 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3677 arg.val = 0; /* avoid implicit type cast to union */
3678 if (semctl(id, 0, IPC_RMID, arg) == -1)
3684 if ac_fn_c_try_run "$LINENO"; then :
3685 ac_cv_sysv_sem="yes"
3689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3690 conftest.$ac_objext conftest.beam conftest.$ac_ext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3696 $as_echo "$ac_cv_sysv_sem" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3700 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3701 if test "${ac_cv_sysv_shm+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3705 if test "$cross_compiling" = yes; then :
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3711 #include <sys/types.h>
3712 #include <sys/ipc.h>
3713 #include <sys/shm.h>
3715 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3718 if (shmctl(id, IPC_RMID, 0) == -1)
3724 if ac_fn_c_try_run "$LINENO"; then :
3725 ac_cv_sysv_shm="yes"
3729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3730 conftest.$ac_objext conftest.beam conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3736 $as_echo "$ac_cv_sysv_shm" >&6; }
3738 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3739 sim_sysv_ipc_hw=",sem,shm";
3744 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3746 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3751 # Check whether --enable-sim-hardware was given.
3752 if test "${enable_sim_hardware+set}" = set; then :
3753 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}"
3754 case "${enableval}" in
3756 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3757 ,*) hardware="${hardware}${enableval}";;
3758 *,) hardware="${enableval}${hardware}";;
3759 *) hardware="${enableval}"'';;
3761 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3762 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3763 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3764 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3767 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3768 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3769 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3770 if test x"$silent" != x"yes"; then
3771 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3775 # Check whether --enable-sim-hostbitsize was given.
3776 if test "${enable_sim_hostbitsize+set}" = set; then :
3777 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3778 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3779 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3781 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3782 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3800 if test -z "$CPP"; then
3801 if test "${ac_cv_prog_CPP+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3804 # Double quotes because CPP needs to be expanded
3805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808 for ac_c_preproc_warn_flag in '' yes
3810 # Use a header file that comes with gcc, so configuring glibc
3811 # with a fresh cross-compiler works.
3812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813 # <limits.h> exists even on freestanding compilers.
3814 # On the NeXT, cc -E runs the code through the compiler's parser,
3815 # not just through cpp. "Syntax error" is here to catch this case.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3819 # include <limits.h>
3821 # include <assert.h>
3825 if ac_fn_c_try_cpp "$LINENO"; then :
3828 # Broken: fails on valid input.
3831 rm -f conftest.err conftest.$ac_ext
3833 # OK, works on sane cases. Now check whether nonexistent headers
3834 # can be detected and how.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3839 if ac_fn_c_try_cpp "$LINENO"; then :
3840 # Broken: success on invalid input.
3843 # Passes both tests.
3847 rm -f conftest.err conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.
$ac_ext
3852 if $ac_preproc_ok; then :
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3865 $as_echo "$CPP" >&6; }
3867 for ac_c_preproc_warn_flag
in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 # include <limits.h>
3880 # include <assert.h>
3884 if ac_fn_c_try_cpp
"$LINENO"; then :
3887 # Broken: fails on valid input.
3890 rm -f conftest.err conftest.
$ac_ext
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3898 if ac_fn_c_try_cpp
"$LINENO"; then :
3899 # Broken: success on invalid input.
3902 # Passes both tests.
3906 rm -f conftest.err conftest.
$ac_ext
3909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910 rm -f conftest.err conftest.
$ac_ext
3911 if $ac_preproc_ok; then :
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3917 See \`config.log' for more details." "$LINENO" 5; }
3921 ac_cpp
='$CPP $CPPFLAGS'
3922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3928 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3929 if test "${ac_cv_path_GREP+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -z "$GREP"; then
3933 ac_path_GREP_found
=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3936 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3939 test -z "$as_dir" && as_dir
=.
3940 for ac_prog
in grep ggrep
; do
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3944 # Check for GNU ac_path_GREP and select it if it is found.
3945 # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3948 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3951 $as_echo_n 0123456789 >"conftest.in"
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 $as_echo 'GREP' >> "conftest.nl"
3958 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3959 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3960 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3961 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_GREP
="$ac_path_GREP"
3964 ac_path_GREP_max
=$ac_count
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3969 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3972 $ac_path_GREP_found && break 3
3977 if test -z "$ac_cv_path_GREP"; then
3978 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3981 ac_cv_path_GREP
=$GREP
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3986 $as_echo "$ac_cv_path_GREP" >&6; }
3987 GREP
="$ac_cv_path_GREP"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3991 $as_echo_n "checking for egrep... " >&6; }
3992 if test "${ac_cv_path_EGREP+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3995 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3996 then ac_cv_path_EGREP
="$GREP -E"
3998 if test -z "$EGREP"; then
3999 ac_path_EGREP_found
=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4002 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4005 test -z "$as_dir" && as_dir
=.
4006 for ac_prog
in egrep; do
4007 for ac_exec_ext
in '' $ac_executable_extensions; do
4008 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4014 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4017 $as_echo_n 0123456789 >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4025 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4026 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP
="$ac_path_EGREP"
4030 ac_path_EGREP_max
=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4038 $ac_path_EGREP_found && break 3
4043 if test -z "$ac_cv_path_EGREP"; then
4044 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 ac_cv_path_EGREP
=$EGREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4053 $as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP
="$ac_cv_path_EGREP"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4058 $as_echo_n "checking for ANSI C header files... " >&6; }
4059 if test "${ac_cv_header_stdc+set}" = set; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4077 if ac_fn_c_try_compile
"$LINENO"; then :
4078 ac_cv_header_stdc
=yes
4080 ac_cv_header_stdc
=no
4082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4084 if test $ac_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 $EGREP "memchr" >/dev
/null
2>&1; then :
4095 ac_cv_header_stdc
=no
4101 if test $ac_cv_header_stdc = yes; then
4102 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "free" >/dev
/null
2>&1; then :
4112 ac_cv_header_stdc
=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then :
4123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 #if ((' ' & 0x0FF) == 0x020)
4128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4131 # define ISLOWER(c) \
4132 (('a' <= (c) && (c) <= 'i') \
4133 || ('j' <= (c) && (c) <= 'r') \
4134 || ('s' <= (c) && (c) <= 'z'))
4135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4143 for (i = 0; i < 256; i++)
4144 if (XOR (islower (i), ISLOWER (i))
4145 || toupper (i) != TOUPPER (i))
4150 if ac_fn_c_try_run
"$LINENO"; then :
4153 ac_cv_header_stdc
=no
4155 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4156 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4162 $as_echo "$ac_cv_header_stdc" >&6; }
4163 if test $ac_cv_header_stdc = yes; then
4165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4170 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4171 inttypes.h stdint.h unistd.h
4173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4176 eval as_val
=\$
$as_ac_Header
4177 if test "x$as_val" = x
""yes; then :
4178 cat >>confdefs.h
<<_ACEOF
4179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4187 # Check whether --enable-sim-hostendian was given.
4188 if test "${enable_sim_hostendian+set}" = set; then :
4189 enableval
=$enable_sim_hostendian; case "${enableval}" in
4190 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4191 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4192 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4193 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4195 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4196 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4200 if test "x$cross_compiling" = "xno"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4202 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4203 if test "${ac_cv_c_bigendian+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4206 ac_cv_c_bigendian
=unknown
4207 # See if we're dealing with a universal compiler.
4208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #ifndef __APPLE_CC__
4211 not a universal capable compiler
4216 if ac_fn_c_try_compile
"$LINENO"; then :
4218 # Check for potential -arch flags. It is not universal unless
4219 # there are at least two -arch flags with different values.
4222 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4223 if test -n "$ac_prev"; then
4225 i?
86 | x86_64 | ppc | ppc64
)
4226 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4229 ac_cv_c_bigendian
=universal
4235 elif test "x$ac_word" = "x-arch"; then
4240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4241 if test $ac_cv_c_bigendian = unknown
; then
4242 # See if sys/param.h defines the BYTE_ORDER macro.
4243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #include <sys/types.h>
4246 #include <sys/param.h>
4251 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4252 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4261 if ac_fn_c_try_compile
"$LINENO"; then :
4262 # It does; now see whether it defined to BIG_ENDIAN or not.
4263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265 #include <sys/types.h>
4266 #include <sys/param.h>
4271 #if BYTE_ORDER != BIG_ENDIAN
4279 if ac_fn_c_try_compile
"$LINENO"; then :
4280 ac_cv_c_bigendian
=yes
4282 ac_cv_c_bigendian
=no
4284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4288 if test $ac_cv_c_bigendian = unknown
; then
4289 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4297 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4305 if ac_fn_c_try_compile
"$LINENO"; then :
4306 # It does; now see whether it defined to _BIG_ENDIAN or not.
4307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4322 if ac_fn_c_try_compile
"$LINENO"; then :
4323 ac_cv_c_bigendian
=yes
4325 ac_cv_c_bigendian
=no
4327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4331 if test $ac_cv_c_bigendian = unknown
; then
4332 # Compile a test program.
4333 if test "$cross_compiling" = yes; then :
4334 # Try to guess by grepping values from an object file.
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337 short int ascii_mm[] =
4338 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4339 short int ascii_ii[] =
4340 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4341 int use_ascii (int i) {
4342 return ascii_mm[i] + ascii_ii[i];
4344 short int ebcdic_ii[] =
4345 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4346 short int ebcdic_mm[] =
4347 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4348 int use_ebcdic (int i) {
4349 return ebcdic_mm[i] + ebcdic_ii[i];
4356 return use_ascii (foo) == use_ebcdic (foo);
4361 if ac_fn_c_try_compile
"$LINENO"; then :
4362 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4363 ac_cv_c_bigendian
=yes
4365 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4366 if test "$ac_cv_c_bigendian" = unknown
; then
4367 ac_cv_c_bigendian
=no
4369 # finding both strings is unlikely to happen, but who knows?
4370 ac_cv_c_bigendian
=unknown
4374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378 $ac_includes_default
4383 /* Are we little or big endian? From Harbison&Steele. */
4387 char c[sizeof (long int)];
4390 return u.c[sizeof (long int) - 1] == 1;
4396 if ac_fn_c_try_run
"$LINENO"; then :
4397 ac_cv_c_bigendian
=no
4399 ac_cv_c_bigendian
=yes
4401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4408 $as_echo "$ac_cv_c_bigendian" >&6; }
4409 case $ac_cv_c_bigendian in #(
4411 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4417 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4421 as_fn_error
"unknown endianness
4422 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4425 if test $ac_cv_c_bigendian = yes; then
4426 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4428 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4431 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4436 # Check whether --enable-sim-icache was given.
4437 if test "${enable_sim_icache+set}" = set; then :
4438 enableval
=$enable_sim_icache; icache
="-R"
4439 case "${enableval}" in
4440 yes) icache
="1024"; sim_icache
="-I $icache";;
4441 no
) sim_icache
="-R";;
4444 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4446 define
) sim_icache
="${sim_icache}R";;
4447 semantic
) sim_icache
="${sim_icache}C";;
4448 insn
) sim_icache
="${sim_icache}S";;
4449 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
4450 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
4453 sim_icache
="${sim_icache}I $icache";;
4455 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
4456 echo "Setting instruction cache size to $icache ($sim_icache)"
4459 sim_icache
="-CSRI 1024"
4460 if test x
"$silent" != x
"yes"; then
4461 echo "Setting instruction cache size to 1024 ($sim_icache)"
4466 # Check whether --enable-sim-inline was given.
4467 if test "${enable_sim_inline+set}" = set; then :
4468 enableval
=$enable_sim_inline; sim_inline
=""
4469 case "$enableval" in
4470 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4471 0) sim_inline
="-DDEFAULT_INLINE=0";;
4472 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
4473 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4474 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4477 *_INLINE
=*) new_flag
="-D$x";;
4478 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4479 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
4480 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
4482 if test x
"$sim_inline" = x
""; then
4483 sim_inline
="$new_flag"
4485 sim_inline
="$sim_inline $new_flag"
4489 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4490 echo "Setting inline flags = $sim_inline" 6>&1
4493 if test x
"$GCC" != ""; then
4494 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4495 if test x
"$silent" != x
"yes"; then
4496 echo "Setting inline flags = $sim_inline" 6>&1
4504 # Check whether --enable-sim-jump was given.
4505 if test "${enable_sim_jump+set}" = set; then :
4506 enableval
=$enable_sim_jump; case "${enableval}" in
4507 yes) sim_jump
="-J";;
4509 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
4511 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
4512 echo "Setting jump flag = $sim_jump" 6>&1
4516 if test x
"$silent" != x
"yes"; then
4517 echo "Setting jump flag = $sim_jump" 6>&1
4522 # Check whether --enable-sim-line-nr was given.
4523 if test "${enable_sim_line_nr+set}" = set; then :
4524 enableval
=$enable_sim_line_nr; case "${enableval}" in
4525 yes) sim_line_nr
="";;
4526 no
) sim_line_nr
="-L";;
4527 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
4529 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
4530 echo "Setting warning flags = $sim_line_nr" 6>&1
4537 # Check whether --enable-sim-model was given.
4538 if test "${enable_sim_model+set}" = set; then :
4539 enableval
=$enable_sim_model; case "${enableval}" in
4540 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4541 *) sim_model
="-DWITH_MODEL=${enableval}";;
4543 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
4544 echo "Setting model flags = $sim_model" 6>&1
4551 # Check whether --enable-sim-model-issue was given.
4552 if test "${enable_sim_model_issue+set}" = set; then :
4553 enableval
=$enable_sim_model_issue; case "${enableval}" in
4554 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4555 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4556 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
4558 if test x
"$silent" != x
"yes"; then
4559 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4566 # Check whether --enable-sim-monitor was given.
4567 if test "${enable_sim_monitor+set}" = set; then :
4568 enableval
=$enable_sim_monitor; case "${enableval}" in
4569 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4570 no
) sim_monitor
="-DWITH_MON=0";;
4571 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4572 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4573 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
4575 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
4576 echo "Setting monitor flags = $sim_monitor" 6>&1
4583 # Check whether --enable-sim-opcode was given.
4584 if test "${enable_sim_opcode+set}" = set; then :
4585 enableval
=$enable_sim_opcode; case "${enableval}" in
4586 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4587 *) if test -f "${srcdir}/${enableval}"; then
4588 sim_opcode
="${enableval}"
4589 elif test -f "${srcdir}/dc-${enableval}"; then
4590 sim_opcode
="dc-${enableval}"
4592 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4593 sim_opcode
="dc-complex"
4596 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
4597 echo "Setting opcode flags = $sim_opcode" 6>&1
4600 sim_opcode
="dc-complex"
4601 if test x
"$silent" != x
"yes"; then
4602 echo "Setting opcode flags = $sim_opcode"
4607 # Check whether --enable-sim-packages was given.
4608 if test "${enable_sim_packages+set}" = set; then :
4609 enableval
=$enable_sim_packages; packages
=disklabel
4610 case "${enableval}" in
4612 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
4613 ,*) packages
="${packages}${enableval}";;
4614 *,) packages
="${enableval}${packages}";;
4615 *) packages
="${enableval}"'';;
4617 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4618 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4619 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
4620 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4624 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4625 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4626 if test x
"$silent" != x
"yes"; then
4627 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4632 # Check whether --enable-sim-regparm was given.
4633 if test "${enable_sim_regparm+set}" = set; then :
4634 enableval
=$enable_sim_regparm; case "${enableval}" in
4635 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
4636 no
) sim_regparm
="" ;;
4637 yes) sim_regparm
="-DWITH_REGPARM=3";;
4638 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm
="";;
4640 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
4641 echo "Setting regparm flags = $sim_regparm" 6>&1
4648 # Check whether --enable-sim-reserved-bits was given.
4649 if test "${enable_sim_reserved_bits+set}" = set; then :
4650 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
4651 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
4652 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
4653 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
4655 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
4656 echo "Setting reserved flags = $sim_reserved" 6>&1
4663 # Check whether --enable-sim-smp was given.
4664 if test "${enable_sim_smp+set}" = set; then :
4665 enableval
=$enable_sim_smp; case "${enableval}" in
4666 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4667 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4668 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4670 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4671 echo "Setting smp flags = $sim_smp" 6>&1
4674 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
4675 if test x
"$silent" != x
"yes"; then
4676 echo "Setting smp flags = $sim_smp" 6>&1
4681 # Check whether --enable-sim-stdcall was given.
4682 if test "${enable_sim_stdcall+set}" = set; then :
4683 enableval
=$enable_sim_stdcall; case "${enableval}" in
4684 no
) sim_stdcall
="" ;;
4685 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
4686 yes) sim_stdcall
="-DWITH_STDCALL=1";;
4687 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall
="";;
4689 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
4690 echo "Setting function call flags = $sim_stdcall" 6>&1
4697 # Check whether --enable-sim-stdio was given.
4698 if test "${enable_sim_stdio+set}" = set; then :
4699 enableval
=$enable_sim_stdio; case "${enableval}" in
4700 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4701 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4702 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4704 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4705 echo "Setting stdio flags = $sim_stdio" 6>&1
4712 # Check whether --enable-sim-switch was given.
4713 if test "${enable_sim_switch+set}" = set; then :
4714 enableval
=$enable_sim_switch; case "${enableval}" in
4715 yes) sim_switch
="-s";;
4717 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
4719 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
4720 echo "Setting switch flags = $sim_switch" 6>&1
4724 if test x
"$silent" != x
"yes"; then
4725 echo "Setting switch flags = $sim_switch" 6>&1
4730 # Check whether --enable-sim-timebase was given.
4731 if test "${enable_sim_timebase+set}" = set; then :
4732 enableval
=$enable_sim_timebase; case "${enableval}" in
4733 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
4734 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
4735 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
4737 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
4738 echo "Setting timebase flags = $sim_timebase" 6>&1
4745 # Check whether --enable-sim-trace was given.
4746 if test "${enable_sim_trace+set}" = set; then :
4747 enableval
=$enable_sim_trace; case "${enableval}" in
4748 yes) sim_trace
="-DWITH_TRACE=1";;
4749 no
) sim_trace
="-DWITH_TRACE=0";;
4750 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
4752 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4753 echo "Setting trace flags = $sim_trace" 6>&1
4760 # Check whether --enable-sim-warnings was given.
4761 if test "${enable_sim_warnings+set}" = set; then :
4762 enableval
=$enable_sim_warnings; case "${enableval}" in
4763 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4764 no
) sim_warnings
="-w";;
4765 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4767 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
4768 echo "Setting warning flags = $sim_warnings" 6>&1
4775 # Check whether --enable-sim-xor-endian was given.
4776 if test "${enable_sim_xor_endian+set}" = set; then :
4777 enableval
=$enable_sim_xor_endian; case "${enableval}" in
4778 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
4779 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
4780 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
4782 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
4783 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4792 # Check whether --with-pkgversion was given.
4793 if test "${with_pkgversion+set}" = set; then :
4794 withval
=$with_pkgversion; case "$withval" in
4795 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4797 *) PKGVERSION
="($withval) " ;;
4808 # Check whether --with-bugurl was given.
4809 if test "${with_bugurl+set}" = set; then :
4810 withval
=$with_bugurl; case "$withval" in
4811 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4814 *) BUGURL
="$withval"
4818 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4828 REPORT_BUGS_TO
="<$BUGURL>"
4829 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4836 cat >>confdefs.h
<<_ACEOF
4837 #define PKGVERSION "$PKGVERSION"
4841 cat >>confdefs.h
<<_ACEOF
4842 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4846 # Make sure we can run config.sub.
4847 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4848 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4851 $as_echo_n "checking build system type... " >&6; }
4852 if test "${ac_cv_build+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 ac_build_alias
=$build_alias
4856 test "x$ac_build_alias" = x
&&
4857 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4858 test "x$ac_build_alias" = x
&&
4859 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4860 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4861 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4865 $as_echo "$ac_cv_build" >&6; }
4866 case $ac_cv_build in
4868 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4871 ac_save_IFS
=$IFS; IFS
='-'
4877 # Remember, the first character of IFS is used to create $*,
4878 # except with old shells:
4881 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4885 $as_echo_n "checking host system type... " >&6; }
4886 if test "${ac_cv_host+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 if test "x$host_alias" = x
; then
4890 ac_cv_host
=$ac_cv_build
4892 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4893 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4898 $as_echo "$ac_cv_host" >&6; }
4901 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4904 ac_save_IFS
=$IFS; IFS
='-'
4910 # Remember, the first character of IFS is used to create $*,
4911 # except with old shells:
4914 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4918 $as_echo_n "checking target system type... " >&6; }
4919 if test "${ac_cv_target+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 if test "x$target_alias" = x
; then
4923 ac_cv_target
=$ac_cv_host
4925 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4926 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4931 $as_echo "$ac_cv_target" >&6; }
4932 case $ac_cv_target in
4934 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4936 target
=$ac_cv_target
4937 ac_save_IFS
=$IFS; IFS
='-'
4943 # Remember, the first character of IFS is used to create $*,
4944 # except with old shells:
4947 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4950 # The aliases save the names the user supplied, while $host etc.
4951 # will get canonicalized.
4952 test -n "$target_alias" &&
4953 test "$program_prefix$program_suffix$program_transform_name" = \
4955 program_prefix
=${target_alias}-
4957 test "$program_prefix" != NONE
&&
4958 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4959 # Use a double $ so make ignores it.
4960 test "$program_suffix" != NONE
&&
4961 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4962 # Double any \ or $.
4963 # By default was `s,x,x', remove it if useless.
4964 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4965 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4968 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4969 # using the same condition.
4971 # See if the user specified whether he wants zlib support or not.
4973 # Check whether --with-zlib was given.
4974 if test "${with_zlib+set}" = set; then :
4981 if test "$with_zlib" != "no"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4983 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4984 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 ac_func_search_save_LIBS
=$LIBS
4988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4991 /* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
4997 char zlibVersion ();
5001 return zlibVersion ();
5006 for ac_lib
in '' z
; do
5007 if test -z "$ac_lib"; then
5008 ac_res
="none required"
5011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5013 if ac_fn_c_try_link
"$LINENO"; then :
5014 ac_cv_search_zlibVersion
=$ac_res
5016 rm -f core conftest.err conftest.
$ac_objext \
5018 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5022 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5025 ac_cv_search_zlibVersion
=no
5028 LIBS
=$ac_func_search_save_LIBS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5031 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5032 ac_res
=$ac_cv_search_zlibVersion
5033 if test "$ac_res" != no
; then :
5034 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5035 for ac_header
in zlib.h
5037 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5038 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
5039 cat >>confdefs.h
<<_ACEOF
5040 #define HAVE_ZLIB_H 1
5049 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
5050 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
5055 .
${srcdir}/..
/..
/bfd
/configure.
host
5060 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5065 ac_config_headers
="$ac_config_headers config.h:config.in"
5068 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5069 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
5071 cat >>confdefs.h
<<_ACEOF
5072 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5076 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5081 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5082 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
5084 cat >>confdefs.h
<<_ACEOF
5085 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5089 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5092 case " $LIBOBJS " in
5093 *" fileblocks.$ac_objext "* ) ;;
5094 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5101 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5102 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5104 cat >>confdefs.h
<<_ACEOF
5105 #define HAVE_STRUCT_STAT_ST_RDEV 1
5109 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5115 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5116 if test "${ac_cv_struct_tm+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #include <sys/types.h>
5128 int *p = &tm.tm_sec;
5134 if ac_fn_c_try_compile
"$LINENO"; then :
5135 ac_cv_struct_tm
=time.h
5137 ac_cv_struct_tm
=sys
/time.h
5139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5142 $as_echo "$ac_cv_struct_tm" >&6; }
5143 if test $ac_cv_struct_tm = sys
/time.h
; then
5145 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5149 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5150 #include <$ac_cv_struct_tm>
5153 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
5155 cat >>confdefs.h
<<_ACEOF
5156 #define HAVE_STRUCT_TM_TM_ZONE 1
5162 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5164 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5167 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5169 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
5175 cat >>confdefs.h
<<_ACEOF
5176 #define HAVE_DECL_TZNAME $ac_have_decl
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5180 $as_echo_n "checking for tzname... " >&6; }
5181 if test "${ac_cv_var_tzname+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 #if !HAVE_DECL_TZNAME
5188 extern char *tzname[];
5194 return tzname[0][0];
5199 if ac_fn_c_try_link
"$LINENO"; then :
5200 ac_cv_var_tzname
=yes
5204 rm -f core conftest.err conftest.
$ac_objext \
5205 conftest
$ac_exeext conftest.
$ac_ext
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5208 $as_echo "$ac_cv_var_tzname" >&6; }
5209 if test $ac_cv_var_tzname = yes; then
5211 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5218 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5219 if test "${ac_cv_type_uid_t+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <sys/types.h>
5227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228 $EGREP "uid_t" >/dev
/null
2>&1; then :
5229 ac_cv_type_uid_t
=yes
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5237 $as_echo "$ac_cv_type_uid_t" >&6; }
5238 if test $ac_cv_type_uid_t = no
; then
5240 $as_echo "#define uid_t int" >>confdefs.h
5243 $as_echo "#define gid_t int" >>confdefs.h
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5248 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5249 if test "${ac_cv_type_getgroups+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 if test "$cross_compiling" = yes; then :
5253 ac_cv_type_getgroups
=cross
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 /* Thanks to Mike Rendell for this test. */
5258 $ac_includes_default
5261 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5268 union { gid_t gval; long int lval; } val;
5271 for (i = 0; i < NGID; i++)
5272 gidset[i] = val.gval;
5273 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5275 /* Exit non-zero if getgroups seems to require an array of ints. This
5276 happens when gid_t is short int but getgroups modifies an array
5278 return n > 0 && gidset[n] != val.gval;
5281 if ac_fn_c_try_run
"$LINENO"; then :
5282 ac_cv_type_getgroups
=gid_t
5284 ac_cv_type_getgroups
=int
5286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5287 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5290 if test $ac_cv_type_getgroups = cross
; then
5291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
5298 ac_cv_type_getgroups
=gid_t
5300 ac_cv_type_getgroups
=int
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5307 $as_echo "$ac_cv_type_getgroups" >&6; }
5309 cat >>confdefs.h
<<_ACEOF
5310 #define GETGROUPS_T $ac_cv_type_getgroups
5314 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5315 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5319 cat >>confdefs.h
<<_ACEOF
5325 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5326 if test "x$ac_cv_type_off_t" = x
""yes; then :
5330 cat >>confdefs.h
<<_ACEOF
5331 #define off_t long int
5336 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5337 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5341 cat >>confdefs.h
<<_ACEOF
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5348 $as_echo_n "checking return type of signal handlers... " >&6; }
5349 if test "${ac_cv_type_signal+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <sys/types.h>
5360 return *(signal (0, 0)) (0) == 1;
5365 if ac_fn_c_try_compile
"$LINENO"; then :
5366 ac_cv_type_signal
=int
5368 ac_cv_type_signal
=void
5370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5373 $as_echo "$ac_cv_type_signal" >&6; }
5375 cat >>confdefs.h
<<_ACEOF
5376 #define RETSIGTYPE $ac_cv_type_signal
5380 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5381 if test "x$ac_cv_type_size_t" = x
""yes; then :
5385 cat >>confdefs.h
<<_ACEOF
5386 #define size_t unsigned int
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5392 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5393 if test "${ac_cv_type_uid_t+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "uid_t" >/dev
/null
2>&1; then :
5403 ac_cv_type_uid_t
=yes
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5411 $as_echo "$ac_cv_type_uid_t" >&6; }
5412 if test $ac_cv_type_uid_t = no
; then
5414 $as_echo "#define uid_t int" >>confdefs.h
5417 $as_echo "#define gid_t int" >>confdefs.h
5422 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
5424 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5425 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5426 eval as_val
=\$
$as_ac_var
5427 if test "x$as_val" = x
""yes; then :
5428 cat >>confdefs.h
<<_ACEOF
5429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5436 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
5438 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5440 eval as_val
=\$
$as_ac_Header
5441 if test "x$as_val" = x
""yes; then :
5442 cat >>confdefs.h
<<_ACEOF
5443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5452 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5454 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5456 $as_echo_n "(cached) " >&6
5458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <sys/types.h>
5472 if ac_fn_c_try_compile
"$LINENO"; then :
5473 eval "$as_ac_Header=yes"
5475 eval "$as_ac_Header=no"
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 eval ac_res
=\$
$as_ac_Header
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5481 $as_echo "$ac_res" >&6; }
5482 eval as_val
=\$
$as_ac_Header
5483 if test "x$as_val" = x
""yes; then :
5484 cat >>confdefs.h
<<_ACEOF
5485 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5488 ac_header_dirent
=$ac_hdr; break
5492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5493 if test $ac_header_dirent = dirent.h
; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5495 $as_echo_n "checking for library containing opendir... " >&6; }
5496 if test "${ac_cv_search_opendir+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 ac_func_search_save_LIBS
=$LIBS
5500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5503 /* Override any GCC internal prototype to avoid an error.
5504 Use char because int might match the return type of a GCC
5505 builtin and then its argument prototype would still apply. */
5518 for ac_lib
in '' dir
; do
5519 if test -z "$ac_lib"; then
5520 ac_res
="none required"
5523 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5525 if ac_fn_c_try_link
"$LINENO"; then :
5526 ac_cv_search_opendir
=$ac_res
5528 rm -f core conftest.err conftest.
$ac_objext \
5530 if test "${ac_cv_search_opendir+set}" = set; then :
5534 if test "${ac_cv_search_opendir+set}" = set; then :
5537 ac_cv_search_opendir
=no
5540 LIBS
=$ac_func_search_save_LIBS
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5543 $as_echo "$ac_cv_search_opendir" >&6; }
5544 ac_res
=$ac_cv_search_opendir
5545 if test "$ac_res" != no
; then :
5546 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5552 $as_echo_n "checking for library containing opendir... " >&6; }
5553 if test "${ac_cv_search_opendir+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 ac_func_search_save_LIBS
=$LIBS
5557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5560 /* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
5575 for ac_lib
in '' x
; do
5576 if test -z "$ac_lib"; then
5577 ac_res
="none required"
5580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5582 if ac_fn_c_try_link
"$LINENO"; then :
5583 ac_cv_search_opendir
=$ac_res
5585 rm -f core conftest.err conftest.
$ac_objext \
5587 if test "${ac_cv_search_opendir+set}" = set; then :
5591 if test "${ac_cv_search_opendir+set}" = set; then :
5594 ac_cv_search_opendir
=no
5597 LIBS
=$ac_func_search_save_LIBS
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5600 $as_echo "$ac_cv_search_opendir" >&6; }
5601 ac_res
=$ac_cv_search_opendir
5602 if test "$ac_res" != no
; then :
5603 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5612 $as_echo_n "checking for struct termios... " >&6; }
5613 if test "${ac_cv_termios_struct+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 #include <sys/termios.h>
5623 static struct termios x;
5633 if ac_fn_c_try_compile
"$LINENO"; then :
5634 ac_cv_termios_struct
=yes
5636 ac_cv_termios_struct
=no
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5642 $as_echo "$ac_cv_termios_struct" >&6; }
5643 if test $ac_cv_termios_struct = yes; then
5644 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5647 if test "$ac_cv_termios_struct" = "yes"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5649 $as_echo_n "checking for c_line field in struct termios... " >&6; }
5650 if test "${ac_cv_termios_cline+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <sys/types.h>
5656 #include <sys/termios.h>
5660 static struct termios x; x.c_line = 0;
5665 if ac_fn_c_try_compile
"$LINENO"; then :
5666 ac_cv_termios_cline
=yes
5668 ac_cv_termios_cline
=no
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5675 $as_echo "$ac_cv_termios_cline" >&6; }
5676 if test $ac_cv_termios_cline = yes; then
5677 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5680 ac_cv_termios_cline
=no
5683 if test "$ac_cv_termios_struct" != "yes"; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5685 $as_echo_n "checking for struct termio... " >&6; }
5686 if test "${ac_cv_termio_struct+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <sys/types.h>
5692 #include <sys/termio.h>
5696 static struct termio x;
5706 if ac_fn_c_try_compile
"$LINENO"; then :
5707 ac_cv_termio_struct
=yes
5709 ac_cv_termio_struct
=no
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5715 $as_echo "$ac_cv_termio_struct" >&6; }
5716 if test $ac_cv_termio_struct = yes; then
5717 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5720 ac_cv_termio_struct
=no
5723 if test "$ac_cv_termio_struct" = "yes"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
5725 $as_echo_n "checking for c_line field in struct termio... " >&6; }
5726 if test "${ac_cv_termio_cline+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 #include <sys/termio.h>
5736 static struct termio x; x.c_line = 0;
5741 if ac_fn_c_try_compile
"$LINENO"; then :
5742 ac_cv_termio_cline
=yes
5744 ac_cv_termio_cline
=no
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
5751 $as_echo "$ac_cv_termio_cline" >&6; }
5752 if test $ac_cv_termio_cline = yes; then
5753 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
5756 ac_cv_termio_cline
=no
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
5760 $as_echo_n "checking for struct statfs... " >&6; }
5761 if test "${ac_cv_struct_statfs+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5767 #ifdef HAVE_SYS_PARAM_H
5768 #include <sys/param.h>
5770 #ifdef HAVE_SYS_MOUNT_H
5771 #include <sys/mount.h>
5773 #ifdef HAVE_SYS_VFS_H
5774 #include <sys/vfs.h>
5776 #ifdef HAVE_SYS_STATFS_H
5777 #include <sys/statfs.h>
5782 static struct statfs s;
5787 if ac_fn_c_try_compile
"$LINENO"; then :
5788 ac_cv_struct_statfs
=yes
5790 ac_cv_struct_statfs
=no
5792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5796 $as_echo "$ac_cv_struct_statfs" >&6; }
5797 if test $ac_cv_struct_statfs = yes; then
5799 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5803 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5804 if test "x$ac_cv_type_long_long" = x
""yes; then :
5806 cat >>confdefs.h
<<_ACEOF
5807 #define HAVE_LONG_LONG 1
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5816 $as_echo_n "checking for /dev/zero... " >&6; }
5817 if test "${ac_cv_devzero+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5820 if test "$cross_compiling" = yes; then :
5823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5829 int fd = open ("/dev/zero", O_RDONLY);
5832 for (i = 0; i < sizeof (buf); i++)
5834 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5836 for (i = 0; i < sizeof (buf); i++)
5842 if ac_fn_c_try_run
"$LINENO"; then :
5847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5848 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5854 $as_echo "$ac_cv_devzero" >&6; }
5855 if test $ac_cv_devzero = yes; then
5856 sim_devzero
="-DHAVE_DEVZERO"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5862 $as_echo_n "checking for common simulator directory... " >&6; }
5863 if test -f "${srcdir}/../common/callback.c"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865 $as_echo "yes" >&6; }
5866 sim_callback
="callback.o targ-map.o"
5867 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5876 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5877 if test -f "${srcdir}/../common/sim-fpu.c"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5879 $as_echo "yes" >&6; }
5880 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5889 # Since we run commands on the build system, we have to create a
5890 # separate config header for the build system if build != host.
5891 if test x
$host = x
$build; then
5892 ac_config_commands
="$ac_config_commands build-config.h"
5900 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5901 *) realsrcdir
=..
/${srcdir};;
5903 saved_CFLAGS
="${CFLAGS}"
5904 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5905 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
5906 ${realsrcdir}/configure \
5907 --enable-languages=${enable_languages-all} \
5908 --target=$target_alias --host=$build_alias --build=$build_alias
5909 CFLAGS
="${saved_CFLAGS}"
5910 mv config.h ..
/build-config.h
5923 if test -n "$ac_tool_prefix"; then
5924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5925 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$RANLIB"; then
5932 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir
=.
5939 for ac_exec_ext
in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 RANLIB
=$ac_cv_prog_RANLIB
5952 if test -n "$RANLIB"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5954 $as_echo "$RANLIB" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5962 if test -z "$ac_cv_prog_RANLIB"; then
5963 ac_ct_RANLIB
=$RANLIB
5964 # Extract the first word of "ranlib", so it can be a program name with args.
5965 set dummy ranlib
; ac_word
=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5971 if test -n "$ac_ct_RANLIB"; then
5972 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir
=.
5979 for ac_exec_ext
in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5992 if test -n "$ac_ct_RANLIB"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5994 $as_echo "$ac_ct_RANLIB" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6000 if test "x$ac_ct_RANLIB" = x
; then
6003 case $cross_compiling:$ac_tool_warned in
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned
=yes ;;
6009 RANLIB
=$ac_ct_RANLIB
6012 RANLIB
="$ac_cv_prog_RANLIB"
6060 ac_config_files
="$ac_config_files Makefile"
6062 ac_config_commands
="$ac_config_commands default"
6064 cat >confcache
<<\_ACEOF
6065 # This file is a shell script that caches the results of configure
6066 # tests run on this system so they can be shared between configure
6067 # scripts and configure runs, see configure's option --config-cache.
6068 # It is not useful on other systems. If it contains results you don't
6069 # want to keep, you may remove or edit it.
6071 # config.status only pays attention to the cache file if you give it
6072 # the --recheck option to rerun configure.
6074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6080 # The following way of writing the cache mishandles newlines in values,
6081 # but we know of no workaround that is simple, portable, and efficient.
6082 # So, we kill variables containing newlines.
6083 # Ultrix sh set writes to stderr and can't be redirected directly,
6084 # and sets the high bit in the cache file unless we assign to the vars.
6086 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6087 eval ac_val
=\$
$ac_var
6091 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6095 _ | IFS | as_nl
) ;; #(
6096 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6097 *) { eval $ac_var=; unset $ac_var;} ;;
6103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6104 *${as_nl}ac_space
=\
*)
6105 # `set' does not quote correctly, so add quotes: double-quote
6106 # substitution turns \\\\ into \\, and sed turns \\ into \.
6109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6112 # `set' quotes correctly as required by POSIX, so do not add quotes.
6113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6126 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6127 if test -w "$cache_file"; then
6128 test "x$cache_file" != "x/dev/null" &&
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6130 $as_echo "$as_me: updating cache $cache_file" >&6;}
6131 cat confcache
>$cache_file
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6134 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6139 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6140 # Let make expand exec_prefix.
6141 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6143 DEFS
=-DHAVE_CONFIG_H
6147 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6148 # 1. Remove the extension, and $U if already installed.
6149 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6150 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6152 # will be set to the directory where LIBOBJS objects are built.
6153 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6154 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6158 LTLIBOBJS
=$ac_ltlibobjs
6163 : ${CONFIG_STATUS=./config.status}
6165 ac_clean_files_save
=$ac_clean_files
6166 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6168 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6170 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6172 # Generated by $as_me.
6173 # Run this file to recreate the current configuration.
6174 # Compiler output produced by configure, useful for debugging
6175 # configure, is in config.log if it exists.
6181 SHELL=\${CONFIG_SHELL-$SHELL}
6184 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6185 ## -------------------- ##
6186 ## M4sh Initialization. ##
6187 ## -------------------- ##
6189 # Be more Bourne compatible
6190 DUALCASE
=1; export DUALCASE
# for MKS sh
6191 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6194 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6195 # is contrary to our usage. Disable this feature.
6196 alias -g '${1+"$@"}'='"$@"'
6197 setopt NO_GLOB_SUBST
6199 case `(set -o) 2>/dev/null` in #(
6211 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6212 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6215 # Prefer a ksh shell builtin over an external printf program on Solaris,
6216 # but without wasting forks for bash or zsh.
6217 if test -z "$BASH_VERSION$ZSH_VERSION" \
6218 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6219 as_echo='print
-r --'
6220 as_echo_n='print
-rn --'
6221 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6222 as_echo='printf %s
\n'
6223 as_echo_n='printf %s
'
6225 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6226 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6227 as_echo_n='/usr
/ucb
/echo -n'
6229 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6230 as_echo_n_body='eval
6234 expr "X$arg" : "X\\(.*\\)$as_nl";
6235 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6237 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6239 export as_echo_n_body
6240 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6243 as_echo='sh
-c $as_echo_body as_echo
'
6246 # The user is always right.
6247 if test "${PATH_SEPARATOR+set}" != set; then
6249 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6250 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6257 # We need space, tab and new line, in precisely that order. Quoting is
6258 # there to prevent editors from complaining about space-tab.
6259 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6260 # splitting by setting IFS to empty value.)
6263 # Find who we are. Look in the path if we contain no directory separator.
6265 *[\\/]* ) as_myself=$0 ;;
6266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6277 # We did not find ourselves, most probably we were run as `sh COMMAND'
6278 # in which case we are not to be found in the path.
6279 if test "x$as_myself" = x
; then
6282 if test ! -f "$as_myself"; then
6283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6287 # Unset variables that we do not need and which cause bugs (e.g. in
6288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6289 # suppresses any "Segmentation fault" message there. '((' could
6290 # trigger a bug in pdksh 5.2.14.
6291 for as_var
in BASH_ENV ENV MAIL MAILPATH
6292 do eval test x\
${$as_var+set} = xset \
6293 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6306 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6309 # as_fn_error ERROR [LINENO LOG_FD]
6310 # ---------------------------------
6311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6313 # script with status $?, using 1 if that was 0.
6316 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6318 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6321 $as_echo "$as_me: error: $1" >&2
6322 as_fn_exit
$as_status
6326 # as_fn_set_status STATUS
6327 # -----------------------
6328 # Set $? to STATUS, without forking.
6332 } # as_fn_set_status
6336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6346 # Portably unset VAR.
6349 { eval $1=; unset $1;}
6351 as_unset
=as_fn_unset
6352 # as_fn_append VAR VALUE
6353 # ----------------------
6354 # Append the text in VALUE to the end of the definition contained in VAR. Take
6355 # advantage of any shell optimizations that allow amortized linear growth over
6356 # repeated appends, instead of the typical quadratic growth present in naive
6358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6359 eval 'as_fn_append ()
6370 # as_fn_arith ARG...
6371 # ------------------
6372 # Perform arithmetic evaluation on the ARGs, and store the result in the
6373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6374 # must be portable across $(()) and expr.
6375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6376 eval 'as_fn_arith ()
6383 as_val
=`expr "$@" || test $? -eq 1`
6388 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6389 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6395 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6396 as_basename
=basename
6401 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6407 as_me
=`$as_basename -- "$0" ||
6408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6409 X"$0" : 'X\(//\)$' \| \
6410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6412 sed '/^.*\/\([^/][^/]*\)\/*$/{
6426 # Avoid depending upon Character Ranges.
6427 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6428 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6429 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6430 as_cr_digits
='0123456789'
6431 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6433 ECHO_C
= ECHO_N
= ECHO_T
=
6434 case `echo -n x` in #(((((
6436 case `echo 'xy\c'` in
6437 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6439 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6446 rm -f conf$$ conf$$.exe conf$$.
file
6447 if test -d conf$$.dir
; then
6448 rm -f conf$$.dir
/conf$$.
file
6451 mkdir conf$$.dir
2>/dev
/null
6453 if (echo >conf$$.
file) 2>/dev
/null
; then
6454 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6456 # ... but there are two gotchas:
6457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6459 # In both cases, we have to default to `cp -p'.
6460 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6462 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6470 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6471 rmdir conf$$.dir
2>/dev
/null
6476 # Create "$as_dir" as a directory, including parents if necessary.
6481 -*) as_dir
=.
/$as_dir;;
6483 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6487 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6488 *) as_qdir
=$as_dir;;
6490 as_dirs
="'$as_qdir' $as_dirs"
6491 as_dir
=`$as_dirname -- "$as_dir" ||
6492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6493 X"$as_dir" : 'X\(//\)[^/]' \| \
6494 X"$as_dir" : 'X\(//\)$' \| \
6495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6496 $as_echo X"$as_dir" |
6497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6514 test -d "$as_dir" && break
6516 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6517 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6521 if mkdir
-p .
2>/dev
/null
; then
6522 as_mkdir_p
='mkdir -p "$as_dir"'
6524 test -d .
/-p && rmdir .
/-p
6528 if test -x / >/dev
/null
2>&1; then
6531 if ls -dL / >/dev
/null
2>&1; then
6538 if test -d "$1"; then
6544 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6545 ???[sx]*):;;*)false;;esac;fi
6549 as_executable_p
=$as_test_x
6551 # Sed expression to map a string onto a valid CPP name.
6552 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6554 # Sed expression to map a string onto a valid variable name.
6555 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6559 ## ----------------------------------- ##
6560 ## Main body of $CONFIG_STATUS script. ##
6561 ## ----------------------------------- ##
6563 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6566 # Save the log message, to keep $0 and so on meaningful, and to
6567 # report actual input values of CONFIG_FILES etc. instead of their
6568 # values after options handling.
6570 This file was extended by $as_me, which was
6571 generated by GNU Autoconf 2.64. Invocation command line was
6573 CONFIG_FILES = $CONFIG_FILES
6574 CONFIG_HEADERS = $CONFIG_HEADERS
6575 CONFIG_LINKS = $CONFIG_LINKS
6576 CONFIG_COMMANDS = $CONFIG_COMMANDS
6579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6584 case $ac_config_files in *"
6585 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6588 case $ac_config_headers in *"
6589 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6594 # Files that config.status was made for.
6595 config_files="$ac_config_files"
6596 config_headers="$ac_config_headers"
6597 config_commands="$ac_config_commands"
6601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6603 \`$as_me' instantiates files and other configuration actions
6604 from templates according to the current configuration. Unless the files
6605 and actions are specified as TAGs, all are instantiated by default.
6607 Usage: $0 [OPTION]... [TAG]...
6609 -h, --help print this help, then exit
6610 -V, --version print version number and configuration settings, then exit
6611 -q, --quiet, --silent
6612 do not print progress messages
6613 -d, --debug don't remove temporary files
6614 --recheck update $as_me by reconfiguring in the same conditions
6615 --file=FILE[:TEMPLATE]
6616 instantiate the configuration file FILE
6617 --header=FILE[:TEMPLATE]
6618 instantiate the configuration header FILE
6620 Configuration files:
6623 Configuration headers:
6626 Configuration commands:
6629 Report bugs to the package provider."
6632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6635 configured by $0, generated by GNU Autoconf 2.64,
6636 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6638 Copyright (C) 2009 Free Software Foundation, Inc.
6639 This config.status script is free software; the Free Software Foundation
6640 gives unlimited permission to copy, distribute and modify it."
6645 test -n "\$AWK" || AWK=awk
6648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6649 # The default lists apply if the user does not specify any file.
6655 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6656 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6667 # Handling of the options.
6668 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6670 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6671 $as_echo "$ac_cs_version"; exit ;;
6672 --debug |
--debu |
--deb |
--de |
--d |
-d )
6674 --file |
--fil |
--fi |
--f )
6677 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6679 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6680 ac_need_defaults
=false
;;
6681 --header |
--heade |
--head |
--hea )
6684 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6686 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6687 ac_need_defaults
=false
;;
6689 # Conflict between --help and --header
6690 as_fn_error
"ambiguous option: \`$1'
6691 Try \`$0 --help' for more information.";;
6692 --help |
--hel |
-h )
6693 $as_echo "$ac_cs_usage"; exit ;;
6694 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6695 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6699 -*) as_fn_error
"unrecognized option: \`$1'
6700 Try \`$0 --help' for more information." ;;
6702 *) as_fn_append ac_config_targets
" $1"
6703 ac_need_defaults
=false
;;
6709 ac_configure_extra_args
=
6711 if $ac_cs_silent; then
6713 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6718 if \$ac_cs_recheck; then
6719 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6722 CONFIG_SHELL='$SHELL'
6728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6733 ## Running $as_me. ##
6739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6744 # Handling of arguments.
6745 for ac_config_target
in $ac_config_targets
6747 case $ac_config_target in
6748 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6749 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
6750 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6751 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6753 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6758 # If the user did not use the arguments to specify the items to instantiate,
6759 # then the envvar interface is used. Set only those that are not.
6760 # We use the long form for the default assignment because of an extremely
6761 # bizarre bug on SunOS 4.1.3.
6762 if $ac_need_defaults; then
6763 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6764 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6765 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6768 # Have a temporary directory for convenience. Make it in the build tree
6769 # simply because there is no reason against having it here, and in addition,
6770 # creating and moving files from /tmp can sometimes cause problems.
6771 # Hook for its removal unless debugging.
6772 # Note that there is a small window in which the directory will not be cleaned:
6773 # after its creation but before its name has been assigned to `$tmp'.
6777 trap 'exit_status=$?
6778 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6780 trap 'as_fn_exit 1' 1 2 13 15
6782 # Create a (secure) tmp directory for tmp files.
6785 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6786 test -n "$tmp" && test -d "$tmp"
6789 tmp
=.
/conf$$
-$RANDOM
6790 (umask 077 && mkdir
"$tmp")
6791 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6793 # Set up the scripts for CONFIG_FILES section.
6794 # No need to generate them if there are no CONFIG_FILES.
6795 # This happens for instance with `./config.status config.h'.
6796 if test -n "$CONFIG_FILES"; then
6799 ac_cr
=`echo X | tr X '\015'`
6800 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6801 # But we know of no other shell where ac_cr would be empty at this
6802 # point, so we can use a bashism as a fallback.
6803 if test "x$ac_cr" = x
; then
6804 eval ac_cr
=\$
\'\\r
\'
6806 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6807 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6813 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6818 echo "cat >conf$$subs.awk <<_ACEOF" &&
6819 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6822 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6823 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6825 for ac_last_try in false false false false false :; do
6826 . ./conf$$subs.sh ||
6827 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6829 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6830 if test $ac_delim_n = $ac_delim_num; then
6832 elif $ac_last_try; then
6833 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6835 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6845 s/^/S["/; s
/!.
*/"]=/
6855 s/\(.\{148\}\).*/\1/
6857 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6862 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6869 s/\(.\{148\}\).*/\1/
6871 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6875 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6880 ' <conf$$subs.awk | sed '
6885 ' >>$CONFIG_STATUS || ac_write_fail=1
6886 rm -f conf$$subs.awk
6887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6889 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6890 for (key in S) S_is_set[key] = 1
6896 nfields = split(line, field, "@
")
6898 len = length(field[1])
6899 for (i = 2; i < nfields; i++) {
6901 keylen = length(key)
6902 if (S_is_set[key]) {
6904 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6905 len += length(value) + length(field[++i])
6916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6917 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6918 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6921 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6922 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6927 # trailing colons and then remove the whole line if VPATH becomes empty
6928 # (actually we leave an empty line to preserve line numbers).
6929 if test "x
$srcdir" = x.; then
6930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6934 s/^\([^=]*=[ ]*\):*/\1/
6940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6941 fi # test -n "$CONFIG_FILES"
6943 # Set up the scripts for CONFIG_HEADERS section.
6944 # No need to generate them if there are no CONFIG_HEADERS.
6945 # This happens for instance with `./config.status Makefile'.
6946 if test -n "$CONFIG_HEADERS"; then
6947 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6951 # Transform confdefs.h into an awk script `defines.awk', embedded as
6952 # here-document in config.status, that substitutes the proper values into
6953 # config.h.in to produce config.h.
6955 # Create a delimiter string that does not exist in confdefs.h, to ease
6956 # handling of long lines.
6958 for ac_last_try in false false :; do
6959 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6960 if test -z "$ac_t"; then
6962 elif $ac_last_try; then
6963 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6965 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6969 # For the awk script, D is an array of macro values keyed by name,
6970 # likewise P contains macro parameters if any. Preserve backslash
6971 # newline sequences.
6973 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6975 s/.\{148\}/&'"$ac_delim"'/g
6978 s/^[ ]*#[ ]*define[ ][ ]*/ /
6985 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6987 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6992 D["\
1"]=" \
3\\\\\\n
"\\/p
6994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6999 s/.\{148\}/&'"$ac_delim"'/g
7004 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7007 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7009 ' <confdefs.h | sed '
7010 s/'"$ac_delim"'/"\\\
7011 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7014 for (key in D) D_is_set[key] = 1
7017 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7019 split(line, arg, " ")
7020 if (arg[1] == "#") {
7024 defundef
= substr
(arg
[1], 2)
7027 split(mac1
, mac2
, "(") #)
7029 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7030 if (D_is_set
[macro
]) {
7031 # Preserve the white space surrounding the "#".
7032 print prefix
"define", macro P
[macro
] D
[macro
]
7035 # Replace #undef with comments. This is necessary, for example,
7036 # in the case of _POSIX_SOURCE, which is predefined and required
7037 # on some systems where configure will not decide to define it.
7038 if (defundef
== "undef") {
7039 print
"/*", prefix defundef
, macro
, "*/"
7047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7048 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7049 fi # test -n "$CONFIG_HEADERS"
7052 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7057 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7059 case $ac_mode$ac_tag in
7061 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7062 :[FH
]-) ac_tag
=-:-;;
7063 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7080 -) ac_f
="$tmp/stdin";;
7081 *) # Look for the file first in the build tree, then in the source tree
7082 # (if the path is not absolute). The absolute path cannot be DOS-style,
7083 # because $ac_f cannot contain `:'.
7087 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7089 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7091 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7092 as_fn_append ac_file_inputs
" '$ac_f'"
7095 # Let's still pretend it is `configure' which instantiates (i.e., don't
7096 # use $as_me), people would be surprised to read:
7097 # /* config.h. Generated by config.status. */
7098 configure_input
='Generated from '`
7099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7101 if test x
"$ac_file" != x-
; then
7102 configure_input
="$ac_file. $configure_input"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7104 $as_echo "$as_me: creating $ac_file" >&6;}
7106 # Neutralize special characters interpreted by sed in replacement strings.
7107 case $configure_input in #(
7108 *\
&* |
*\|
* |
*\\* )
7109 ac_sed_conf_input
=`$as_echo "$configure_input" |
7110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7111 *) ac_sed_conf_input
=$configure_input;;
7115 *:-:* |
*:-) cat >"$tmp/stdin" \
7116 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7121 ac_dir
=`$as_dirname -- "$ac_file" ||
7122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7123 X"$ac_file" : 'X\(//\)[^/]' \| \
7124 X"$ac_file" : 'X\(//\)$' \| \
7125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7126 $as_echo X"$ac_file" |
7127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7144 as_dir
="$ac_dir"; as_fn_mkdir_p
7148 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7150 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7151 # A ".." for each directory in $ac_dir_suffix.
7152 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7153 case $ac_top_builddir_sub in
7154 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7155 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7158 ac_abs_top_builddir
=$ac_pwd
7159 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7160 # for backward compatibility:
7161 ac_top_builddir
=$ac_top_build_prefix
7164 .
) # We are building in place.
7166 ac_top_srcdir
=$ac_top_builddir_sub
7167 ac_abs_top_srcdir
=$ac_pwd ;;
7168 [\\/]* | ?
:[\\/]* ) # Absolute name.
7169 ac_srcdir
=$srcdir$ac_dir_suffix;
7170 ac_top_srcdir
=$srcdir
7171 ac_abs_top_srcdir
=$srcdir ;;
7173 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7174 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7175 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7177 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7187 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7188 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7193 # If the template does not know about datarootdir, expand it.
7194 # FIXME: This hack should be removed a few years after 2.60.
7195 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7206 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7207 *datarootdir
*) ac_datarootdir_seen
=yes;;
7208 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7210 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7213 ac_datarootdir_hack='
7214 s&@datadir@&$datadir&g
7215 s&@docdir@&$docdir&g
7216 s&@infodir@&$infodir&g
7217 s&@localedir@&$localedir&g
7218 s&@mandir@&$mandir&g
7219 s&\\\${datarootdir}&$datarootdir&g' ;;
7223 # Neutralize VPATH when `$srcdir' = `.'.
7224 # Shell code in configure.ac might set extrasub.
7225 # FIXME: do we really want to maintain this feature?
7226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7227 ac_sed_extra="$ac_vpsub
7230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7232 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7233 s|@configure_input@|
$ac_sed_conf_input|
;t t
7234 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7235 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7236 s
&@srcdir@
&$ac_srcdir&;t t
7237 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7238 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7239 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7240 s
&@builddir@
&$ac_builddir&;t t
7241 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7242 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7243 s
&@INSTALL@
&$ac_INSTALL&;t t
7244 $ac_datarootdir_hack
7246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7247 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7249 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7253 which seems to be undefined. Please make sure it is defined." >&5
7254 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7255 which seems to be undefined. Please make sure it is defined." >&2;}
7259 -) cat "$tmp/out" && rm -f "$tmp/out";;
7260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7262 || as_fn_error "could not create $ac_file" "$LINENO" 5
7268 if test x"$ac_file" != x-; then
7270 $as_echo "/* $configure_input */" \
7271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7272 } >"$tmp/config.h" \
7273 || as_fn_error "could not create $ac_file" "$LINENO" 5
7274 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7276 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7279 mv "$tmp/config.h" "$ac_file" \
7280 || as_fn_error "could not create $ac_file" "$LINENO" 5
7283 $as_echo "/* $configure_input */" \
7284 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7285 || as_fn_error "could not create -" "$LINENO" 5
7289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7290 $as_echo "$as_me: executing $ac_file commands" >&6;}
7295 case $ac_file$ac_mode in
7296 "build-config.h":C) cp config.h build-config.h ;;
7297 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7305 ac_clean_files=$ac_clean_files_save
7307 test $ac_write_fail = 0 ||
7308 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7311 # configure is writing to config.log, and then calls config.status.
7312 # config.status does its own redirection, appending to config.log.
7313 # Unfortunately, on DOS this fails, as config.log is still kept open
7314 # by configure, so config.status won't be able to
write to it
; its
7315 # output is simply discarded. So we exec the FD to /dev/null,
7316 # effectively closing config.log, so it can be properly (re)opened and
7317 # appended to by config.status. When coming back to configure, we
7318 # need to make the FD available again.
7319 if test "$no_create" != yes; then
7321 ac_config_status_args
=
7322 test "$silent" = yes &&
7323 ac_config_status_args
="$ac_config_status_args --quiet"
7325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7328 # would make configure fail if this is the last instruction.
7329 $ac_cs_success || as_fn_exit $?
7331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}