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
698 program_transform_name
732 enable_option_checking
739 enable_sim_decode_mechanism
740 enable_sim_default_model
747 enable_sim_hostbitsize
748 enable_sim_hostendian
754 enable_sim_model_issue
759 enable_sim_reserved_bits
767 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
1440 Some influential environment variables
:
1441 CC C compiler
command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1444 nonstandard directory
<lib dir
>
1445 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1446 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1447 you have headers
in a nonstandard directory
<include dir
>
1450 Use these variables to override the choices made by
`configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1483 .) # We are building in place.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1517 generated by GNU Autoconf 2.64
1519 Copyright (C) 2009 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1540 *) ac_try_echo
=$ac_try;;
1542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1546 if test -s conftest.err
; then
1547 grep -v '^ *+' conftest.err
>conftest.er1
1548 cat conftest.er1
>&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.
$ac_objext; then :
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.
$ac_ext >&5
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1566 } # ac_fn_c_try_compile
1568 # ac_fn_c_try_run LINENO
1569 # ----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1571 # that executables *can* be run.
1574 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1575 if { { ac_try
="$ac_link"
1577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>&5
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1586 { { case "(($ac_try" in
1587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1588 *) ac_try_echo
=$ac_try;;
1590 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_try") 2>&5
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; }; }; then :
1598 $as_echo "$as_me: program exited with status $ac_status" >&5
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.
$ac_ext >&5
1602 ac_retval
=$ac_status
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1616 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1664 if ac_fn_c_try_compile "$LINENO"; then :
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 } # ac_fn_c_check_header_compile
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1688 *) ac_try_echo
=$ac_try;;
1690 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1694 if test -s conftest.err
; then
1695 grep -v '^ *+' conftest.err
>conftest.er1
1696 cat conftest.er1
>&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest
$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 $as_test_x conftest
$ac_exeext
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.
$ac_ext >&5
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1722 } # ac_fn_c_try_link
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1729 ac_fn_c_check_header_mongrel
()
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1750 if ac_fn_c_try_compile
"$LINENO"; then :
1751 ac_header_compiler
=yes
1753 ac_header_compiler
=no
1755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1766 if ac_fn_c_try_cpp
"$LINENO"; then :
1767 ac_header_preproc
=yes
1769 ac_header_preproc
=no
1771 rm -f conftest.err conftest.
$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 $as_echo_n "(cached) " >&6
1801 eval "$3=\$ac_header_compiler"
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1812 # ----------------------------------------------------
1813 # Tries to find if the field MEMBER exists in type AGGR, after including
1814 # INCLUDES, setting cache variable VAR accordingly.
1815 ac_fn_c_check_member
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1819 $as_echo_n "checking for $2.$3... " >&6; }
1820 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1836 if ac_fn_c_try_compile
"$LINENO"; then :
1839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1846 if (sizeof ac_aggr.$3)
1852 if ac_fn_c_try_compile
"$LINENO"; then :
1857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1866 } # ac_fn_c_check_member
1868 # ac_fn_c_check_decl LINENO SYMBOL VAR
1869 # ------------------------------------
1870 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1871 ac_fn_c_check_decl
()
1873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1875 $as_echo_n "checking whether $2 is declared... " >&6; }
1876 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1893 if ac_fn_c_try_compile
"$LINENO"; then :
1898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1905 } # ac_fn_c_check_decl
1907 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1908 # -------------------------------------------
1909 # Tests whether TYPE exists after having included INCLUDES, setting cache
1910 # variable VAR accordingly.
1911 ac_fn_c_check_type
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1932 if ac_fn_c_try_compile
"$LINENO"; then :
1933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1945 if ac_fn_c_try_compile
"$LINENO"; then :
1950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1959 } # ac_fn_c_check_type
1961 # ac_fn_c_check_func LINENO FUNC VAR
1962 # ----------------------------------
1963 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1964 ac_fn_c_check_func
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1976 #define $2 innocuous_$2
1978 /* System header to define __stub macros and hopefully few prototypes,
1979 which can conflict with char $2 (); below.
1980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1981 <limits.h> exists even on freestanding compilers. */
1984 # include <limits.h>
1986 # include <assert.h>
1991 /* Override any GCC internal prototype to avoid an error.
1992 Use char because int might match the return type of a GCC
1993 builtin and then its argument prototype would still apply. */
1998 /* The GNU C library defines this for functions which it implements
1999 to always fail with ENOSYS. Some functions are actually named
2000 something starting with __ and the normal name is an alias. */
2001 #if defined __stub_$2 || defined __stub___$2
2013 if ac_fn_c_try_link
"$LINENO"; then :
2018 rm -f core conftest.err conftest.
$ac_objext \
2019 conftest
$ac_exeext conftest.
$ac_ext
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2026 } # ac_fn_c_check_func
2027 cat >config.log
<<_ACEOF
2028 This file contains any messages produced by compilers while
2029 running configure, to aid debugging if configure makes a mistake.
2031 It was created by $as_me, which was
2032 generated by GNU Autoconf 2.64. Invocation command line was
2044 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2045 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2046 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2047 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2048 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2051 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2053 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2054 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2055 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2056 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2057 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2058 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2059 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir
=.
2068 $as_echo "PATH: $as_dir"
2084 # Keep a trace of the command line.
2085 # Strip out --no-create and --no-recursion so they do not pile up.
2086 # Strip out --silent because we don't want to record it for future runs.
2087 # Also quote any args containing shell meta-characters.
2088 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_must_keep_next
=false
2098 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2100 |
-silent |
--silent |
--silen |
--sile |
--sil)
2103 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2108 as_fn_append ac_configure_args1
" '$ac_arg'"
2109 if test $ac_must_keep_next = true
; then
2110 ac_must_keep_next
=false
# Got value, back to normal.
2113 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2114 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2115 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2116 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2117 case "$ac_configure_args0 " in
2118 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 -* ) ac_must_keep_next
=true
;;
2124 as_fn_append ac_configure_args
" '$ac_arg'"
2129 { ac_configure_args0
=; unset ac_configure_args0
;}
2130 { ac_configure_args1
=; unset ac_configure_args1
;}
2132 # When interrupted or exit'd, cleanup temporary files, and complete
2133 # config.log. We remove comments because anyway the quotes in there
2134 # would cause problems or look ugly.
2135 # WARNING: Use '\'' to represent an apostrophe within the trap.
2136 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2137 trap 'exit_status=$?
2138 # Save into config.log some information that might help in debugging.
2143 ## ---------------- ##
2144 ## Cache variables. ##
2145 ## ---------------- ##
2148 # The following way of writing the cache mishandles newlines in values,
2150 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2151 eval ac_val=\$$ac_var
2155 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2156 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 _ | IFS | as_nl) ;; #(
2160 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2161 *) { eval $ac_var=; unset $ac_var;} ;;
2166 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2167 *${as_nl}ac_space=\ *)
2169 "s/'\''/'\''\\\\'\'''\''/g;
2170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2181 ## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##
2186 for ac_var in $ac_subst_vars
2188 eval ac_val=\$$ac_var
2190 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 $as_echo "$ac_var='\''$ac_val'\''"
2196 if test -n "$ac_subst_files"; then
2198 ## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##
2203 for ac_var
in $ac_subst_files
2205 eval ac_val
=\$
$ac_var
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 $as_echo "$ac_var='\''$ac_val'\''"
2214 if test -s confdefs.h; then
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 for ac_signal
in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest
* confdefs.h
2240 $as_echo "/* confdefs.h */" > confdefs.h
2242 # Predefined preprocessor variables.
2244 cat >>confdefs.h
<<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 cat >>confdefs.h
<<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 cat >>confdefs.h
<<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 cat >>confdefs.h
<<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 cat >>confdefs.h
<<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 cat >>confdefs.h
<<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2273 if test -n "$CONFIG_SITE"; then
2274 ac_site_file1
=$CONFIG_SITE
2275 elif test "x$prefix" != xNONE
; then
2276 ac_site_file1
=$prefix/share
/config.site
2277 ac_site_file2
=$prefix/etc
/config.site
2279 ac_site_file1
=$ac_default_prefix/share
/config.site
2280 ac_site_file2
=$ac_default_prefix/etc
/config.site
2282 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2284 test "x$ac_site_file" = xNONE
&& continue
2285 if test -r "$ac_site_file"; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2287 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2288 sed 's/^/| /' "$ac_site_file" >&5
2293 if test -r "$cache_file"; then
2294 # Some versions of bash will fail to source /dev/null (special
2295 # files actually), so we avoid doing that.
2296 if test -f "$cache_file"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2298 $as_echo "$as_me: loading cache $cache_file" >&6;}
2300 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2301 *) .
"./$cache_file";;
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2306 $as_echo "$as_me: creating cache $cache_file" >&6;}
2310 # Check that the precious variables saved in the cache have kept the same
2312 ac_cache_corrupted
=false
2313 for ac_var
in $ac_precious_vars; do
2314 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2315 eval ac_new_set
=\
$ac_env_${ac_var}_set
2316 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2317 eval ac_new_val
=\
$ac_env_${ac_var}_value
2318 case $ac_old_set,$ac_new_set in
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2322 ac_cache_corrupted
=: ;;
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2325 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2326 ac_cache_corrupted
=: ;;
2329 if test "x$ac_old_val" != "x$ac_new_val"; then
2330 # differences in whitespace do not lead to failure.
2331 ac_old_val_w
=`echo x $ac_old_val`
2332 ac_new_val_w
=`echo x $ac_new_val`
2333 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2335 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2336 ac_cache_corrupted
=:
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2339 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2340 eval $ac_var=\
$ac_old_val
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2343 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2345 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2348 # Pass precious variables to config.status.
2349 if test "$ac_new_set" = set; then
2351 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2352 *) ac_arg
=$ac_var=$ac_new_val ;;
2354 case " $ac_configure_args " in
2355 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2356 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2360 if $ac_cache_corrupted; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2364 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2365 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2367 ## -------------------- ##
2368 ## Main body of script. ##
2369 ## -------------------- ##
2372 ac_cpp
='$CPP $CPPFLAGS'
2373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2383 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2384 for ac_t
in install-sh
install.sh shtool
; do
2385 if test -f "$ac_dir/$ac_t"; then
2387 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2392 if test -z "$ac_aux_dir"; then
2393 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2396 # These three variables are undocumented and unsupported,
2397 # and are intended to be withdrawn in a future Autoconf release.
2398 # They can cause serious problems if a builder's source tree is in a directory
2399 # whose full name contains unusual characters.
2400 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2401 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2402 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2405 # Find a good install program. We prefer a C program (faster),
2406 # so one script is as good as another. But avoid the broken or
2407 # incompatible versions:
2408 # SysV /etc/install, /usr/sbin/install
2409 # SunOS /usr/etc/install
2410 # IRIX /sbin/install
2412 # AmigaOS /C/install, which installs bootblocks on floppy discs
2413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2416 # OS/2's system install, which has a completely different semantic
2417 # ./install, which can be erroneously created by make from ./install.sh.
2418 # Reject install programs that cannot install multiple files.
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2420 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2421 if test -z "$INSTALL"; then
2422 if test "${ac_cv_path_install+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir
=.
2430 # Account for people who put trailing slashes in PATH elements.
2431 case $as_dir/ in #((
2432 .
/ | .
// |
/[cC
]/* | \
2433 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2434 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2437 # OSF1 and SCO ODT 3.0 have their own names for install.
2438 # Don't use installbsd from OSF since it installs stuff as root
2440 for ac_prog
in ginstall scoinst
install; do
2441 for ac_exec_ext
in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2443 if test $ac_prog = install &&
2444 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2445 # AIX install. It has an incompatible calling convention.
2447 elif test $ac_prog = install &&
2448 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2449 # program-specific install script used by HP pwplus--don't use.
2452 rm -rf conftest.one conftest.two conftest.dir
2453 echo one
> conftest.one
2454 echo two
> conftest.two
2456 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2457 test -s conftest.one
&& test -s conftest.two
&&
2458 test -s conftest.dir
/conftest.one
&&
2459 test -s conftest.dir
/conftest.two
2461 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2474 rm -rf conftest.one conftest.two conftest.dir
2477 if test "${ac_cv_path_install+set}" = set; then
2478 INSTALL
=$ac_cv_path_install
2480 # As a last resort, use the slow shell script. Don't cache a
2481 # value for INSTALL within a source directory, because that will
2482 # break other packages using the cache if that directory is
2483 # removed, or if the value is a relative name.
2484 INSTALL
=$ac_install_sh
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2488 $as_echo "$INSTALL" >&6; }
2490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2491 # It thinks the first close brace ends the variable substitution.
2492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2496 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2499 ac_cpp
='$CPP $CPPFLAGS'
2500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2505 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC
="$CC" # Let the user override the test.
2514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir
=.
2519 for ac_exec_ext
in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2542 if test -z "$ac_cv_prog_CC"; then
2544 # Extract the first word of "gcc", so it can be a program name with args.
2545 set dummy gcc
; ac_word
=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$ac_ct_CC"; then
2552 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir
=.
2559 for ac_exec_ext
in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_ac_ct_CC
="gcc"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2572 if test -n "$ac_ct_CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2574 $as_echo "$ac_ct_CC" >&6; }
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2580 if test "x$ac_ct_CC" = x
; then
2583 case $cross_compiling:$ac_tool_warned in
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2587 ac_tool_warned
=yes ;;
2595 if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2598 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC
="$CC" # Let the user override the test.
2607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir
=.
2612 for ac_exec_ext
in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2636 if test -z "$CC"; then
2637 # Extract the first word of "cc", so it can be a program name with args.
2638 set dummy cc
; ac_word
=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC
="$CC" # Let the user override the test.
2648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir
=.
2653 for ac_exec_ext
in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2656 ac_prog_rejected
=yes
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test $ac_prog_rejected = yes; then
2668 # We found a bogon in the path, so make sure we never use it.
2669 set dummy
$ac_cv_prog_CC
2671 if test $# != 0; then
2672 # We chose a different compiler from the bogus one.
2673 # However, it has the same basename, so the bogon will be chosen
2674 # first if we set CC to just the basename; use the full file name.
2676 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 for ac_prog
in cl.exe
2696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2697 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_CC+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC
="$CC" # Let the user override the test.
2706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir
=.
2711 for ac_exec_ext
in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2733 test -n "$CC" && break
2736 if test -z "$CC"; then
2738 for ac_prog
in cl.exe
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy
$ac_prog; ac_word
=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$ac_ct_CC"; then
2748 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_ac_ct_CC
="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2768 if test -n "$ac_ct_CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2770 $as_echo "$ac_ct_CC" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2777 test -n "$ac_ct_CC" && break
2780 if test "x$ac_ct_CC" = x
; then
2783 case $cross_compiling:$ac_tool_warned in
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2787 ac_tool_warned
=yes ;;
2796 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798 as_fn_error
"no acceptable C compiler found in \$PATH
2799 See \`config.log' for more details." "$LINENO" 5; }
2801 # Provide some information about the compiler.
2802 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2805 for ac_option
in --version -v -V -qversion; do
2806 { { ac_try
="$ac_compiler $ac_option >&5"
2808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2815 if test -s conftest.err; then
2817 ... rest of stderr output deleted ...
2818 10q' conftest.err >conftest.er1
2819 cat conftest.er1 >&5
2820 rm -f conftest.er1 conftest.err
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2837 ac_clean_files_save=$ac_clean_files
2838 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2839 # Try to create an executable without -o first, disregard a.out.
2840 # It will help us diagnose broken compilers, and finding out an intuition
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2843 $as_echo_n "checking for C compiler default output file name... " >&6; }
2844 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2846 # The possible output files:
2847 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2850 for ac_file in $ac_files
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2859 if { { ac_try="$ac_link_default"
2861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2862 *) ac_try_echo
=$ac_try;;
2864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865 $as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_link_default") 2>&5
2868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869 test $ac_status = 0; }; then :
2870 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2872 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2873 # so that the user can short-circuit this test for compilers unknown to
2875 for ac_file
in $ac_files ''
2877 test -f "$ac_file" ||
continue
2879 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2882 # We found the default executable, but exeext='' is most
2886 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2888 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 # We set ac_cv_exeext here because the later test for it is not
2891 # safe: cross compilers may not add the suffix if given an `-o'
2892 # argument, so we may need to know it at that point already.
2893 # Even if this section looks crufty: it has the advantage of
2900 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2906 $as_echo "$ac_file" >&6; }
2907 if test -z "$ac_file"; then :
2908 $as_echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.
$ac_ext >&5
2911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913 { as_fn_set_status
77
2914 as_fn_error
"C compiler cannot create executables
2915 See \`config.log' for more details." "$LINENO" 5; }; }
2917 ac_exeext
=$ac_cv_exeext
2919 # Check that the compiler produces executables we can run. If not, either
2920 # the compiler is broken, or we cross compile.
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2922 $as_echo_n "checking whether the C compiler works... " >&6; }
2923 # If not cross compiling, check that we can run a simple program.
2924 if test "$cross_compiling" != yes; then
2925 if { ac_try
='./$ac_file'
2926 { { case "(($ac_try" in
2927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_try") 2>&5
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; }; then
2938 if test "$cross_compiling" = maybe; then
2941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error "cannot run C compiled programs.
2944 If you meant to cross compile
, use \
`--host'.
2945 See \`config.log
' for more details." "$LINENO" 5; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2950 $as_echo "yes" >&6; }
2952 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2957 $as_echo_n "checking whether we are cross compiling... " >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2959 $as_echo "$cross_compiling" >&6; }
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2978 for ac_file
in conftest.exe conftest conftest.
*; do
2979 test -f "$ac_file" ||
continue
2981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2982 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details." "$LINENO" 5; }
2993 rm -f conftest
$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2997 rm -f conftest.
$ac_ext
2998 EXEEXT
=$ac_cv_exeext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if test "${ac_cv_objext+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try
="$ac_compile"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error "cannot compute suffix of object files
: cannot compile
3043 See \
`config.log' for more details." "$LINENO" 5; }
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3070 if ac_fn_c_try_compile "$LINENO"; then :
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if test "${ac_cv_prog_cc_g+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3108 if ac_fn_c_try_compile "$LINENO"; then :
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3123 if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3139 if ac_fn_c_try_compile "$LINENO"; then :
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3160 if test "$GCC" = yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3171 ac_cv_prog_cc_c89=no
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3177 #include <sys/types.h>
3178 #include <sys/stat.h>
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3193 s = g (p, va_arg (v,int));
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 CC="$ac_save_CC $ac_arg"
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_c89=$ac_arg
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3236 rm -f conftest.$ac_ext
3241 case "x$ac_cv_prog_cc_c89" in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244 $as_echo "none needed" >&6; } ;;
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247 $as_echo "unsupported" >&6; } ;;
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3253 if test "x$ac_cv_prog_cc_c89" != xno; then :
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264 # Put a plausible default for CC_FOR_BUILD in Makefile.
3265 if test "x$cross_compiling" = "xno"; then
3266 CC_FOR_BUILD='$(CC)'
3270 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3273 # If we haven't got the data from the intl directory,
3274 # assume NLS is disabled.
3283 if test -f ../../intl/config.intl; then
3284 . ../../intl/config.intl
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3287 $as_echo_n "checking whether NLS is requested... " >&6; }
3288 if test x"$USE_NLS" != xyes; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 $as_echo "yes" >&6; }
3295 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3299 $as_echo_n "checking for catalogs to be installed... " >&6; }
3300 # Look for .po and .gmo files in the source directory.
3303 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3304 # If there aren't any .gmo files the shell will give us the
3305 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3307 case "$cat" in *\**)
3310 # The quadruple backslash is collapsed to a double backslash
3311 # by the backticks, then collapsed again by the double quotes,
3312 # leaving us with one backslash in the sed expression (right
3313 # before the dot that mustn't act as a wildcard).
3314 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3315 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3316 # The user is allowed to set LINGUAS to a list of languages to
3317 # install catalogs for. If it's empty that means "all of them."
3318 if test "x$LINGUAS" = x; then
3319 CATALOGS="$CATALOGS $cat"
3320 XLINGUAS="$XLINGUAS $lang"
3322 case "$LINGUAS" in *$lang*)
3323 CATALOGS="$CATALOGS $cat"
3324 XLINGUAS="$XLINGUAS $lang"
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3331 $as_echo "$LINGUAS" >&6; }
3345 # Check whether --enable-sim-alignment was given.
3346 if test "${enable_sim_alignment+set}" = set; then :
3347 enableval=$enable_sim_alignment; case "${enableval}" in
3348 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
3349 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
3350 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
3351 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
3353 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
3354 echo "Setting alignment flags = $sim_alignment" 6>&1
3361 # Check whether --enable-sim-assert was given.
3362 if test "${enable_sim_assert+set}" = set; then :
3363 enableval=$enable_sim_assert; case "${enableval}" in
3364 yes) sim_assert="-DWITH_ASSERT=1";;
3365 no) sim_assert="-DWITH_ASSERT=0";;
3366 *) as_fn_error "\"--enable-sim-assert does not take a value\"" "$LINENO" 5; sim_assert="";;
3368 if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
3369 echo "Setting assert flags = $sim_assert" 6>&1
3376 # Check whether --enable-sim-bitsize was given.
3377 if test "${enable_sim_bitsize+set}" = set; then :
3378 enableval=$enable_sim_bitsize; case "${enableval}" in
3379 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3380 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3382 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3383 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3390 # Check whether --enable-sim-bswap was given.
3391 if test "${enable_sim_bswap+set}" = set; then :
3392 enableval=$enable_sim_bswap; case "${enableval}" in
3393 yes) sim_bswap="-DWITH_BSWAP=1";;
3394 no) sim_bswap="-DWITH_BSWAP=0";;
3395 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
3397 if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
3398 echo "Setting bswap flags = $sim_bswap" 6>&1
3405 # Check whether --enable-sim-cflags was given.
3406 if test "${enable_sim_cflags+set}" = set; then :
3407 enableval=$enable_sim_cflags; case "${enableval}" in
3408 yes) sim_cflags="-O2 -fomit-frame-pointer";;
3410 *) sim_cflags=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
3412 if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
3413 echo "Setting sim cflags = $sim_cflags" 6>&1
3420 # Check whether --enable-sim-config was given.
3421 if test "${enable_sim_config+set}" = set; then :
3422 enableval=$enable_sim_config; case "${enableval}" in
3423 yes|no) as_fn_error "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3424 *) if test -f "${srcdir}/${enableval}"; then
3425 sim_config="${enableval}";
3426 elif test -f "${srcdir}/${enableval}-config.h"; then
3427 sim_config="${enableval}-config.h"
3429 as_fn_error "\"Config file $enableval was not found\"" "$LINENO" 5;
3430 sim_config=std-config.h
3433 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3434 echo "Setting config flags = $sim_config" 6>&1
3437 sim_config="std-config.h"
3438 if test x"$silent" != x"yes"; then
3439 echo "Setting config flags = $sim_config" 6>&1
3444 # Check whether --enable-sim-decode-mechanism was given.
3445 if test "${enable_sim_decode_mechanism+set}" = set; then :
3446 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3447 yes|no) as_fn_error "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3448 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3449 *) as_fn_error "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3450 sim_decode_mechanism="switch";;
3452 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3453 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3456 sim_decode_mechanism=""
3457 if test x"$silent" != x"yes"; then
3458 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3463 # Check whether --enable-sim-default-model was given.
3464 if test "${enable_sim_default_model+set}" = set; then :
3465 enableval=$enable_sim_default_model; case "${enableval}" in
3466 yes|no) as_fn_error "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3467 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3469 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3470 echo "Setting default-model flags = $sim_default_model" 6>&1
3473 sim_default_model=""
3477 # Check whether --enable-sim-duplicate was given.
3478 if test "${enable_sim_duplicate+set}" = set; then :
3479 enableval=$enable_sim_duplicate; case "${enableval}" in
3482 *) as_fn_error "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3484 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3485 echo "Setting duplicate flags = $sim_dup" 6>&1
3489 if test x"$silent" != x"yes"; then
3490 echo "Setting duplicate flags = $sim_dup" 6>&1
3495 # Check whether --enable-sim-endian was given.
3496 if test "${enable_sim_endian+set}" = set; then :
3497 enableval=$enable_sim_endian; case "${enableval}" in
3498 yes) case "$target" in
3499 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3500 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3501 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3503 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3504 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3505 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3506 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3508 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3509 echo "Setting endian flags = $sim_endian" 6>&1
3516 # Check whether --enable-sim-env was given.
3517 if test "${enable_sim_env+set}" = set; then :
3518 enableval=$enable_sim_env; case "${enableval}" in
3519 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
3520 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
3521 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
3522 no) sim_env="-DWITH_ENVIRONMENT=0";;
3523 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-env\"" "$LINENO" 5; sim_env="";;
3525 if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
3526 echo "Setting env flags = $sim_env" 6>&1
3533 # Check whether --enable-sim-filter was given.
3534 if test "${enable_sim_filter+set}" = set; then :
3535 enableval=$enable_sim_filter; case "${enableval}" in
3536 yes) as_fn_error "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3538 *) sim_filter="-F $enableval";;
3540 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3541 echo "Setting filter flags = $sim_filter" 6>&1
3544 sim_filter="-F 32,f,o"
3545 if test x"$silent" != x"yes"; then
3546 echo "Setting filter flags = $sim_filter" 6>&1
3551 # Check whether --enable-sim-float was given.
3552 if test "${enable_sim_float+set}" = set; then :
3553 enableval=$enable_sim_float; case "${enableval}" in
3554 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3555 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3556 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3557 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3558 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3560 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3561 echo "Setting float flags = $sim_float" 6>&1
3566 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3567 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3575 $as_echo_n "checking if union semun defined... " >&6; }
3576 if test "${ac_cv_HAS_UNION_SEMUN+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3582 #include <sys/types.h>
3583 #include <sys/ipc.h>
3584 #include <sys/sem.h>
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_has_union_semun="yes"
3596 ac_cv_has_union_semun="no"
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3600 $as_echo "$ac_cv_has_union_semun" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3604 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3607 if test "$ac_cv_has_union_semun" = "yes"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3609 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3610 if test "${ac_cv_sysv_sem+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3614 if test "$cross_compiling" = yes; then :
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3620 #include <sys/types.h>
3621 #include <sys/ipc.h>
3622 #include <sys/sem.h>
3626 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3629 arg.val = 0; /* avoid implicit type cast to union */
3630 if (semctl(id, 0, IPC_RMID, arg) == -1)
3636 if ac_fn_c_try_run "$LINENO"; then :
3637 ac_cv_sysv_sem="yes"
3641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3642 conftest.$ac_objext conftest.beam conftest.$ac_ext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3648 $as_echo "$ac_cv_sysv_sem" >&6; }
3649 else # semun is not defined
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3651 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3652 if test "${ac_cv_sysv_sem+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3656 if test "$cross_compiling" = yes; then :
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3662 #include <sys/types.h>
3663 #include <sys/ipc.h>
3664 #include <sys/sem.h>
3667 struct semid_ds *buf;
3673 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3676 arg.val = 0; /* avoid implicit type cast to union */
3677 if (semctl(id, 0, IPC_RMID, arg) == -1)
3683 if ac_fn_c_try_run "$LINENO"; then :
3684 ac_cv_sysv_sem="yes"
3688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3689 conftest.$ac_objext conftest.beam conftest.$ac_ext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3695 $as_echo "$ac_cv_sysv_sem" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3699 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3700 if test "${ac_cv_sysv_shm+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3704 if test "$cross_compiling" = yes; then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3710 #include <sys/types.h>
3711 #include <sys/ipc.h>
3712 #include <sys/shm.h>
3714 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3717 if (shmctl(id, IPC_RMID, 0) == -1)
3723 if ac_fn_c_try_run "$LINENO"; then :
3724 ac_cv_sysv_shm="yes"
3728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3729 conftest.$ac_objext conftest.beam conftest.$ac_ext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3735 $as_echo "$ac_cv_sysv_shm" >&6; }
3737 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3738 sim_sysv_ipc_hw=",sem,shm";
3743 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3744 sim_hwflags="-DHAS_UNION_SEMUN"
3750 # Check whether --enable-sim-hardware was given.
3751 if test "${enable_sim_hardware+set}" = set; then :
3752 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}"
3753 case "${enableval}" in
3755 no) as_fn_error "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3756 ,*) hardware="${hardware}${enableval}";;
3757 *,) hardware="${enableval}${hardware}";;
3758 *) hardware="${enableval}"'';;
3760 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3761 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3762 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3763 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3766 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3767 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3768 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3769 if test x"$silent" != x"yes"; then
3770 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3774 # Check whether --enable-sim-hostbitsize was given.
3775 if test "${enable_sim_hostbitsize+set}" = set; then :
3776 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3777 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3778 *) as_fn_error "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3780 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3781 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3795 # On Suns, sometimes $CPP names a directory.
3796 if test -n "$CPP" && test -d "$CPP"; then
3799 if test -z "$CPP"; then
3800 if test "${ac_cv_prog_CPP+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3803 # Double quotes because CPP needs to be expanded
3804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3807 for ac_c_preproc_warn_flag in '' yes
3809 # Use a header file that comes with gcc, so configuring glibc
3810 # with a fresh cross-compiler works.
3811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3812 # <limits.h> exists even on freestanding compilers.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3818 # include <limits.h>
3820 # include <assert.h>
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3827 # Broken: fails on valid input.
3830 rm -f conftest.err conftest.$ac_ext
3832 # OK, works on sane cases. Now check whether nonexistent headers
3833 # can be detected and how.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3838 if ac_fn_c_try_cpp "$LINENO"; then :
3839 # Broken: success on invalid input.
3842 # Passes both tests.
3846 rm -f conftest.err conftest.$ac_ext
3849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3850 rm -f conftest.err conftest.
$ac_ext
3851 if $ac_preproc_ok; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3864 $as_echo "$CPP" >&6; }
3866 for ac_c_preproc_warn_flag
in '' yes
3868 # Use a header file that comes with gcc, so configuring glibc
3869 # with a fresh cross-compiler works.
3870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3871 # <limits.h> exists even on freestanding compilers.
3872 # On the NeXT, cc -E runs the code through the compiler's parser,
3873 # not just through cpp. "Syntax error" is here to catch this case.
3874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3877 # include <limits.h>
3879 # include <assert.h>
3883 if ac_fn_c_try_cpp
"$LINENO"; then :
3886 # Broken: fails on valid input.
3889 rm -f conftest.err conftest.
$ac_ext
3891 # OK, works on sane cases. Now check whether nonexistent headers
3892 # can be detected and how.
3893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895 #include <ac_nonexistent.h>
3897 if ac_fn_c_try_cpp
"$LINENO"; then :
3898 # Broken: success on invalid input.
3901 # Passes both tests.
3905 rm -f conftest.err conftest.
$ac_ext
3908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3909 rm -f conftest.err conftest.
$ac_ext
3910 if $ac_preproc_ok; then :
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3916 See \`config.log' for more details." "$LINENO" 5; }
3920 ac_cpp
='$CPP $CPPFLAGS'
3921 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3928 if test "${ac_cv_path_GREP+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -z "$GREP"; then
3932 ac_path_GREP_found
=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3935 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3938 test -z "$as_dir" && as_dir
=.
3939 for ac_prog
in grep ggrep
; do
3940 for ac_exec_ext
in '' $ac_executable_extensions; do
3941 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3942 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3943 # Check for GNU ac_path_GREP and select it if it is found.
3944 # Check for GNU $ac_path_GREP
3945 case `"$ac_path_GREP" --version 2>&1` in
3947 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3950 $as_echo_n 0123456789 >"conftest.in"
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo 'GREP' >> "conftest.nl"
3957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3958 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3959 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_GREP
="$ac_path_GREP"
3963 ac_path_GREP_max
=$ac_count
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3968 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3971 $ac_path_GREP_found && break 3
3976 if test -z "$ac_cv_path_GREP"; then
3977 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 ac_cv_path_GREP
=$GREP
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3985 $as_echo "$ac_cv_path_GREP" >&6; }
3986 GREP
="$ac_cv_path_GREP"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3990 $as_echo_n "checking for egrep... " >&6; }
3991 if test "${ac_cv_path_EGREP+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3995 then ac_cv_path_EGREP
="$GREP -E"
3997 if test -z "$EGREP"; then
3998 ac_path_EGREP_found
=false
3999 # Loop through the user's path and test for each of PROGNAME-LIST
4000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4001 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4004 test -z "$as_dir" && as_dir
=.
4005 for ac_prog
in egrep; do
4006 for ac_exec_ext
in '' $ac_executable_extensions; do
4007 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4008 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4009 # Check for GNU ac_path_EGREP and select it if it is found.
4010 # Check for GNU $ac_path_EGREP
4011 case `"$ac_path_EGREP" --version 2>&1` in
4013 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4016 $as_echo_n 0123456789 >"conftest.in"
4019 cat "conftest.in" "conftest.in" >"conftest.tmp"
4020 mv "conftest.tmp" "conftest.in"
4021 cp "conftest.in" "conftest.nl"
4022 $as_echo 'EGREP' >> "conftest.nl"
4023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4024 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4025 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4027 # Best one so far, save it but keep looking for a better one
4028 ac_cv_path_EGREP
="$ac_path_EGREP"
4029 ac_path_EGREP_max
=$ac_count
4031 # 10*(2^10) chars as input seems more than enough
4032 test $ac_count -gt 10 && break
4034 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4037 $ac_path_EGREP_found && break 3
4042 if test -z "$ac_cv_path_EGREP"; then
4043 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4046 ac_cv_path_EGREP
=$EGREP
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4052 $as_echo "$ac_cv_path_EGREP" >&6; }
4053 EGREP
="$ac_cv_path_EGREP"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4057 $as_echo_n "checking for ANSI C header files... " >&6; }
4058 if test "${ac_cv_header_stdc+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4076 if ac_fn_c_try_compile
"$LINENO"; then :
4077 ac_cv_header_stdc
=yes
4079 ac_cv_header_stdc
=no
4081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4083 if test $ac_cv_header_stdc = yes; then
4084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 $EGREP "memchr" >/dev
/null
2>&1; then :
4094 ac_cv_header_stdc
=no
4100 if test $ac_cv_header_stdc = yes; then
4101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108 $EGREP "free" >/dev
/null
2>&1; then :
4111 ac_cv_header_stdc
=no
4117 if test $ac_cv_header_stdc = yes; then
4118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4119 if test "$cross_compiling" = yes; then :
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 #if ((' ' & 0x0FF) == 0x020)
4127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130 # define ISLOWER(c) \
4131 (('a' <= (c) && (c) <= 'i') \
4132 || ('j' <= (c) && (c) <= 'r') \
4133 || ('s' <= (c) && (c) <= 'z'))
4134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i))
4144 || toupper (i) != TOUPPER (i))
4149 if ac_fn_c_try_run
"$LINENO"; then :
4152 ac_cv_header_stdc
=no
4154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4161 $as_echo "$ac_cv_header_stdc" >&6; }
4162 if test $ac_cv_header_stdc = yes; then
4164 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4169 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4170 inttypes.h stdint.h unistd.h
4172 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4173 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4175 eval as_val
=\$
$as_ac_Header
4176 if test "x$as_val" = x
""yes; then :
4177 cat >>confdefs.h
<<_ACEOF
4178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 # Check whether --enable-sim-hostendian was given.
4187 if test "${enable_sim_hostendian+set}" = set; then :
4188 enableval
=$enable_sim_hostendian; case "${enableval}" in
4189 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
4190 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4191 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
4192 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
4194 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
4195 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4199 if test "x$cross_compiling" = "xno"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4201 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4202 if test "${ac_cv_c_bigendian+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4205 ac_cv_c_bigendian
=unknown
4206 # See if we're dealing with a universal compiler.
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #ifndef __APPLE_CC__
4210 not a universal capable compiler
4215 if ac_fn_c_try_compile
"$LINENO"; then :
4217 # Check for potential -arch flags. It is not universal unless
4218 # there are at least two -arch flags with different values.
4221 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4222 if test -n "$ac_prev"; then
4224 i?
86 | x86_64 | ppc | ppc64
)
4225 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4228 ac_cv_c_bigendian
=universal
4234 elif test "x$ac_word" = "x-arch"; then
4239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4240 if test $ac_cv_c_bigendian = unknown
; then
4241 # See if sys/param.h defines the BYTE_ORDER macro.
4242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 #include <sys/types.h>
4245 #include <sys/param.h>
4250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4260 if ac_fn_c_try_compile
"$LINENO"; then :
4261 # It does; now see whether it defined to BIG_ENDIAN or not.
4262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <sys/types.h>
4265 #include <sys/param.h>
4270 #if BYTE_ORDER != BIG_ENDIAN
4278 if ac_fn_c_try_compile
"$LINENO"; then :
4279 ac_cv_c_bigendian
=yes
4281 ac_cv_c_bigendian
=no
4283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4287 if test $ac_cv_c_bigendian = unknown
; then
4288 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4296 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4304 if ac_fn_c_try_compile
"$LINENO"; then :
4305 # It does; now see whether it defined to _BIG_ENDIAN or not.
4306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4321 if ac_fn_c_try_compile
"$LINENO"; then :
4322 ac_cv_c_bigendian
=yes
4324 ac_cv_c_bigendian
=no
4326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4330 if test $ac_cv_c_bigendian = unknown
; then
4331 # Compile a test program.
4332 if test "$cross_compiling" = yes; then :
4333 # Try to guess by grepping values from an object file.
4334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 short int ascii_mm[] =
4337 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4338 short int ascii_ii[] =
4339 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4340 int use_ascii (int i) {
4341 return ascii_mm[i] + ascii_ii[i];
4343 short int ebcdic_ii[] =
4344 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4345 short int ebcdic_mm[] =
4346 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4347 int use_ebcdic (int i) {
4348 return ebcdic_mm[i] + ebcdic_ii[i];
4355 return use_ascii (foo) == use_ebcdic (foo);
4360 if ac_fn_c_try_compile
"$LINENO"; then :
4361 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4362 ac_cv_c_bigendian
=yes
4364 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4365 if test "$ac_cv_c_bigendian" = unknown
; then
4366 ac_cv_c_bigendian
=no
4368 # finding both strings is unlikely to happen, but who knows?
4369 ac_cv_c_bigendian
=unknown
4373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 $ac_includes_default
4382 /* Are we little or big endian? From Harbison&Steele. */
4386 char c[sizeof (long int)];
4389 return u.c[sizeof (long int) - 1] == 1;
4395 if ac_fn_c_try_run
"$LINENO"; then :
4396 ac_cv_c_bigendian
=no
4398 ac_cv_c_bigendian
=yes
4400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4407 $as_echo "$ac_cv_c_bigendian" >&6; }
4408 case $ac_cv_c_bigendian in #(
4410 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4416 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4420 as_fn_error
"unknown endianness
4421 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4424 if test $ac_cv_c_bigendian = yes; then
4425 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4427 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4430 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4435 # Check whether --enable-sim-icache was given.
4436 if test "${enable_sim_icache+set}" = set; then :
4437 enableval
=$enable_sim_icache; icache
="-R"
4438 case "${enableval}" in
4439 yes) icache
="1024"; sim_icache
="-I $icache";;
4440 no
) sim_icache
="-R";;
4443 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4445 define
) sim_icache
="${sim_icache}R";;
4446 semantic
) sim_icache
="${sim_icache}C";;
4447 insn
) sim_icache
="${sim_icache}S";;
4448 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
4449 *) as_fn_error
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
4452 sim_icache
="${sim_icache}I $icache";;
4454 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
4455 echo "Setting instruction cache size to $icache ($sim_icache)"
4458 sim_icache
="-CSRI 1024"
4459 if test x
"$silent" != x
"yes"; then
4460 echo "Setting instruction cache size to 1024 ($sim_icache)"
4465 # Check whether --enable-sim-inline was given.
4466 if test "${enable_sim_inline+set}" = set; then :
4467 enableval
=$enable_sim_inline; sim_inline
=""
4468 case "$enableval" in
4469 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4470 0) sim_inline
="-DDEFAULT_INLINE=0";;
4471 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
4472 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4473 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4476 *_INLINE
=*) new_flag
="-D$x";;
4477 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4478 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
4479 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
4481 if test x
"$sim_inline" = x
""; then
4482 sim_inline
="$new_flag"
4484 sim_inline
="$sim_inline $new_flag"
4488 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4489 echo "Setting inline flags = $sim_inline" 6>&1
4492 if test x
"$GCC" != ""; then
4493 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4494 if test x
"$silent" != x
"yes"; then
4495 echo "Setting inline flags = $sim_inline" 6>&1
4503 # Check whether --enable-sim-jump was given.
4504 if test "${enable_sim_jump+set}" = set; then :
4505 enableval
=$enable_sim_jump; case "${enableval}" in
4506 yes) sim_jump
="-J";;
4508 *) as_fn_error
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
4510 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
4511 echo "Setting jump flag = $sim_jump" 6>&1
4515 if test x
"$silent" != x
"yes"; then
4516 echo "Setting jump flag = $sim_jump" 6>&1
4521 # Check whether --enable-sim-line-nr was given.
4522 if test "${enable_sim_line_nr+set}" = set; then :
4523 enableval
=$enable_sim_line_nr; case "${enableval}" in
4524 yes) sim_line_nr
="";;
4525 no
) sim_line_nr
="-L";;
4526 *) as_fn_error
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
4528 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
4529 echo "Setting warning flags = $sim_line_nr" 6>&1
4536 # Check whether --enable-sim-model was given.
4537 if test "${enable_sim_model+set}" = set; then :
4538 enableval
=$enable_sim_model; case "${enableval}" in
4539 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4540 *) sim_model
="-DWITH_MODEL=${enableval}";;
4542 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
4543 echo "Setting model flags = $sim_model" 6>&1
4550 # Check whether --enable-sim-model-issue was given.
4551 if test "${enable_sim_model_issue+set}" = set; then :
4552 enableval
=$enable_sim_model_issue; case "${enableval}" in
4553 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4554 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4555 *) as_fn_error
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
4557 if test x
"$silent" != x
"yes"; then
4558 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4565 # Check whether --enable-sim-monitor was given.
4566 if test "${enable_sim_monitor+set}" = set; then :
4567 enableval
=$enable_sim_monitor; case "${enableval}" in
4568 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4569 no
) sim_monitor
="-DWITH_MON=0";;
4570 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4571 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4572 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env
="";;
4574 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
4575 echo "Setting monitor flags = $sim_monitor" 6>&1
4582 # Check whether --enable-sim-opcode was given.
4583 if test "${enable_sim_opcode+set}" = set; then :
4584 enableval
=$enable_sim_opcode; case "${enableval}" in
4585 yes|no
) as_fn_error
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4586 *) if test -f "${srcdir}/${enableval}"; then
4587 sim_opcode
="${enableval}"
4588 elif test -f "${srcdir}/dc-${enableval}"; then
4589 sim_opcode
="dc-${enableval}"
4591 as_fn_error
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4592 sim_opcode
="dc-complex"
4595 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
4596 echo "Setting opcode flags = $sim_opcode" 6>&1
4599 sim_opcode
="dc-complex"
4600 if test x
"$silent" != x
"yes"; then
4601 echo "Setting opcode flags = $sim_opcode"
4606 # Check whether --enable-sim-packages was given.
4607 if test "${enable_sim_packages+set}" = set; then :
4608 enableval
=$enable_sim_packages; packages
=disklabel
4609 case "${enableval}" in
4611 no
) as_fn_error
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
4612 ,*) packages
="${packages}${enableval}";;
4613 *,) packages
="${enableval}${packages}";;
4614 *) packages
="${enableval}"'';;
4616 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4617 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4618 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
4619 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4623 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4624 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4625 if test x
"$silent" != x
"yes"; then
4626 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4631 # Check whether --enable-sim-regparm was given.
4632 if test "${enable_sim_regparm+set}" = set; then :
4633 enableval
=$enable_sim_regparm; case "${enableval}" in
4634 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) sim_regparm
="-DWITH_REGPARM=${enableval}";;
4635 no
) sim_regparm
="" ;;
4636 yes) sim_regparm
="-DWITH_REGPARM=3";;
4637 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-regparm\"" "$LINENO" 5; sim_regparm
="";;
4639 if test x
"$silent" != x
"yes" && test x
"$sim_regparm" != x
""; then
4640 echo "Setting regparm flags = $sim_regparm" 6>&1
4647 # Check whether --enable-sim-reserved-bits was given.
4648 if test "${enable_sim_reserved_bits+set}" = set; then :
4649 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
4650 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
4651 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
4652 *) as_fn_error
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
4654 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
4655 echo "Setting reserved flags = $sim_reserved" 6>&1
4662 # Check whether --enable-sim-smp was given.
4663 if test "${enable_sim_smp+set}" = set; then :
4664 enableval
=$enable_sim_smp; case "${enableval}" in
4665 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4666 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4667 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4669 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4670 echo "Setting smp flags = $sim_smp" 6>&1
4673 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
4674 if test x
"$silent" != x
"yes"; then
4675 echo "Setting smp flags = $sim_smp" 6>&1
4680 # Check whether --enable-sim-stdcall was given.
4681 if test "${enable_sim_stdcall+set}" = set; then :
4682 enableval
=$enable_sim_stdcall; case "${enableval}" in
4683 no
) sim_stdcall
="" ;;
4684 std
*) sim_stdcall
="-DWITH_STDCALL=1";;
4685 yes) sim_stdcall
="-DWITH_STDCALL=1";;
4686 *) as_fn_error
"\"Unknown value $enableval for --enable-sim-stdcall\"" "$LINENO" 5; sim_stdcall
="";;
4688 if test x
"$silent" != x
"yes" && test x
"$sim_stdcall" != x
""; then
4689 echo "Setting function call flags = $sim_stdcall" 6>&1
4696 # Check whether --enable-sim-stdio was given.
4697 if test "${enable_sim_stdio+set}" = set; then :
4698 enableval
=$enable_sim_stdio; case "${enableval}" in
4699 yes) sim_stdio
="-DWITH_STDIO=DO_USE_STDIO";;
4700 no
) sim_stdio
="-DWITH_STDIO=DONT_USE_STDIO";;
4701 *) as_fn_error
"\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio
="";;
4703 if test x
"$silent" != x
"yes" && test x
"$sim_stdio" != x
""; then
4704 echo "Setting stdio flags = $sim_stdio" 6>&1
4711 # Check whether --enable-sim-switch was given.
4712 if test "${enable_sim_switch+set}" = set; then :
4713 enableval
=$enable_sim_switch; case "${enableval}" in
4714 yes) sim_switch
="-s";;
4716 *) as_fn_error
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
4718 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
4719 echo "Setting switch flags = $sim_switch" 6>&1
4723 if test x
"$silent" != x
"yes"; then
4724 echo "Setting switch flags = $sim_switch" 6>&1
4729 # Check whether --enable-sim-timebase was given.
4730 if test "${enable_sim_timebase+set}" = set; then :
4731 enableval
=$enable_sim_timebase; case "${enableval}" in
4732 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
4733 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
4734 *) as_fn_error
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
4736 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
4737 echo "Setting timebase flags = $sim_timebase" 6>&1
4744 # Check whether --enable-sim-trace was given.
4745 if test "${enable_sim_trace+set}" = set; then :
4746 enableval
=$enable_sim_trace; case "${enableval}" in
4747 yes) sim_trace
="-DWITH_TRACE=1";;
4748 no
) sim_trace
="-DWITH_TRACE=0";;
4749 *) as_fn_error
"\"--enable-sim-trace does not take a value\"" "$LINENO" 5; sim_trace
="";;
4751 if test x
"$silent" != x
"yes" && test x
"$sim_trace" != x
""; then
4752 echo "Setting trace flags = $sim_trace" 6>&1
4759 # Check whether --enable-sim-warnings was given.
4760 if test "${enable_sim_warnings+set}" = set; then :
4761 enableval
=$enable_sim_warnings; case "${enableval}" in
4762 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4763 no
) sim_warnings
="-w";;
4764 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4766 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
4767 echo "Setting warning flags = $sim_warnings" 6>&1
4774 # Check whether --enable-sim-xor-endian was given.
4775 if test "${enable_sim_xor_endian+set}" = set; then :
4776 enableval
=$enable_sim_xor_endian; case "${enableval}" in
4777 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
4778 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
4779 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
4781 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
4782 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4791 # Check whether --with-pkgversion was given.
4792 if test "${with_pkgversion+set}" = set; then :
4793 withval
=$with_pkgversion; case "$withval" in
4794 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
4796 *) PKGVERSION
="($withval) " ;;
4807 # Check whether --with-bugurl was given.
4808 if test "${with_bugurl+set}" = set; then :
4809 withval
=$with_bugurl; case "$withval" in
4810 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
4813 *) BUGURL
="$withval"
4817 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
4827 REPORT_BUGS_TO
="<$BUGURL>"
4828 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
4835 cat >>confdefs.h
<<_ACEOF
4836 #define PKGVERSION "$PKGVERSION"
4840 cat >>confdefs.h
<<_ACEOF
4841 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4845 # Make sure we can run config.sub.
4846 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4847 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4850 $as_echo_n "checking build system type... " >&6; }
4851 if test "${ac_cv_build+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4854 ac_build_alias
=$build_alias
4855 test "x$ac_build_alias" = x
&&
4856 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4857 test "x$ac_build_alias" = x
&&
4858 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4859 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4860 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4864 $as_echo "$ac_cv_build" >&6; }
4865 case $ac_cv_build in
4867 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4870 ac_save_IFS
=$IFS; IFS
='-'
4876 # Remember, the first character of IFS is used to create $*,
4877 # except with old shells:
4880 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4884 $as_echo_n "checking host system type... " >&6; }
4885 if test "${ac_cv_host+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4888 if test "x$host_alias" = x
; then
4889 ac_cv_host
=$ac_cv_build
4891 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4892 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4897 $as_echo "$ac_cv_host" >&6; }
4900 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4903 ac_save_IFS
=$IFS; IFS
='-'
4909 # Remember, the first character of IFS is used to create $*,
4910 # except with old shells:
4913 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4917 $as_echo_n "checking target system type... " >&6; }
4918 if test "${ac_cv_target+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 if test "x$target_alias" = x
; then
4922 ac_cv_target
=$ac_cv_host
4924 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4925 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4930 $as_echo "$ac_cv_target" >&6; }
4931 case $ac_cv_target in
4933 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4935 target
=$ac_cv_target
4936 ac_save_IFS
=$IFS; IFS
='-'
4942 # Remember, the first character of IFS is used to create $*,
4943 # except with old shells:
4946 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4949 # The aliases save the names the user supplied, while $host etc.
4950 # will get canonicalized.
4951 test -n "$target_alias" &&
4952 test "$program_prefix$program_suffix$program_transform_name" = \
4954 program_prefix
=${target_alias}-
4956 test "$program_prefix" != NONE
&&
4957 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4958 # Use a double $ so make ignores it.
4959 test "$program_suffix" != NONE
&&
4960 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4961 # Double any \ or $.
4962 # By default was `s,x,x', remove it if useless.
4963 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4964 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4967 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4968 # using the same condition.
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
4970 $as_echo_n "checking for library containing zlibVersion... " >&6; }
4971 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4974 ac_func_search_save_LIBS
=$LIBS
4975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4978 /* Override any GCC internal prototype to avoid an error.
4979 Use char because int might match the return type of a GCC
4980 builtin and then its argument prototype would still apply. */
4984 char zlibVersion ();
4988 return zlibVersion ();
4993 for ac_lib
in '' z
; do
4994 if test -z "$ac_lib"; then
4995 ac_res
="none required"
4998 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5000 if ac_fn_c_try_link
"$LINENO"; then :
5001 ac_cv_search_zlibVersion
=$ac_res
5003 rm -f core conftest.err conftest.
$ac_objext \
5005 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5009 if test "${ac_cv_search_zlibVersion+set}" = set; then :
5012 ac_cv_search_zlibVersion
=no
5015 LIBS
=$ac_func_search_save_LIBS
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
5018 $as_echo "$ac_cv_search_zlibVersion" >&6; }
5019 ac_res
=$ac_cv_search_zlibVersion
5020 if test "$ac_res" != no
; then :
5021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5022 for ac_header
in zlib.h
5024 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
5026 cat >>confdefs.h
<<_ACEOF
5027 #define HAVE_ZLIB_H 1
5037 .
${srcdir}/..
/..
/bfd
/configure.
host
5042 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5047 ac_config_headers
="$ac_config_headers config.h:config.in"
5050 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
5051 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
5053 cat >>confdefs.h
<<_ACEOF
5054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5058 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
5063 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
5064 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
5066 cat >>confdefs.h
<<_ACEOF
5067 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5071 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
5074 case " $LIBOBJS " in
5075 *" fileblocks.$ac_objext "* ) ;;
5076 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
5083 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5084 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5086 cat >>confdefs.h
<<_ACEOF
5087 #define HAVE_STRUCT_STAT_ST_RDEV 1
5091 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5097 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5098 if test "${ac_cv_struct_tm+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <sys/types.h>
5110 int *p = &tm.tm_sec;
5116 if ac_fn_c_try_compile
"$LINENO"; then :
5117 ac_cv_struct_tm
=time.h
5119 ac_cv_struct_tm
=sys
/time.h
5121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5124 $as_echo "$ac_cv_struct_tm" >&6; }
5125 if test $ac_cv_struct_tm = sys
/time.h
; then
5127 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5131 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
5132 #include <$ac_cv_struct_tm>
5135 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
5137 cat >>confdefs.h
<<_ACEOF
5138 #define HAVE_STRUCT_TM_TM_ZONE 1
5144 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5146 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
5149 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
5151 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
5157 cat >>confdefs.h
<<_ACEOF
5158 #define HAVE_DECL_TZNAME $ac_have_decl
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
5162 $as_echo_n "checking for tzname... " >&6; }
5163 if test "${ac_cv_var_tzname+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5169 #if !HAVE_DECL_TZNAME
5170 extern char *tzname[];
5176 return tzname[0][0];
5181 if ac_fn_c_try_link
"$LINENO"; then :
5182 ac_cv_var_tzname
=yes
5186 rm -f core conftest.err conftest.
$ac_objext \
5187 conftest
$ac_exeext conftest.
$ac_ext
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
5190 $as_echo "$ac_cv_var_tzname" >&6; }
5191 if test $ac_cv_var_tzname = yes; then
5193 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5200 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5201 if test "${ac_cv_type_uid_t+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <sys/types.h>
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "uid_t" >/dev
/null
2>&1; then :
5211 ac_cv_type_uid_t
=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5219 $as_echo "$ac_cv_type_uid_t" >&6; }
5220 if test $ac_cv_type_uid_t = no
; then
5222 $as_echo "#define uid_t int" >>confdefs.h
5225 $as_echo "#define gid_t int" >>confdefs.h
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
5230 $as_echo_n "checking type of array argument to getgroups... " >&6; }
5231 if test "${ac_cv_type_getgroups+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5234 if test "$cross_compiling" = yes; then :
5235 ac_cv_type_getgroups
=cross
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 /* Thanks to Mike Rendell for this test. */
5240 $ac_includes_default
5243 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5250 union { gid_t gval; long int lval; } val;
5253 for (i = 0; i < NGID; i++)
5254 gidset[i] = val.gval;
5255 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5257 /* Exit non-zero if getgroups seems to require an array of ints. This
5258 happens when gid_t is short int but getgroups modifies an array
5260 return n > 0 && gidset[n] != val.gval;
5263 if ac_fn_c_try_run
"$LINENO"; then :
5264 ac_cv_type_getgroups
=gid_t
5266 ac_cv_type_getgroups
=int
5268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5272 if test $ac_cv_type_getgroups = cross
; then
5273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then :
5280 ac_cv_type_getgroups
=gid_t
5282 ac_cv_type_getgroups
=int
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
5289 $as_echo "$ac_cv_type_getgroups" >&6; }
5291 cat >>confdefs.h
<<_ACEOF
5292 #define GETGROUPS_T $ac_cv_type_getgroups
5296 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5297 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5301 cat >>confdefs.h
<<_ACEOF
5307 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5308 if test "x$ac_cv_type_off_t" = x
""yes; then :
5312 cat >>confdefs.h
<<_ACEOF
5313 #define off_t long int
5318 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5319 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5323 cat >>confdefs.h
<<_ACEOF
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5330 $as_echo_n "checking return type of signal handlers... " >&6; }
5331 if test "${ac_cv_type_signal+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <sys/types.h>
5342 return *(signal (0, 0)) (0) == 1;
5347 if ac_fn_c_try_compile
"$LINENO"; then :
5348 ac_cv_type_signal
=int
5350 ac_cv_type_signal
=void
5352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5355 $as_echo "$ac_cv_type_signal" >&6; }
5357 cat >>confdefs.h
<<_ACEOF
5358 #define RETSIGTYPE $ac_cv_type_signal
5362 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5363 if test "x$ac_cv_type_size_t" = x
""yes; then :
5367 cat >>confdefs.h
<<_ACEOF
5368 #define size_t unsigned int
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5374 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5375 if test "${ac_cv_type_uid_t+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <sys/types.h>
5383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "uid_t" >/dev
/null
2>&1; then :
5385 ac_cv_type_uid_t
=yes
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5393 $as_echo "$ac_cv_type_uid_t" >&6; }
5394 if test $ac_cv_type_uid_t = no
; then
5396 $as_echo "#define uid_t int" >>confdefs.h
5399 $as_echo "#define gid_t int" >>confdefs.h
5404 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
5406 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5407 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5408 eval as_val
=\$
$as_ac_var
5409 if test "x$as_val" = x
""yes; then :
5410 cat >>confdefs.h
<<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5418 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
5420 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5422 eval as_val
=\$
$as_ac_Header
5423 if test "x$as_val" = x
""yes; then :
5424 cat >>confdefs.h
<<_ACEOF
5425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5433 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5434 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5436 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5437 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5438 $as_echo_n "(cached) " >&6
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5454 if ac_fn_c_try_compile
"$LINENO"; then :
5455 eval "$as_ac_Header=yes"
5457 eval "$as_ac_Header=no"
5459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5461 eval ac_res
=\$
$as_ac_Header
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5463 $as_echo "$ac_res" >&6; }
5464 eval as_val
=\$
$as_ac_Header
5465 if test "x$as_val" = x
""yes; then :
5466 cat >>confdefs.h
<<_ACEOF
5467 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5470 ac_header_dirent
=$ac_hdr; break
5474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5475 if test $ac_header_dirent = dirent.h
; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5477 $as_echo_n "checking for library containing opendir... " >&6; }
5478 if test "${ac_cv_search_opendir+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5481 ac_func_search_save_LIBS
=$LIBS
5482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5485 /* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5500 for ac_lib
in '' dir
; do
5501 if test -z "$ac_lib"; then
5502 ac_res
="none required"
5505 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5507 if ac_fn_c_try_link
"$LINENO"; then :
5508 ac_cv_search_opendir
=$ac_res
5510 rm -f core conftest.err conftest.
$ac_objext \
5512 if test "${ac_cv_search_opendir+set}" = set; then :
5516 if test "${ac_cv_search_opendir+set}" = set; then :
5519 ac_cv_search_opendir
=no
5522 LIBS
=$ac_func_search_save_LIBS
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5525 $as_echo "$ac_cv_search_opendir" >&6; }
5526 ac_res
=$ac_cv_search_opendir
5527 if test "$ac_res" != no
; then :
5528 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5534 $as_echo_n "checking for library containing opendir... " >&6; }
5535 if test "${ac_cv_search_opendir+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5538 ac_func_search_save_LIBS
=$LIBS
5539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5542 /* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5557 for ac_lib
in '' x
; do
5558 if test -z "$ac_lib"; then
5559 ac_res
="none required"
5562 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5564 if ac_fn_c_try_link
"$LINENO"; then :
5565 ac_cv_search_opendir
=$ac_res
5567 rm -f core conftest.err conftest.
$ac_objext \
5569 if test "${ac_cv_search_opendir+set}" = set; then :
5573 if test "${ac_cv_search_opendir+set}" = set; then :
5576 ac_cv_search_opendir
=no
5579 LIBS
=$ac_func_search_save_LIBS
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5582 $as_echo "$ac_cv_search_opendir" >&6; }
5583 ac_res
=$ac_cv_search_opendir
5584 if test "$ac_res" != no
; then :
5585 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
5594 $as_echo_n "checking for struct termios... " >&6; }
5595 if test "${ac_cv_termios_struct+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <sys/types.h>
5601 #include <sys/termios.h>
5605 static struct termios x;
5615 if ac_fn_c_try_compile
"$LINENO"; then :
5616 ac_cv_termios_struct
=yes
5618 ac_cv_termios_struct
=no
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
5624 $as_echo "$ac_cv_termios_struct" >&6; }
5625 if test $ac_cv_termios_struct = yes; then
5626 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5629 if test "$ac_cv_termios_struct" = "yes"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
5631 $as_echo_n "checking for c_line field in struct termios... " >&6; }
5632 if test "${ac_cv_termios_cline+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 #include <sys/termios.h>
5642 static struct termios x; x.c_line = 0;
5647 if ac_fn_c_try_compile
"$LINENO"; then :
5648 ac_cv_termios_cline
=yes
5650 ac_cv_termios_cline
=no
5652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
5657 $as_echo "$ac_cv_termios_cline" >&6; }
5658 if test $ac_cv_termios_cline = yes; then
5659 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
5662 ac_cv_termios_cline
=no
5665 if test "$ac_cv_termios_struct" != "yes"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
5667 $as_echo_n "checking for struct termio... " >&6; }
5668 if test "${ac_cv_termio_struct+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 #include <sys/termio.h>
5678 static struct termio x;
5688 if ac_fn_c_try_compile
"$LINENO"; then :
5689 ac_cv_termio_struct
=yes
5691 ac_cv_termio_struct
=no
5693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
5697 $as_echo "$ac_cv_termio_struct" >&6; }
5698 if test $ac_cv_termio_struct = yes; then
5699 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
5702 ac_cv_termio_struct
=no
5705 if test "$ac_cv_termio_struct" = "yes"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
5707 $as_echo_n "checking for c_line field in struct termio... " >&6; }
5708 if test "${ac_cv_termio_cline+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <sys/termio.h>
5718 static struct termio x; x.c_line = 0;
5723 if ac_fn_c_try_compile
"$LINENO"; then :
5724 ac_cv_termio_cline
=yes
5726 ac_cv_termio_cline
=no
5728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
5733 $as_echo "$ac_cv_termio_cline" >&6; }
5734 if test $ac_cv_termio_cline = yes; then
5735 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
5738 ac_cv_termio_cline
=no
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
5742 $as_echo_n "checking for struct statfs... " >&6; }
5743 if test "${ac_cv_struct_statfs+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #ifdef HAVE_SYS_PARAM_H
5750 #include <sys/param.h>
5752 #ifdef HAVE_SYS_MOUNT_H
5753 #include <sys/mount.h>
5755 #ifdef HAVE_SYS_VFS_H
5756 #include <sys/vfs.h>
5758 #ifdef HAVE_SYS_STATFS_H
5759 #include <sys/statfs.h>
5764 static struct statfs s;
5769 if ac_fn_c_try_compile
"$LINENO"; then :
5770 ac_cv_struct_statfs
=yes
5772 ac_cv_struct_statfs
=no
5774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
5778 $as_echo "$ac_cv_struct_statfs" >&6; }
5779 if test $ac_cv_struct_statfs = yes; then
5781 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
5785 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5786 if test "x$ac_cv_type_long_long" = x
""yes; then :
5788 cat >>confdefs.h
<<_ACEOF
5789 #define HAVE_LONG_LONG 1
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
5798 $as_echo_n "checking for /dev/zero... " >&6; }
5799 if test "${ac_cv_devzero+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5802 if test "$cross_compiling" = yes; then :
5805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5811 int fd = open ("/dev/zero", O_RDONLY);
5814 for (i = 0; i < sizeof (buf); i++)
5816 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
5818 for (i = 0; i < sizeof (buf); i++)
5824 if ac_fn_c_try_run
"$LINENO"; then :
5829 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5830 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
5836 $as_echo "$ac_cv_devzero" >&6; }
5837 if test $ac_cv_devzero = yes; then
5838 sim_devzero
="-DHAVE_DEVZERO"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
5844 $as_echo_n "checking for common simulator directory... " >&6; }
5845 if test -f "${srcdir}/../common/callback.c"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847 $as_echo "yes" >&6; }
5848 sim_callback
="callback.o targ-map.o"
5849 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
5858 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
5859 if test -f "${srcdir}/../common/sim-fpu.c"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861 $as_echo "yes" >&6; }
5862 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5881 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -n "$RANLIB"; then
5888 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir
=.
5895 for ac_exec_ext
in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 RANLIB
=$ac_cv_prog_RANLIB
5908 if test -n "$RANLIB"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5910 $as_echo "$RANLIB" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5918 if test -z "$ac_cv_prog_RANLIB"; then
5919 ac_ct_RANLIB
=$RANLIB
5920 # Extract the first word of "ranlib", so it can be a program name with args.
5921 set dummy ranlib
; ac_word
=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 if test -n "$ac_ct_RANLIB"; then
5928 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir
=.
5935 for ac_exec_ext
in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5948 if test -n "$ac_ct_RANLIB"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5950 $as_echo "$ac_ct_RANLIB" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5956 if test "x$ac_ct_RANLIB" = x
; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned
=yes ;;
5965 RANLIB
=$ac_ct_RANLIB
5968 RANLIB
="$ac_cv_prog_RANLIB"
6017 ac_config_files
="$ac_config_files Makefile"
6019 ac_config_commands
="$ac_config_commands default"
6021 cat >confcache
<<\_ACEOF
6022 # This file is a shell script that caches the results of configure
6023 # tests run on this system so they can be shared between configure
6024 # scripts and configure runs, see configure's option --config-cache.
6025 # It is not useful on other systems. If it contains results you don't
6026 # want to keep, you may remove or edit it.
6028 # config.status only pays attention to the cache file if you give it
6029 # the --recheck option to rerun configure.
6031 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6037 # The following way of writing the cache mishandles newlines in values,
6038 # but we know of no workaround that is simple, portable, and efficient.
6039 # So, we kill variables containing newlines.
6040 # Ultrix sh set writes to stderr and can't be redirected directly,
6041 # and sets the high bit in the cache file unless we assign to the vars.
6043 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6044 eval ac_val
=\$
$ac_var
6048 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6052 _ | IFS | as_nl
) ;; #(
6053 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6054 *) { eval $ac_var=; unset $ac_var;} ;;
6060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6061 *${as_nl}ac_space
=\
*)
6062 # `set' does not quote correctly, so add quotes: double-quote
6063 # substitution turns \\\\ into \\, and sed turns \\ into \.
6066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6069 # `set' quotes correctly as required by POSIX, so do not add quotes.
6070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6083 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6084 if test -w "$cache_file"; then
6085 test "x$cache_file" != "x/dev/null" &&
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6087 $as_echo "$as_me: updating cache $cache_file" >&6;}
6088 cat confcache
>$cache_file
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6091 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6096 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6097 # Let make expand exec_prefix.
6098 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6100 DEFS
=-DHAVE_CONFIG_H
6104 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6105 # 1. Remove the extension, and $U if already installed.
6106 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6107 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6109 # will be set to the directory where LIBOBJS objects are built.
6110 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6111 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6115 LTLIBOBJS
=$ac_ltlibobjs
6120 : ${CONFIG_STATUS=./config.status}
6122 ac_clean_files_save
=$ac_clean_files
6123 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6129 # Generated by $as_me.
6130 # Run this file to recreate the current configuration.
6131 # Compiler output produced by configure, useful for debugging
6132 # configure, is in config.log if it exists.
6138 SHELL=\${CONFIG_SHELL-$SHELL}
6141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6142 ## -------------------- ##
6143 ## M4sh Initialization. ##
6144 ## -------------------- ##
6146 # Be more Bourne compatible
6147 DUALCASE
=1; export DUALCASE
# for MKS sh
6148 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6152 # is contrary to our usage. Disable this feature.
6153 alias -g '${1+"$@"}'='"$@"'
6154 setopt NO_GLOB_SUBST
6156 case `(set -o) 2>/dev/null` in #(
6168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6169 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6172 # Prefer a ksh shell builtin over an external printf program on Solaris,
6173 # but without wasting forks for bash or zsh.
6174 if test -z "$BASH_VERSION$ZSH_VERSION" \
6175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6176 as_echo='print
-r --'
6177 as_echo_n='print
-rn --'
6178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6179 as_echo='printf %s
\n'
6180 as_echo_n='printf %s
'
6182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6183 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6184 as_echo_n='/usr
/ucb
/echo -n'
6186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6187 as_echo_n_body='eval
6191 expr "X$arg" : "X\\(.*\\)$as_nl";
6192 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6194 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6196 export as_echo_n_body
6197 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6200 as_echo='sh
-c $as_echo_body as_echo
'
6203 # The user is always right.
6204 if test "${PATH_SEPARATOR+set}" != set; then
6206 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6207 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6214 # We need space, tab and new line, in precisely that order. Quoting is
6215 # there to prevent editors from complaining about space-tab.
6216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6217 # splitting by setting IFS to empty value.)
6220 # Find who we are. Look in the path if we contain no directory separator.
6222 *[\\/]* ) as_myself=$0 ;;
6223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6234 # We did not find ourselves, most probably we were run as `sh COMMAND'
6235 # in which case we are not to be found in the path.
6236 if test "x$as_myself" = x
; then
6239 if test ! -f "$as_myself"; then
6240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6244 # Unset variables that we do not need and which cause bugs (e.g. in
6245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6246 # suppresses any "Segmentation fault" message there. '((' could
6247 # trigger a bug in pdksh 5.2.14.
6248 for as_var
in BASH_ENV ENV MAIL MAILPATH
6249 do eval test x\
${$as_var+set} = xset \
6250 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6263 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6266 # as_fn_error ERROR [LINENO LOG_FD]
6267 # ---------------------------------
6268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6270 # script with status $?, using 1 if that was 0.
6273 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6275 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6278 $as_echo "$as_me: error: $1" >&2
6279 as_fn_exit
$as_status
6283 # as_fn_set_status STATUS
6284 # -----------------------
6285 # Set $? to STATUS, without forking.
6289 } # as_fn_set_status
6293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6303 # Portably unset VAR.
6306 { eval $1=; unset $1;}
6308 as_unset
=as_fn_unset
6309 # as_fn_append VAR VALUE
6310 # ----------------------
6311 # Append the text in VALUE to the end of the definition contained in VAR. Take
6312 # advantage of any shell optimizations that allow amortized linear growth over
6313 # repeated appends, instead of the typical quadratic growth present in naive
6315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6316 eval 'as_fn_append ()
6327 # as_fn_arith ARG...
6328 # ------------------
6329 # Perform arithmetic evaluation on the ARGs, and store the result in the
6330 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6331 # must be portable across $(()) and expr.
6332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6333 eval 'as_fn_arith ()
6340 as_val
=`expr "$@" || test $? -eq 1`
6345 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6346 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6352 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6353 as_basename
=basename
6358 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6364 as_me
=`$as_basename -- "$0" ||
6365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6366 X"$0" : 'X\(//\)$' \| \
6367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6369 sed '/^.*\/\([^/][^/]*\)\/*$/{
6383 # Avoid depending upon Character Ranges.
6384 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6385 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6386 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6387 as_cr_digits
='0123456789'
6388 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6390 ECHO_C
= ECHO_N
= ECHO_T
=
6391 case `echo -n x` in #(((((
6393 case `echo 'xy\c'` in
6394 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6396 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6403 rm -f conf$$ conf$$.exe conf$$.
file
6404 if test -d conf$$.dir
; then
6405 rm -f conf$$.dir
/conf$$.
file
6408 mkdir conf$$.dir
2>/dev
/null
6410 if (echo >conf$$.
file) 2>/dev
/null
; then
6411 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6413 # ... but there are two gotchas:
6414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6416 # In both cases, we have to default to `cp -p'.
6417 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6419 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6427 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6428 rmdir conf$$.dir
2>/dev
/null
6433 # Create "$as_dir" as a directory, including parents if necessary.
6438 -*) as_dir
=.
/$as_dir;;
6440 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6444 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6445 *) as_qdir
=$as_dir;;
6447 as_dirs
="'$as_qdir' $as_dirs"
6448 as_dir
=`$as_dirname -- "$as_dir" ||
6449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$as_dir" : 'X\(//\)[^/]' \| \
6451 X"$as_dir" : 'X\(//\)$' \| \
6452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6453 $as_echo X"$as_dir" |
6454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6471 test -d "$as_dir" && break
6473 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6474 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6478 if mkdir
-p .
2>/dev
/null
; then
6479 as_mkdir_p
='mkdir -p "$as_dir"'
6481 test -d .
/-p && rmdir .
/-p
6485 if test -x / >/dev
/null
2>&1; then
6488 if ls -dL / >/dev
/null
2>&1; then
6495 if test -d "$1"; then
6501 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6502 ???[sx]*):;;*)false;;esac;fi
6506 as_executable_p
=$as_test_x
6508 # Sed expression to map a string onto a valid CPP name.
6509 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6511 # Sed expression to map a string onto a valid variable name.
6512 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6516 ## ----------------------------------- ##
6517 ## Main body of $CONFIG_STATUS script. ##
6518 ## ----------------------------------- ##
6520 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6523 # Save the log message, to keep $0 and so on meaningful, and to
6524 # report actual input values of CONFIG_FILES etc. instead of their
6525 # values after options handling.
6527 This file was extended by $as_me, which was
6528 generated by GNU Autoconf 2.64. Invocation command line was
6530 CONFIG_FILES = $CONFIG_FILES
6531 CONFIG_HEADERS = $CONFIG_HEADERS
6532 CONFIG_LINKS = $CONFIG_LINKS
6533 CONFIG_COMMANDS = $CONFIG_COMMANDS
6536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6541 case $ac_config_files in *"
6542 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6545 case $ac_config_headers in *"
6546 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6551 # Files that config.status was made for.
6552 config_files="$ac_config_files"
6553 config_headers="$ac_config_headers"
6554 config_commands="$ac_config_commands"
6558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6560 \`$as_me' instantiates files and other configuration actions
6561 from templates according to the current configuration. Unless the files
6562 and actions are specified as TAGs, all are instantiated by default.
6564 Usage: $0 [OPTION]... [TAG]...
6566 -h, --help print this help, then exit
6567 -V, --version print version number and configuration settings, then exit
6568 -q, --quiet, --silent
6569 do not print progress messages
6570 -d, --debug don't remove temporary files
6571 --recheck update $as_me by reconfiguring in the same conditions
6572 --file=FILE[:TEMPLATE]
6573 instantiate the configuration file FILE
6574 --header=FILE[:TEMPLATE]
6575 instantiate the configuration header FILE
6577 Configuration files:
6580 Configuration headers:
6583 Configuration commands:
6586 Report bugs to the package provider."
6589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6592 configured by $0, generated by GNU Autoconf 2.64,
6593 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6595 Copyright (C) 2009 Free Software Foundation, Inc.
6596 This config.status script is free software; the Free Software Foundation
6597 gives unlimited permission to copy, distribute and modify it."
6602 test -n "\$AWK" || AWK=awk
6605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6606 # The default lists apply if the user does not specify any file.
6612 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6613 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6624 # Handling of the options.
6625 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6627 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6628 $as_echo "$ac_cs_version"; exit ;;
6629 --debug |
--debu |
--deb |
--de |
--d |
-d )
6631 --file |
--fil |
--fi |
--f )
6634 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6636 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6637 ac_need_defaults
=false
;;
6638 --header |
--heade |
--head |
--hea )
6641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6643 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6644 ac_need_defaults
=false
;;
6646 # Conflict between --help and --header
6647 as_fn_error
"ambiguous option: \`$1'
6648 Try \`$0 --help' for more information.";;
6649 --help |
--hel |
-h )
6650 $as_echo "$ac_cs_usage"; exit ;;
6651 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6652 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6656 -*) as_fn_error
"unrecognized option: \`$1'
6657 Try \`$0 --help' for more information." ;;
6659 *) as_fn_append ac_config_targets
" $1"
6660 ac_need_defaults
=false
;;
6666 ac_configure_extra_args
=
6668 if $ac_cs_silent; then
6670 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6675 if \$ac_cs_recheck; then
6676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6679 CONFIG_SHELL='$SHELL'
6685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6690 ## Running $as_me. ##
6696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6701 # Handling of arguments.
6702 for ac_config_target
in $ac_config_targets
6704 case $ac_config_target in
6705 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6706 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6707 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6709 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6714 # If the user did not use the arguments to specify the items to instantiate,
6715 # then the envvar interface is used. Set only those that are not.
6716 # We use the long form for the default assignment because of an extremely
6717 # bizarre bug on SunOS 4.1.3.
6718 if $ac_need_defaults; then
6719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6724 # Have a temporary directory for convenience. Make it in the build tree
6725 # simply because there is no reason against having it here, and in addition,
6726 # creating and moving files from /tmp can sometimes cause problems.
6727 # Hook for its removal unless debugging.
6728 # Note that there is a small window in which the directory will not be cleaned:
6729 # after its creation but before its name has been assigned to `$tmp'.
6733 trap 'exit_status=$?
6734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6736 trap 'as_fn_exit 1' 1 2 13 15
6738 # Create a (secure) tmp directory for tmp files.
6741 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6742 test -n "$tmp" && test -d "$tmp"
6745 tmp
=.
/conf$$
-$RANDOM
6746 (umask 077 && mkdir
"$tmp")
6747 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6749 # Set up the scripts for CONFIG_FILES section.
6750 # No need to generate them if there are no CONFIG_FILES.
6751 # This happens for instance with `./config.status config.h'.
6752 if test -n "$CONFIG_FILES"; then
6755 ac_cr
=`echo X | tr X '\015'`
6756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6757 # But we know of no other shell where ac_cr would be empty at this
6758 # point, so we can use a bashism as a fallback.
6759 if test "x$ac_cr" = x
; then
6760 eval ac_cr
=\$
\'\\r
\'
6762 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6769 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6774 echo "cat >conf$$subs.awk <<_ACEOF" &&
6775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6778 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6781 for ac_last_try in false false false false false :; do
6782 . ./conf$$subs.sh ||
6783 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6785 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6786 if test $ac_delim_n = $ac_delim_num; then
6788 elif $ac_last_try; then
6789 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6791 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6797 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6801 s/^/S["/; s
/!.
*/"]=/
6811 s/\(.\{148\}\).*/\1/
6813 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6818 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6825 s/\(.\{148\}\).*/\1/
6827 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6831 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6836 ' <conf$$subs.awk | sed '
6841 ' >>$CONFIG_STATUS || ac_write_fail=1
6842 rm -f conf$$subs.awk
6843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6845 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6846 for (key in S) S_is_set[key] = 1
6852 nfields = split(line, field, "@
")
6854 len = length(field[1])
6855 for (i = 2; i < nfields; i++) {
6857 keylen = length(key)
6858 if (S_is_set[key]) {
6860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6861 len += length(value) + length(field[++i])
6872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6873 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6874 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6877 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6878 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6883 # trailing colons and then remove the whole line if VPATH becomes empty
6884 # (actually we leave an empty line to preserve line numbers).
6885 if test "x
$srcdir" = x.; then
6886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6890 s/^\([^=]*=[ ]*\):*/\1/
6896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6897 fi # test -n "$CONFIG_FILES"
6899 # Set up the scripts for CONFIG_HEADERS section.
6900 # No need to generate them if there are no CONFIG_HEADERS.
6901 # This happens for instance with `./config.status Makefile'.
6902 if test -n "$CONFIG_HEADERS"; then
6903 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6907 # Transform confdefs.h into an awk script `defines.awk', embedded as
6908 # here-document in config.status, that substitutes the proper values into
6909 # config.h.in to produce config.h.
6911 # Create a delimiter string that does not exist in confdefs.h, to ease
6912 # handling of long lines.
6914 for ac_last_try in false false :; do
6915 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6916 if test -z "$ac_t"; then
6918 elif $ac_last_try; then
6919 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6921 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6925 # For the awk script, D is an array of macro values keyed by name,
6926 # likewise P contains macro parameters if any. Preserve backslash
6927 # newline sequences.
6929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6931 s/.\{148\}/&'"$ac_delim"'/g
6934 s/^[ ]*#[ ]*define[ ][ ]*/ /
6941 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6943 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6948 D["\
1"]=" \
3\\\\\\n
"\\/p
6950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6955 s/.\{148\}/&'"$ac_delim"'/g
6960 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6963 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6965 ' <confdefs.h | sed '
6966 s/'"$ac_delim"'/"\\\
6967 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6970 for (key in D) D_is_set[key] = 1
6973 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6975 split(line, arg, " ")
6976 if (arg[1] == "#") {
6980 defundef
= substr
(arg
[1], 2)
6983 split(mac1
, mac2
, "(") #)
6985 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6986 if (D_is_set
[macro
]) {
6987 # Preserve the white space surrounding the "#".
6988 print prefix
"define", macro P
[macro
] D
[macro
]
6991 # Replace #undef with comments. This is necessary, for example,
6992 # in the case of _POSIX_SOURCE, which is predefined and required
6993 # on some systems where configure will not decide to define it.
6994 if (defundef
== "undef") {
6995 print
"/*", prefix defundef
, macro
, "*/"
7003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7004 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7005 fi # test -n "$CONFIG_HEADERS"
7008 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7013 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7015 case $ac_mode$ac_tag in
7017 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7018 :[FH
]-) ac_tag
=-:-;;
7019 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7036 -) ac_f
="$tmp/stdin";;
7037 *) # Look for the file first in the build tree, then in the source tree
7038 # (if the path is not absolute). The absolute path cannot be DOS-style,
7039 # because $ac_f cannot contain `:'.
7043 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7045 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7047 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7048 as_fn_append ac_file_inputs
" '$ac_f'"
7051 # Let's still pretend it is `configure' which instantiates (i.e., don't
7052 # use $as_me), people would be surprised to read:
7053 # /* config.h. Generated by config.status. */
7054 configure_input
='Generated from '`
7055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7057 if test x
"$ac_file" != x-
; then
7058 configure_input
="$ac_file. $configure_input"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7060 $as_echo "$as_me: creating $ac_file" >&6;}
7062 # Neutralize special characters interpreted by sed in replacement strings.
7063 case $configure_input in #(
7064 *\
&* |
*\|
* |
*\\* )
7065 ac_sed_conf_input
=`$as_echo "$configure_input" |
7066 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7067 *) ac_sed_conf_input
=$configure_input;;
7071 *:-:* |
*:-) cat >"$tmp/stdin" \
7072 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7077 ac_dir
=`$as_dirname -- "$ac_file" ||
7078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7079 X"$ac_file" : 'X\(//\)[^/]' \| \
7080 X"$ac_file" : 'X\(//\)$' \| \
7081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7082 $as_echo X"$ac_file" |
7083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7100 as_dir
="$ac_dir"; as_fn_mkdir_p
7104 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7106 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7107 # A ".." for each directory in $ac_dir_suffix.
7108 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7109 case $ac_top_builddir_sub in
7110 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7111 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7114 ac_abs_top_builddir
=$ac_pwd
7115 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7116 # for backward compatibility:
7117 ac_top_builddir
=$ac_top_build_prefix
7120 .
) # We are building in place.
7122 ac_top_srcdir
=$ac_top_builddir_sub
7123 ac_abs_top_srcdir
=$ac_pwd ;;
7124 [\\/]* | ?
:[\\/]* ) # Absolute name.
7125 ac_srcdir
=$srcdir$ac_dir_suffix;
7126 ac_top_srcdir
=$srcdir
7127 ac_abs_top_srcdir
=$srcdir ;;
7129 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7130 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7131 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7133 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7143 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7144 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7149 # If the template does not know about datarootdir, expand it.
7150 # FIXME: This hack should be removed a few years after 2.60.
7151 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7163 *datarootdir
*) ac_datarootdir_seen
=yes;;
7164 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7169 ac_datarootdir_hack='
7170 s&@datadir@&$datadir&g
7171 s&@docdir@&$docdir&g
7172 s&@infodir@&$infodir&g
7173 s&@localedir@&$localedir&g
7174 s&@mandir@&$mandir&g
7175 s&\\\${datarootdir}&$datarootdir&g' ;;
7179 # Neutralize VPATH when `$srcdir' = `.'.
7180 # Shell code in configure.ac might set extrasub.
7181 # FIXME: do we really want to maintain this feature?
7182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7183 ac_sed_extra="$ac_vpsub
7186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7188 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7189 s|@configure_input@|
$ac_sed_conf_input|
;t t
7190 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7191 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7192 s
&@srcdir@
&$ac_srcdir&;t t
7193 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7194 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7195 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7196 s
&@builddir@
&$ac_builddir&;t t
7197 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7198 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7199 s
&@INSTALL@
&$ac_INSTALL&;t t
7200 $ac_datarootdir_hack
7202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7203 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7209 which seems to be undefined. Please make sure it is defined." >&5
7210 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7211 which seems to be undefined. Please make sure it is defined." >&2;}
7215 -) cat "$tmp/out" && rm -f "$tmp/out";;
7216 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7218 || as_fn_error "could not create $ac_file" "$LINENO" 5
7224 if test x"$ac_file" != x-; then
7226 $as_echo "/* $configure_input */" \
7227 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7228 } >"$tmp/config.h" \
7229 || as_fn_error "could not create $ac_file" "$LINENO" 5
7230 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7232 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7235 mv "$tmp/config.h" "$ac_file" \
7236 || as_fn_error "could not create $ac_file" "$LINENO" 5
7239 $as_echo "/* $configure_input */" \
7240 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7241 || as_fn_error "could not create -" "$LINENO" 5
7245 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7246 $as_echo "$as_me: executing $ac_file commands" >&6;}
7251 case $ac_file$ac_mode in
7252 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7260 ac_clean_files=$ac_clean_files_save
7262 test $ac_write_fail = 0 ||
7263 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7266 # configure is writing to config.log, and then calls config.status.
7267 # config.status does its own redirection, appending to config.log.
7268 # Unfortunately, on DOS this fails, as config.log is still kept open
7269 # by configure, so config.status won't be able to
write to it
; its
7270 # output is simply discarded. So we exec the FD to /dev/null,
7271 # effectively closing config.log, so it can be properly (re)opened and
7272 # appended to by config.status. When coming back to configure, we
7273 # need to make the FD available again.
7274 if test "$no_create" != yes; then
7276 ac_config_status_args
=
7277 test "$silent" = yes &&
7278 ac_config_status_args
="$ac_config_status_args --quiet"
7280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7283 # would make configure fail if this is the last instruction.
7284 $ac_cs_success || as_fn_exit $?
7286 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7288 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}