2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
730 program_transform_name
743 enable_option_checking
747 enable_sim_decode_mechanism
748 enable_sim_default_model
754 enable_sim_hostbitsize
755 enable_sim_hostendian
761 enable_sim_model_issue
765 enable_sim_reserved_bits
771 enable_sim_xor_endian
775 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 ac_unrecognized_opts
=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name
=s
,x
,x
,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir
='${exec_prefix}/bin'
815 sbindir
='${exec_prefix}/sbin'
816 libexecdir
='${exec_prefix}/libexec'
817 datarootdir
='${prefix}/share'
818 datadir
='${datarootdir}'
819 sysconfdir
='${prefix}/etc'
820 sharedstatedir
='${prefix}/com'
821 localstatedir
='${prefix}/var'
822 includedir
='${prefix}/include'
823 oldincludedir
='/usr/include'
824 docdir
='${datarootdir}/doc/${PACKAGE}'
825 infodir
='${datarootdir}/info'
830 libdir
='${exec_prefix}/lib'
831 localedir
='${datarootdir}/locale'
832 mandir
='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\
$ac_option
846 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
859 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
862 -build |
--build |
--buil |
--bui |
--bu)
863 ac_prev
=build_alias
;;
864 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
865 build_alias
=$ac_optarg ;;
867 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
868 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
869 ac_prev
=cache_file
;;
870 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
871 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
872 cache_file
=$ac_optarg ;;
875 cache_file
=config.cache
;;
877 -datadir |
--datadir |
--datadi |
--datad)
879 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
880 datadir
=$ac_optarg ;;
882 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
883 |
--dataroo |
--dataro |
--datar)
884 ac_prev
=datarootdir
;;
885 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
886 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
887 datarootdir
=$ac_optarg ;;
889 -disable-* |
--disable-*)
890 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
893 as_fn_error $?
"invalid feature name: $ac_useropt"
894 ac_useropt_orig
=$ac_useropt
895 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep
=', ';;
903 eval enable_
$ac_useropt=no
;;
905 -docdir |
--docdir |
--docdi |
--doc |
--do)
907 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
910 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
912 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
915 -enable-* |
--enable-*)
916 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
919 as_fn_error $?
"invalid feature name: $ac_useropt"
920 ac_useropt_orig
=$ac_useropt
921 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
929 eval enable_
$ac_useropt=\
$ac_optarg ;;
931 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
932 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
933 |
--exec |
--exe |
--ex)
934 ac_prev
=exec_prefix
;;
935 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
936 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
937 |
--exec=* |
--exe=* |
--ex=*)
938 exec_prefix
=$ac_optarg ;;
940 -gas |
--gas |
--ga |
--g)
941 # Obsolete; use --with-gas.
944 -help |
--help |
--hel |
--he |
-h)
946 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
947 ac_init_help
=recursive
;;
948 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
949 ac_init_help
=short
;;
951 -host |
--host |
--hos |
--ho)
952 ac_prev
=host_alias
;;
953 -host=* |
--host=* |
--hos=* |
--ho=*)
954 host_alias
=$ac_optarg ;;
956 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
958 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
960 htmldir
=$ac_optarg ;;
962 -includedir |
--includedir |
--includedi |
--included |
--include \
963 |
--includ |
--inclu |
--incl |
--inc)
964 ac_prev
=includedir
;;
965 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
966 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
967 includedir
=$ac_optarg ;;
969 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
971 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
972 infodir
=$ac_optarg ;;
974 -libdir |
--libdir |
--libdi |
--libd)
976 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
979 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
980 |
--libexe |
--libex |
--libe)
981 ac_prev
=libexecdir
;;
982 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
983 |
--libexe=* |
--libex=* |
--libe=*)
984 libexecdir
=$ac_optarg ;;
986 -localedir |
--localedir |
--localedi |
--localed |
--locale)
988 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
989 localedir
=$ac_optarg ;;
991 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
992 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
993 ac_prev
=localstatedir
;;
994 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
995 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
996 localstatedir
=$ac_optarg ;;
998 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1000 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1001 mandir
=$ac_optarg ;;
1003 -nfp |
--nfp |
--nf)
1004 # Obsolete; use --without-fp.
1007 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1008 |
--no-cr |
--no-c |
-n)
1011 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1012 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1015 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1016 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1017 |
--oldin |
--oldi |
--old |
--ol |
--o)
1018 ac_prev
=oldincludedir
;;
1019 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1020 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1021 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1022 oldincludedir
=$ac_optarg ;;
1024 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1026 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1027 prefix
=$ac_optarg ;;
1029 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1030 |
--program-pre |
--program-pr |
--program-p)
1031 ac_prev
=program_prefix
;;
1032 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1033 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1034 program_prefix
=$ac_optarg ;;
1036 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1037 |
--program-suf |
--program-su |
--program-s)
1038 ac_prev
=program_suffix
;;
1039 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1040 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1041 program_suffix
=$ac_optarg ;;
1043 -program-transform-name |
--program-transform-name \
1044 |
--program-transform-nam |
--program-transform-na \
1045 |
--program-transform-n |
--program-transform- \
1046 |
--program-transform |
--program-transfor \
1047 |
--program-transfo |
--program-transf \
1048 |
--program-trans |
--program-tran \
1049 |
--progr-tra |
--program-tr |
--program-t)
1050 ac_prev
=program_transform_name
;;
1051 -program-transform-name=* |
--program-transform-name=* \
1052 |
--program-transform-nam=* |
--program-transform-na=* \
1053 |
--program-transform-n=* |
--program-transform-=* \
1054 |
--program-transform=* |
--program-transfor=* \
1055 |
--program-transfo=* |
--program-transf=* \
1056 |
--program-trans=* |
--program-tran=* \
1057 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1058 program_transform_name
=$ac_optarg ;;
1060 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1062 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1063 pdfdir
=$ac_optarg ;;
1065 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1067 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1070 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1071 |
-silent |
--silent |
--silen |
--sile |
--sil)
1074 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1076 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1078 sbindir
=$ac_optarg ;;
1080 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1081 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1082 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1084 ac_prev
=sharedstatedir
;;
1085 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1086 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1087 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1089 sharedstatedir
=$ac_optarg ;;
1091 -site |
--site |
--sit)
1093 -site=* |
--site=* |
--sit=*)
1096 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1098 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1099 srcdir
=$ac_optarg ;;
1101 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1102 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1103 ac_prev
=sysconfdir
;;
1104 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1105 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1106 sysconfdir
=$ac_optarg ;;
1108 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1109 ac_prev
=target_alias
;;
1110 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1111 target_alias
=$ac_optarg ;;
1113 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1116 -version |
--version |
--versio |
--versi |
--vers |
-V)
1117 ac_init_version
=: ;;
1120 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error $?
"invalid package name: $ac_useropt"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=\
$ac_optarg ;;
1135 -without-* |
--without-*)
1136 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 as_fn_error $?
"invalid package name: $ac_useropt"
1140 ac_useropt_orig
=$ac_useropt
1141 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval with_
$ac_useropt=no
;;
1152 # Obsolete; use --with-x.
1155 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1156 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1157 ac_prev
=x_includes
;;
1158 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1159 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1160 x_includes
=$ac_optarg ;;
1162 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1163 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1164 ac_prev
=x_libraries
;;
1165 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1166 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1167 x_libraries
=$ac_optarg ;;
1169 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1174 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1178 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1180 eval $ac_envvar=\
$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 if test -n "$ac_prev"; then
1195 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $?
"missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1202 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 # Check all directory arguments for consistency.
1208 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val
=\$
$ac_var
1214 # Remove trailing slashes.
1217 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\
$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$
]* | ?
:[\\/]* ) continue;;
1223 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1225 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target
=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x
; then
1237 if test "x$build_alias" = x
; then
1238 cross_compiling
=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1245 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1247 test "$silent" = yes && exec 6>/dev
/null
1250 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di
=`ls -di .` &&
1252 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $?
"working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $?
"pwd does not report name of working directory"
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted
=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir
=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted
=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1294 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1296 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var
in $ac_precious_vars; do
1311 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1313 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures this package to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1387 --build=BUILD configure
for building on BUILD
[guessed
]
1388 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1389 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1393 if test -n "$ac_init_help"; then
1398 --disable-option-checking ignore unrecognized
--enable/--with options
1399 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1400 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1401 --enable-sim-assert Specify whether to perform random assertions.
1402 --enable-sim-bitsize=n Specify target bitsize
(32 or
64).
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-filter=rule Specify filter rules.
1409 --enable-sim-float Specify whether the target has hard
, soft
, altivec or e500 floating point.
1410 --enable-sim-hardware=list Specify the hardware to be included
in the build.
1411 --enable-sim-hostbitsize=32|
64 Specify
host bitsize
(32 or
64).
1412 --enable-sim-hostendian=end Specify
host byte endian orientation.
1413 --enable-sim-icache=size Specify instruction-decode cache size and
type.
1414 --enable-sim-inline=inlines Specify
which functions should be inlined.
1415 --enable-sim-jump Jump between semantic code
(instead of
call
/return).
1416 --enable-sim-line-nr=opts Generate extra CPP code that references
source rather than generated code
1417 --enable-sim-model=which Specify PowerPC to model.
1418 --enable-sim-model-issue Specify whether to simulate model specific actions
1419 --enable-sim-monitor=mon Specify whether to
enable monitoring events.
1420 --enable-sim-opcode=which Override default opcode lookup.
1421 --enable-sim-packages=list Specify the packages to be included
in the build.
1422 --enable-sim-reserved-bits Specify whether to check reserved bits
in instruction.
1423 --enable-sim-smp=n Specify number of processors to configure
for.
1424 --enable-sim-switch Use a switch instead of a table
for instruction call.
1425 --enable-sim-timebase Specify whether the PPC timebase is supported.
1426 --enable-werror treat compile warnings as errors
1427 --enable-sim-warnings=opts Extra CFLAGS
for turning on compiler warnings except
for idecode.o
, semantics.o and psim.o
1428 --enable-sim-xor-endian=n Specify number bytes involved
in PowerPC XOR bi-endian mode
(default
8).
1429 --enable-plugins Enable support
for plugins
1432 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1433 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1434 --with-system-zlib use installed libz
1436 Some influential environment variables
:
1437 CC C compiler
command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1440 nonstandard directory
<lib dir
>
1441 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1442 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1443 you have headers
in a nonstandard directory
<include dir
>
1446 Use these variables to override the choices made by
`configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to the package provider.
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1479 .) # We are building in place.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1513 generated by GNU Autoconf 2.69
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1536 *) ac_try_echo
=$ac_try;;
1538 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1542 if test -s conftest.err
; then
1543 grep -v '^ *+' conftest.err
>conftest.er1
1544 cat conftest.er1
>&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.
$ac_objext; then :
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.
$ac_ext >&5
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status
$ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_c_try_run LINENO
1565 # ----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1567 # that executables *can* be run.
1570 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1571 if { { ac_try
="$ac_link"
1573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>&5
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1582 { { case "(($ac_try" in
1583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1584 *) ac_try_echo
=$ac_try;;
1586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_try") 2>&5
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; }; }; then :
1594 $as_echo "$as_me: program exited with status $ac_status" >&5
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.
$ac_ext >&5
1598 ac_retval
=$ac_status
1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status
$ac_retval
1606 # ac_fn_c_try_cpp LINENO
1607 # ----------------------
1608 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1612 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } > conftest.i && {
1628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 } # ac_fn_c_check_header_compile
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1684 *) ac_try_echo
=$ac_try;;
1686 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1690 if test -s conftest.err
; then
1691 grep -v '^ *+' conftest.err
>conftest.er1
1692 cat conftest.er1
>&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest
$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest
$ac_exeext
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.
$ac_ext >&5
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status
$ac_retval
1718 } # ac_fn_c_try_link
1720 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1721 # -------------------------------------------
1722 # Tests whether TYPE exists after having included INCLUDES, setting cache
1723 # variable VAR accordingly.
1724 ac_fn_c_check_type
()
1726 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval \
${$3+:} false
; then :
1730 $as_echo_n "(cached) " >&6
1733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1745 if ac_fn_c_try_compile
"$LINENO"; then :
1746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1758 if ac_fn_c_try_compile
"$LINENO"; then :
1763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_type
1773 cat >config.log
<<_ACEOF
1774 This file contains any messages produced by compilers while
1775 running configure, to aid debugging if configure makes a mistake.
1777 It was created by $as_me, which was
1778 generated by GNU Autoconf 2.69. Invocation command line was
1790 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1791 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1792 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1793 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1794 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1796 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1797 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1799 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1800 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1801 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1802 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1803 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1804 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1805 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir
=.
1814 $as_echo "PATH: $as_dir"
1830 # Keep a trace of the command line.
1831 # Strip out --no-create and --no-recursion so they do not pile up.
1832 # Strip out --silent because we don't want to record it for future runs.
1833 # Also quote any args containing shell meta-characters.
1834 # Make two passes to allow for proper duplicate-argument suppression.
1838 ac_must_keep_next
=false
1844 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1845 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1846 |
-silent |
--silent |
--silen |
--sile |
--sil)
1849 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1854 as_fn_append ac_configure_args1
" '$ac_arg'"
1855 if test $ac_must_keep_next = true
; then
1856 ac_must_keep_next
=false
# Got value, back to normal.
1859 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1860 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1861 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1862 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1863 case "$ac_configure_args0 " in
1864 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1867 -* ) ac_must_keep_next
=true
;;
1870 as_fn_append ac_configure_args
" '$ac_arg'"
1875 { ac_configure_args0
=; unset ac_configure_args0
;}
1876 { ac_configure_args1
=; unset ac_configure_args1
;}
1878 # When interrupted or exit'd, cleanup temporary files, and complete
1879 # config.log. We remove comments because anyway the quotes in there
1880 # would cause problems or look ugly.
1881 # WARNING: Use '\'' to represent an apostrophe within the trap.
1882 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1883 trap 'exit_status=$?
1884 # Save into config.log some information that might help in debugging.
1888 $as_echo "## ---------------- ##
1889 ## Cache variables. ##
1890 ## ---------------- ##"
1892 # The following way of writing the cache mishandles newlines in values,
1894 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1895 eval ac_val=\$$ac_var
1899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1903 _ | IFS | as_nl) ;; #(
1904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1905 *) { eval $ac_var=; unset $ac_var;} ;;
1910 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1911 *${as_nl}ac_space=\ *)
1913 "s/'\''/'\''\\\\'\'''\''/g;
1914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1924 $as_echo "## ----------------- ##
1925 ## Output variables. ##
1926 ## ----------------- ##"
1928 for ac_var in $ac_subst_vars
1930 eval ac_val=\$$ac_var
1932 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 $as_echo "$ac_var='\''$ac_val'\''"
1938 if test -n "$ac_subst_files"; then
1939 $as_echo "## ------------------- ##
1940 ## File substitutions. ##
1941 ## ------------------- ##"
1943 for ac_var
in $ac_subst_files
1945 eval ac_val
=\$
$ac_var
1947 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949 $as_echo "$ac_var='\''$ac_val'\''"
1954 if test -s confdefs.h; then
1955 $as_echo "## ----------- ##
1962 test "$ac_signal" != 0 &&
1963 $as_echo "$as_me: caught signal $ac_signal"
1964 $as_echo "$as_me: exit $exit_status"
1966 rm -f core *.core core.conftest.* &&
1967 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1970 for ac_signal
in 1 2 13 15; do
1971 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1975 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1976 rm -f -r conftest
* confdefs.h
1978 $as_echo "/* confdefs.h */" > confdefs.h
1980 # Predefined preprocessor variables.
1982 cat >>confdefs.h
<<_ACEOF
1983 #define PACKAGE_NAME "$PACKAGE_NAME"
1986 cat >>confdefs.h
<<_ACEOF
1987 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1990 cat >>confdefs.h
<<_ACEOF
1991 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1994 cat >>confdefs.h
<<_ACEOF
1995 #define PACKAGE_STRING "$PACKAGE_STRING"
1998 cat >>confdefs.h
<<_ACEOF
1999 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2002 cat >>confdefs.h
<<_ACEOF
2003 #define PACKAGE_URL "$PACKAGE_URL"
2007 # Let the site file select an alternate cache file if it wants to.
2008 # Prefer an explicitly selected file to automatically selected ones.
2011 if test -n "$CONFIG_SITE"; then
2012 # We do not want a PATH search for config.site.
2013 case $CONFIG_SITE in #((
2014 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2015 */*) ac_site_file1
=$CONFIG_SITE;;
2016 *) ac_site_file1
=.
/$CONFIG_SITE;;
2018 elif test "x$prefix" != xNONE
; then
2019 ac_site_file1
=$prefix/share
/config.site
2020 ac_site_file2
=$prefix/etc
/config.site
2022 ac_site_file1
=$ac_default_prefix/share
/config.site
2023 ac_site_file2
=$ac_default_prefix/etc
/config.site
2025 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2027 test "x$ac_site_file" = xNONE
&& continue
2028 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2030 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2031 sed 's/^/| /' "$ac_site_file" >&5
2033 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035 as_fn_error $?
"failed to load site script $ac_site_file
2036 See \`config.log' for more details" "$LINENO" 5; }
2040 if test -r "$cache_file"; then
2041 # Some versions of bash will fail to source /dev/null (special files
2042 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2043 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2045 $as_echo "$as_me: loading cache $cache_file" >&6;}
2047 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2048 *) .
"./$cache_file";;
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2053 $as_echo "$as_me: creating cache $cache_file" >&6;}
2057 # Check that the precious variables saved in the cache have kept the same
2059 ac_cache_corrupted
=false
2060 for ac_var
in $ac_precious_vars; do
2061 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2062 eval ac_new_set
=\
$ac_env_${ac_var}_set
2063 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2064 eval ac_new_val
=\
$ac_env_${ac_var}_value
2065 case $ac_old_set,$ac_new_set in
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2068 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2069 ac_cache_corrupted
=: ;;
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2072 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2073 ac_cache_corrupted
=: ;;
2076 if test "x$ac_old_val" != "x$ac_new_val"; then
2077 # differences in whitespace do not lead to failure.
2078 ac_old_val_w
=`echo x $ac_old_val`
2079 ac_new_val_w
=`echo x $ac_new_val`
2080 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2082 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2083 ac_cache_corrupted
=:
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2086 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2087 eval $ac_var=\
$ac_old_val
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2090 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2092 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2095 # Pass precious variables to config.status.
2096 if test "$ac_new_set" = set; then
2098 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 *) ac_arg
=$ac_var=$ac_new_val ;;
2101 case " $ac_configure_args " in
2102 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2103 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2107 if $ac_cache_corrupted; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2111 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2112 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2114 ## -------------------- ##
2115 ## Main body of script. ##
2116 ## -------------------- ##
2119 ac_cpp
='$CPP $CPPFLAGS'
2120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2128 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2129 if test -f "$ac_dir/install-sh"; then
2131 ac_install_sh
="$ac_aux_dir/install-sh -c"
2133 elif test -f "$ac_dir/install.sh"; then
2135 ac_install_sh
="$ac_aux_dir/install.sh -c"
2137 elif test -f "$ac_dir/shtool"; then
2139 ac_install_sh
="$ac_aux_dir/shtool install -c"
2143 if test -z "$ac_aux_dir"; then
2144 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2147 # These three variables are undocumented and unsupported,
2148 # and are intended to be withdrawn in a future Autoconf release.
2149 # They can cause serious problems if a builder's source tree is in a directory
2150 # whose full name contains unusual characters.
2151 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2152 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2153 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2156 # Find a good install program. We prefer a C program (faster),
2157 # so one script is as good as another. But avoid the broken or
2158 # incompatible versions:
2159 # SysV /etc/install, /usr/sbin/install
2160 # SunOS /usr/etc/install
2161 # IRIX /sbin/install
2163 # AmigaOS /C/install, which installs bootblocks on floppy discs
2164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2167 # OS/2's system install, which has a completely different semantic
2168 # ./install, which can be erroneously created by make from ./install.sh.
2169 # Reject install programs that cannot install multiple files.
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2172 if test -z "$INSTALL"; then
2173 if ${ac_cv_path_install+:} false
; then :
2174 $as_echo_n "(cached) " >&6
2176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir
=.
2181 # Account for people who put trailing slashes in PATH elements.
2182 case $as_dir/ in #((
2183 .
/ | .
// |
/[cC
]/* | \
2184 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2185 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2188 # OSF1 and SCO ODT 3.0 have their own names for install.
2189 # Don't use installbsd from OSF since it installs stuff as root
2191 for ac_prog
in ginstall scoinst
install; do
2192 for ac_exec_ext
in '' $ac_executable_extensions; do
2193 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2194 if test $ac_prog = install &&
2195 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2196 # AIX install. It has an incompatible calling convention.
2198 elif test $ac_prog = install &&
2199 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2200 # program-specific install script used by HP pwplus--don't use.
2203 rm -rf conftest.one conftest.two conftest.dir
2204 echo one
> conftest.one
2205 echo two
> conftest.two
2207 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2208 test -s conftest.one
&& test -s conftest.two
&&
2209 test -s conftest.dir
/conftest.one
&&
2210 test -s conftest.dir
/conftest.two
2212 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2225 rm -rf conftest.one conftest.two conftest.dir
2228 if test "${ac_cv_path_install+set}" = set; then
2229 INSTALL
=$ac_cv_path_install
2231 # As a last resort, use the slow shell script. Don't cache a
2232 # value for INSTALL within a source directory, because that will
2233 # break other packages using the cache if that directory is
2234 # removed, or if the value is a relative name.
2235 INSTALL
=$ac_install_sh
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2239 $as_echo "$INSTALL" >&6; }
2241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2242 # It thinks the first close brace ends the variable substitution.
2243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2247 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2250 ac_cpp
='$CPP $CPPFLAGS'
2251 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2254 if test -n "$ac_tool_prefix"; then
2255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2256 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258 $as_echo_n "checking for $ac_word... " >&6; }
2259 if ${ac_cv_prog_CC+:} false
; then :
2260 $as_echo_n "(cached) " >&6
2262 if test -n "$CC"; then
2263 ac_cv_prog_CC
="$CC" # Let the user override the test.
2265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir
=.
2270 for ac_exec_ext
in '' $ac_executable_extensions; do
2271 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 if test -n "$CC"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2285 $as_echo "$CC" >&6; }
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288 $as_echo "no" >&6; }
2293 if test -z "$ac_cv_prog_CC"; then
2295 # Extract the first word of "gcc", so it can be a program name with args.
2296 set dummy gcc
; ac_word
=$2
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298 $as_echo_n "checking for $ac_word... " >&6; }
2299 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2300 $as_echo_n "(cached) " >&6
2302 if test -n "$ac_ct_CC"; then
2303 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir
=.
2310 for ac_exec_ext
in '' $ac_executable_extensions; do
2311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_ac_ct_CC
="gcc"
2313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2325 $as_echo "$ac_ct_CC" >&6; }
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2328 $as_echo "no" >&6; }
2331 if test "x$ac_ct_CC" = x
; then
2334 case $cross_compiling:$ac_tool_warned in
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2338 ac_tool_warned
=yes ;;
2346 if test -z "$CC"; then
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2349 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351 $as_echo_n "checking for $ac_word... " >&6; }
2352 if ${ac_cv_prog_CC+:} false
; then :
2353 $as_echo_n "(cached) " >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC
="$CC" # Let the user override the test.
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 for ac_exec_ext
in '' $ac_executable_extensions; do
2364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$CC"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2378 $as_echo "$CC" >&6; }
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381 $as_echo "no" >&6; }
2387 if test -z "$CC"; then
2388 # Extract the first word of "cc", so it can be a program name with args.
2389 set dummy cc
; ac_word
=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if ${ac_cv_prog_CC+:} false
; then :
2393 $as_echo_n "(cached) " >&6
2395 if test -n "$CC"; then
2396 ac_cv_prog_CC
="$CC" # Let the user override the test.
2399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir
=.
2404 for ac_exec_ext
in '' $ac_executable_extensions; do
2405 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2406 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2407 ac_prog_rejected
=yes
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 if test $ac_prog_rejected = yes; then
2419 # We found a bogon in the path, so make sure we never use it.
2420 set dummy
$ac_cv_prog_CC
2422 if test $# != 0; then
2423 # We chose a different compiler from the bogus one.
2424 # However, it has the same basename, so the bogon will be chosen
2425 # first if we set CC to just the basename; use the full file name.
2427 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 for ac_prog
in cl.exe
2447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2448 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_CC+:} false
; then :
2452 $as_echo_n "(cached) " >&6
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC
="$CC" # Let the user override the test.
2457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir
=.
2462 for ac_exec_ext
in '' $ac_executable_extensions; do
2463 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 if test -n "$CC"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477 $as_echo "$CC" >&6; }
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2484 test -n "$CC" && break
2487 if test -z "$CC"; then
2489 for ac_prog
in cl.exe
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy
$ac_prog; ac_word
=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2496 $as_echo_n "(cached) " >&6
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir
=.
2506 for ac_exec_ext
in '' $ac_executable_extensions; do
2507 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_CC
="$ac_prog"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2528 test -n "$ac_ct_CC" && break
2531 if test "x$ac_ct_CC" = x
; then
2534 case $cross_compiling:$ac_tool_warned in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2538 ac_tool_warned
=yes ;;
2547 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 as_fn_error $?
"no acceptable C compiler found in \$PATH
2550 See \`config.log' for more details" "$LINENO" 5; }
2552 # Provide some information about the compiler.
2553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2556 for ac_option
in --version -v -V -qversion; do
2557 { { ac_try
="$ac_compiler $ac_option >&5"
2559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2566 if test -s conftest.err; then
2568 ... rest of stderr output deleted ...
2569 10q' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
2572 rm -f conftest.er1 conftest.err
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2588 ac_clean_files_save=$ac_clean_files
2589 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2590 # Try to create an executable without -o first, disregard a.out.
2591 # It will help us diagnose broken compilers, and finding out an intuition
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2594 $as_echo_n "checking whether the C compiler works... " >&6; }
2595 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2597 # The possible output files:
2598 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2601 for ac_file in $ac_files
2604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2605 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2610 if { { ac_try="$ac_link_default"
2612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2613 *) ac_try_echo
=$ac_try;;
2615 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_link_default") 2>&5
2619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; }; then :
2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2622 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2623 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2624 # so that the user can short-circuit this test for compilers unknown to
2626 for ac_file
in $ac_files ''
2628 test -f "$ac_file" ||
continue
2630 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2633 # We found the default executable, but exeext='' is most
2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2639 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 # We set ac_cv_exeext here because the later test for it is not
2642 # safe: cross compilers may not add the suffix if given an `-o'
2643 # argument, so we may need to know it at that point already.
2644 # Even if this section looks crufty: it has the advantage of
2651 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2656 if test -z "$ac_file"; then :
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 $as_echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.
$ac_ext >&5
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 as_fn_error
77 "C compiler cannot create executables
2665 See \`config.log' for more details" "$LINENO" 5; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2668 $as_echo "yes" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2671 $as_echo_n "checking for C compiler default output file name... " >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2673 $as_echo "$ac_file" >&6; }
2674 ac_exeext
=$ac_cv_exeext
2676 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2677 ac_clean_files
=$ac_clean_files_save
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2679 $as_echo_n "checking for suffix of executables... " >&6; }
2680 if { { ac_try
="$ac_link"
2682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686 $as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_link") 2>&5
2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690 test $ac_status = 0; }; then :
2691 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2692 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2693 # work properly (i.e., refer to `conftest.exe'), while it won't with
2695 for ac_file
in conftest.exe conftest conftest.
*; do
2696 test -f "$ac_file" ||
continue
2698 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2699 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2708 See \`config.log' for more details" "$LINENO" 5; }
2710 rm -f conftest conftest
$ac_cv_exeext
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2712 $as_echo "$ac_cv_exeext" >&6; }
2714 rm -f conftest.
$ac_ext
2715 EXEEXT
=$ac_cv_exeext
2717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2723 FILE *f = fopen ("conftest.out", "w");
2724 return ferror (f) || fclose (f) != 0;
2730 ac_clean_files
="$ac_clean_files conftest.out"
2731 # Check that the compiler produces executables we can run. If not, either
2732 # the compiler is broken, or we cross compile.
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2734 $as_echo_n "checking whether we are cross compiling... " >&6; }
2735 if test "$cross_compiling" != yes; then
2736 { { ac_try
="$ac_link"
2738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }
2747 if { ac_try='./conftest$ac_cv_exeext'
2748 { { case "(($ac_try" in
2749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2750 *) ac_try_echo
=$ac_try;;
2752 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753 $as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_try") 2>&5
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }; }; then
2760 if test "$cross_compiling" = maybe
; then
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error $?
"cannot run C compiled programs.
2766 If you meant to cross compile, use \`--host'.
2767 See \`config.log' for more details" "$LINENO" 5; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2772 $as_echo "$cross_compiling" >&6; }
2774 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2775 ac_clean_files
=$ac_clean_files_save
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2777 $as_echo_n "checking for suffix of object files... " >&6; }
2778 if ${ac_cv_objext+:} false
; then :
2779 $as_echo_n "(cached) " >&6
2781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2792 rm -f conftest.o conftest.obj
2793 if { { ac_try
="$ac_compile"
2795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_compile") 2>&5
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }; then :
2804 for ac_file in conftest.o conftest.obj conftest.*; do
2805 test -f "$ac_file" || continue;
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2813 $as_echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2819 See \
`config.log' for more details" "$LINENO" 5; }
2821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2824 $as_echo "$ac_cv_objext" >&6; }
2825 OBJEXT=$ac_cv_objext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2828 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2829 if ${ac_cv_c_compiler_gnu+:} false; then :
2830 $as_echo_n "(cached) " >&6
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833 /* end confdefs.h. */
2846 if ac_fn_c_try_compile "$LINENO"; then :
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2856 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2857 if test $ac_compiler_gnu = yes; then
2862 ac_test_CFLAGS=${CFLAGS+set}
2863 ac_save_CFLAGS=$CFLAGS
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2865 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2866 if ${ac_cv_prog_cc_g+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 ac_save_c_werror_flag=$ac_c_werror_flag
2870 ac_c_werror_flag=yes
2873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2874 /* end confdefs.h. */
2884 if ac_fn_c_try_compile "$LINENO"; then :
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2899 if ac_fn_c_try_compile "$LINENO"; then :
2902 ac_c_werror_flag=$ac_save_c_werror_flag
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2915 if ac_fn_c_try_compile "$LINENO"; then :
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 ac_c_werror_flag=$ac_save_c_werror_flag
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2926 $as_echo "$ac_cv_prog_cc_g" >&6; }
2927 if test "$ac_test_CFLAGS" = set; then
2928 CFLAGS=$ac_save_CFLAGS
2929 elif test $ac_cv_prog_cc_g = yes; then
2930 if test "$GCC" = yes; then
2936 if test "$GCC" = yes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2943 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2944 if ${ac_cv_prog_cc_c89+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 ac_cv_prog_cc_c89=no
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955 struct buf { int x; };
2956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957 static char *e (p, i)
2963 static char *f (char * (*g) (char **, int), char **p, ...)
2968 s = g (p, va_arg (v,int));
2973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
2976 as 'x'. The following induces an error, until -std is added to get
2977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
2979 that's true only with -std. */
2980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3004 CC="$ac_save_CC $ac_arg"
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006 ac_cv_prog_cc_c89=$ac_arg
3008 rm -f core conftest.err conftest.$ac_objext
3009 test "x$ac_cv_prog_cc_c89" != "xno" && break
3011 rm -f conftest.$ac_ext
3016 case "x$ac_cv_prog_cc_c89" in
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3019 $as_echo "none needed" >&6; } ;;
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3022 $as_echo "unsupported" >&6; } ;;
3024 CC="$CC $ac_cv_prog_cc_c89"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3028 if test "x$ac_cv_prog_cc_c89" != xno; then :
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 # Put a plausible default for CC_FOR_BUILD in Makefile.
3040 if test "x$cross_compiling" = "xno"; then
3041 CC_FOR_BUILD='$(CC)'
3045 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
3048 # If we haven't got the data from the intl directory,
3049 # assume NLS is disabled.
3058 if test -f ../../intl/config.intl; then
3059 . ../../intl/config.intl
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3062 $as_echo_n "checking whether NLS is requested... " >&6; }
3063 if test x"$USE_NLS" != xyes; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3070 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3074 $as_echo_n "checking for catalogs to be installed... " >&6; }
3075 # Look for .po and .gmo files in the source directory.
3078 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3079 # If there aren't any .gmo files the shell will give us the
3080 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3082 case "$cat" in *\**)
3085 # The quadruple backslash is collapsed to a double backslash
3086 # by the backticks, then collapsed again by the double quotes,
3087 # leaving us with one backslash in the sed expression (right
3088 # before the dot that mustn't act as a wildcard).
3089 cat=`echo $cat |
sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3090 lang=`echo $cat |
sed -e "s!\\\\.gmo!!"`
3091 # The user is allowed to set LINGUAS to a list of languages to
3092 # install catalogs for. If it's empty that means "all of them."
3093 if test "x$LINGUAS" = x; then
3094 CATALOGS="$CATALOGS $cat"
3095 XLINGUAS="$XLINGUAS $lang"
3097 case "$LINGUAS" in *$lang*)
3098 CATALOGS="$CATALOGS $cat"
3099 XLINGUAS="$XLINGUAS $lang"
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3106 $as_echo "$LINGUAS" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
3121 $as_echo_n "checking whether to enable sim asserts... " >&6; }
3123 # Check whether --enable-sim-assert was given.
3124 if test "${enable_sim_assert+set}" = set; then :
3125 enableval=$enable_sim_assert; case "${enableval}" in
3126 yes) sim_assert="1";;
3127 no) sim_assert="0";;
3128 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
3132 cat >>confdefs.h <<_ACEOF
3133 #define WITH_ASSERT $sim_assert
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
3137 $as_echo "$sim_assert" >&6; }
3140 # Check whether --enable-sim-bitsize was given.
3141 if test "${enable_sim_bitsize+set}" = set; then :
3142 enableval=$enable_sim_bitsize; case "${enableval}" in
3143 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3144 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3146 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3147 echo "Setting bitsize flags = $sim_bitsize" 6>&1
3154 # Check whether --enable-sim-config was given.
3155 if test "${enable_sim_config+set}" = set; then :
3156 enableval=$enable_sim_config; case "${enableval}" in
3157 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
3158 *) if test -f "${srcdir}/${enableval}"; then
3159 sim_config="${enableval}";
3160 elif test -f "${srcdir}/${enableval}-config.h"; then
3161 sim_config="${enableval}-config.h"
3163 as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
3164 sim_config=std-config.h
3167 if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
3168 echo "Setting config flags = $sim_config" 6>&1
3171 sim_config="std-config.h"
3172 if test x"$silent" != x"yes"; then
3173 echo "Setting config flags = $sim_config" 6>&1
3178 # Check whether --enable-sim-decode-mechanism was given.
3179 if test "${enable_sim_decode_mechanism+set}" = set; then :
3180 enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3181 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3182 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
3183 *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3184 sim_decode_mechanism="switch";;
3186 if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3187 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3190 sim_decode_mechanism=""
3191 if test x"$silent" != x"yes"; then
3192 echo "Setting decode mechanism flags = $sim_decode_mechanism"
3197 # Check whether --enable-sim-default-model was given.
3198 if test "${enable_sim_default_model+set}" = set; then :
3199 enableval=$enable_sim_default_model; case "${enableval}" in
3200 yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3201 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3203 if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3204 echo "Setting default-model flags = $sim_default_model" 6>&1
3207 sim_default_model=""
3211 # Check whether --enable-sim-duplicate was given.
3212 if test "${enable_sim_duplicate+set}" = set; then :
3213 enableval=$enable_sim_duplicate; case "${enableval}" in
3216 *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3218 if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3219 echo "Setting duplicate flags = $sim_dup" 6>&1
3223 if test x"$silent" != x"yes"; then
3224 echo "Setting duplicate flags = $sim_dup" 6>&1
3229 # Check whether --enable-sim-endian was given.
3230 if test "${enable_sim_endian+set}" = set; then :
3231 enableval=$enable_sim_endian; case "${enableval}" in
3232 yes) case "$target" in
3233 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3234 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3235 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3237 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
3238 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
3239 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
3240 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
3242 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
3243 echo "Setting endian flags = $sim_endian" 6>&1
3250 # Check whether --enable-sim-filter was given.
3251 if test "${enable_sim_filter+set}" = set; then :
3252 enableval=$enable_sim_filter; case "${enableval}" in
3253 yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3255 *) sim_filter="-F $enableval";;
3257 if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3258 echo "Setting filter flags = $sim_filter" 6>&1
3261 sim_filter="-F 32,f,o"
3262 if test x"$silent" != x"yes"; then
3263 echo "Setting filter flags = $sim_filter" 6>&1
3268 # Check whether --enable-sim-float was given.
3269 if test "${enable_sim_float+set}" = set; then :
3270 enableval=$enable_sim_float; case "${enableval}" in
3271 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3272 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3273 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3274 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3275 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3277 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3278 echo "Setting float flags = $sim_float" 6>&1
3283 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3284 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3292 $as_echo_n "checking if union semun defined... " >&6; }
3293 if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3299 #include <sys/types.h>
3300 #include <sys/ipc.h>
3301 #include <sys/sem.h>
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_cv_has_union_semun="yes"
3313 ac_cv_has_union_semun="no"
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3317 $as_echo "$ac_cv_has_union_semun" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3321 $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3324 if test "$ac_cv_has_union_semun" = "yes"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3326 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3327 if ${ac_cv_sysv_sem+:} false; then :
3328 $as_echo_n "(cached) " >&6
3331 if test "$cross_compiling" = yes; then :
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3337 #include <sys/types.h>
3338 #include <sys/ipc.h>
3339 #include <sys/sem.h>
3343 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3346 arg.val = 0; /* avoid implicit type cast to union */
3347 if (semctl(id, 0, IPC_RMID, arg) == -1)
3353 if ac_fn_c_try_run "$LINENO"; then :
3354 ac_cv_sysv_sem="yes"
3358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3359 conftest.$ac_objext conftest.beam conftest.$ac_ext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3365 $as_echo "$ac_cv_sysv_sem" >&6; }
3366 else # semun is not defined
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3368 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
3369 if ${ac_cv_sysv_sem+:} false; then :
3370 $as_echo_n "(cached) " >&6
3373 if test "$cross_compiling" = yes; then :
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3379 #include <sys/types.h>
3380 #include <sys/ipc.h>
3381 #include <sys/sem.h>
3384 struct semid_ds *buf;
3390 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3393 arg.val = 0; /* avoid implicit type cast to union */
3394 if (semctl(id, 0, IPC_RMID, arg) == -1)
3400 if ac_fn_c_try_run "$LINENO"; then :
3401 ac_cv_sysv_sem="yes"
3405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3406 conftest.$ac_objext conftest.beam conftest.$ac_ext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3412 $as_echo "$ac_cv_sysv_sem" >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3416 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
3417 if ${ac_cv_sysv_shm+:} false; then :
3418 $as_echo_n "(cached) " >&6
3421 if test "$cross_compiling" = yes; then :
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3427 #include <sys/types.h>
3428 #include <sys/ipc.h>
3429 #include <sys/shm.h>
3431 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3434 if (shmctl(id, IPC_RMID, 0) == -1)
3440 if ac_fn_c_try_run "$LINENO"; then :
3441 ac_cv_sysv_shm="yes"
3445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3446 conftest.$ac_objext conftest.beam conftest.$ac_ext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3452 $as_echo "$ac_cv_sysv_shm" >&6; }
3454 if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3455 sim_sysv_ipc_hw=",sem,shm";
3460 if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3462 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3467 # Check whether --enable-sim-hardware was given.
3468 if test "${enable_sim_hardware+set}" = set; then :
3469 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}"
3470 case "${enableval}" in
3472 no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3473 ,*) hardware="${hardware}${enableval}";;
3474 *,) hardware="${enableval}${hardware}";;
3475 *) hardware="${enableval}"'';;
3477 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3478 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3479 if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3480 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3483 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3484 sim_hw_src=`echo $hardware |
sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s
'/$/.c/'`
3485 sim_hw_obj=`echo $sim_hw_src |
sed -e 's/\.c/.o/g'`
3486 if test x"$silent" != x"yes"; then
3487 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3491 # Check whether --enable-sim-hostbitsize was given.
3492 if test "${enable_sim_hostbitsize+set}" = set; then :
3493 enableval=$enable_sim_hostbitsize; case "${enableval}" in
3494 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
3495 *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
3497 if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
3498 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3512 # On Suns, sometimes $CPP names a directory.
3513 if test -n "$CPP" && test -d "$CPP"; then
3516 if test -z "$CPP"; then
3517 if ${ac_cv_prog_CPP+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 # Double quotes because CPP needs to be expanded
3521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3524 for ac_c_preproc_warn_flag in '' yes
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3535 # include <limits.h>
3537 # include <assert.h>
3541 if ac_fn_c_try_cpp "$LINENO"; then :
3544 # Broken: fails on valid input.
3547 rm -f conftest.err conftest.i conftest.$ac_ext
3549 # OK, works on sane cases. Now check whether nonexistent headers
3550 # can be detected and how.
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553 #include <ac_nonexistent.h>
3555 if ac_fn_c_try_cpp "$LINENO"; then :
3556 # Broken: success on invalid input.
3559 # Passes both tests.
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3567 rm -f conftest.i conftest.err conftest.
$ac_ext
3568 if $ac_preproc_ok; then :
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3581 $as_echo "$CPP" >&6; }
3583 for ac_c_preproc_warn_flag
in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error" is here to catch this case.
3591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3594 # include <limits.h>
3596 # include <assert.h>
3600 if ac_fn_c_try_cpp
"$LINENO"; then :
3603 # Broken: fails on valid input.
3606 rm -f conftest.err conftest.i conftest.
$ac_ext
3608 # OK, works on sane cases. Now check whether nonexistent headers
3609 # can be detected and how.
3610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <ac_nonexistent.h>
3614 if ac_fn_c_try_cpp
"$LINENO"; then :
3615 # Broken: success on invalid input.
3618 # Passes both tests.
3622 rm -f conftest.err conftest.i conftest.
$ac_ext
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.i conftest.err conftest.
$ac_ext
3627 if $ac_preproc_ok; then :
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details" "$LINENO" 5; }
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3644 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3645 if ${ac_cv_path_GREP+:} false
; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -z "$GREP"; then
3649 ac_path_GREP_found
=false
3650 # Loop through the user's path and test for each of PROGNAME-LIST
3651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3652 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3655 test -z "$as_dir" && as_dir
=.
3656 for ac_prog
in grep ggrep
; do
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3659 as_fn_executable_p
"$ac_path_GREP" ||
continue
3660 # Check for GNU ac_path_GREP and select it if it is found.
3661 # Check for GNU $ac_path_GREP
3662 case `"$ac_path_GREP" --version 2>&1` in
3664 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3667 $as_echo_n 0123456789 >"conftest.in"
3670 cat "conftest.in" "conftest.in" >"conftest.tmp"
3671 mv "conftest.tmp" "conftest.in"
3672 cp "conftest.in" "conftest.nl"
3673 $as_echo 'GREP' >> "conftest.nl"
3674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3675 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3676 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3678 # Best one so far, save it but keep looking for a better one
3679 ac_cv_path_GREP
="$ac_path_GREP"
3680 ac_path_GREP_max
=$ac_count
3682 # 10*(2^10) chars as input seems more than enough
3683 test $ac_count -gt 10 && break
3685 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3688 $ac_path_GREP_found && break 3
3693 if test -z "$ac_cv_path_GREP"; then
3694 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3697 ac_cv_path_GREP
=$GREP
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3702 $as_echo "$ac_cv_path_GREP" >&6; }
3703 GREP
="$ac_cv_path_GREP"
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3707 $as_echo_n "checking for egrep... " >&6; }
3708 if ${ac_cv_path_EGREP+:} false
; then :
3709 $as_echo_n "(cached) " >&6
3711 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3712 then ac_cv_path_EGREP
="$GREP -E"
3714 if test -z "$EGREP"; then
3715 ac_path_EGREP_found
=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_prog
in egrep; do
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3725 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3726 # Check for GNU ac_path_EGREP and select it if it is found.
3727 # Check for GNU $ac_path_EGREP
3728 case `"$ac_path_EGREP" --version 2>&1` in
3730 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3733 $as_echo_n 0123456789 >"conftest.in"
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'EGREP' >> "conftest.nl"
3740 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3741 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3742 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3743 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_EGREP
="$ac_path_EGREP"
3746 ac_path_EGREP_max
=$ac_count
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3751 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3754 $ac_path_EGREP_found && break 3
3759 if test -z "$ac_cv_path_EGREP"; then
3760 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763 ac_cv_path_EGREP
=$EGREP
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3769 $as_echo "$ac_cv_path_EGREP" >&6; }
3770 EGREP
="$ac_cv_path_EGREP"
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3774 $as_echo_n "checking for ANSI C header files... " >&6; }
3775 if ${ac_cv_header_stdc+:} false
; then :
3776 $as_echo_n "(cached) " >&6
3778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3793 if ac_fn_c_try_compile
"$LINENO"; then :
3794 ac_cv_header_stdc
=yes
3796 ac_cv_header_stdc
=no
3798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3800 if test $ac_cv_header_stdc = yes; then
3801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "memchr" >/dev
/null
2>&1; then :
3811 ac_cv_header_stdc
=no
3817 if test $ac_cv_header_stdc = yes; then
3818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 $EGREP "free" >/dev
/null
2>&1; then :
3828 ac_cv_header_stdc
=no
3834 if test $ac_cv_header_stdc = yes; then
3835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3836 if test "$cross_compiling" = yes; then :
3839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3843 #if ((' ' & 0x0FF) == 0x020)
3844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3847 # define ISLOWER(c) \
3848 (('a' <= (c) && (c) <= 'i') \
3849 || ('j' <= (c) && (c) <= 'r') \
3850 || ('s' <= (c) && (c) <= 'z'))
3851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3859 for (i = 0; i < 256; i++)
3860 if (XOR (islower (i), ISLOWER (i))
3861 || toupper (i) != TOUPPER (i))
3866 if ac_fn_c_try_run
"$LINENO"; then :
3869 ac_cv_header_stdc
=no
3871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3878 $as_echo "$ac_cv_header_stdc" >&6; }
3879 if test $ac_cv_header_stdc = yes; then
3881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3886 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3887 inttypes.h stdint.h unistd.h
3889 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3890 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3892 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3893 cat >>confdefs.h
<<_ACEOF
3894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902 # Check whether --enable-sim-hostendian was given.
3903 if test "${enable_sim_hostendian+set}" = set; then :
3904 enableval
=$enable_sim_hostendian; case "${enableval}" in
3905 no
) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0";;
3906 b
*|B
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
3907 l
*|L
*) sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
3908 *) as_fn_error $?
"\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian
="";;
3910 if test x
"$silent" != x
"yes" && test x
"$sim_hostendian" != x
""; then
3911 echo "Setting hostendian flags = $sim_hostendian" 6>&1
3915 if test "x$cross_compiling" = "xno"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3917 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3918 if ${ac_cv_c_bigendian+:} false
; then :
3919 $as_echo_n "(cached) " >&6
3921 ac_cv_c_bigendian
=unknown
3922 # See if we're dealing with a universal compiler.
3923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925 #ifndef __APPLE_CC__
3926 not a universal capable compiler
3931 if ac_fn_c_try_compile
"$LINENO"; then :
3933 # Check for potential -arch flags. It is not universal unless
3934 # there are at least two -arch flags with different values.
3937 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3938 if test -n "$ac_prev"; then
3940 i?
86 | x86_64 | ppc | ppc64
)
3941 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
3944 ac_cv_c_bigendian
=universal
3950 elif test "x$ac_word" = "x-arch"; then
3955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3956 if test $ac_cv_c_bigendian = unknown
; then
3957 # See if sys/param.h defines the BYTE_ORDER macro.
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/param.h>
3966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3976 if ac_fn_c_try_compile
"$LINENO"; then :
3977 # It does; now see whether it defined to BIG_ENDIAN or not.
3978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <sys/types.h>
3981 #include <sys/param.h>
3986 #if BYTE_ORDER != BIG_ENDIAN
3994 if ac_fn_c_try_compile
"$LINENO"; then :
3995 ac_cv_c_bigendian
=yes
3997 ac_cv_c_bigendian
=no
3999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4003 if test $ac_cv_c_bigendian = unknown
; then
4004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4012 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4020 if ac_fn_c_try_compile
"$LINENO"; then :
4021 # It does; now see whether it defined to _BIG_ENDIAN or not.
4022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4037 if ac_fn_c_try_compile
"$LINENO"; then :
4038 ac_cv_c_bigendian
=yes
4040 ac_cv_c_bigendian
=no
4042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4046 if test $ac_cv_c_bigendian = unknown
; then
4047 # Compile a test program.
4048 if test "$cross_compiling" = yes; then :
4049 # Try to guess by grepping values from an object file.
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 short int ascii_mm[] =
4053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4054 short int ascii_ii[] =
4055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4056 int use_ascii (int i) {
4057 return ascii_mm[i] + ascii_ii[i];
4059 short int ebcdic_ii[] =
4060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4061 short int ebcdic_mm[] =
4062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4063 int use_ebcdic (int i) {
4064 return ebcdic_mm[i] + ebcdic_ii[i];
4071 return use_ascii (foo) == use_ebcdic (foo);
4076 if ac_fn_c_try_compile
"$LINENO"; then :
4077 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4078 ac_cv_c_bigendian
=yes
4080 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4081 if test "$ac_cv_c_bigendian" = unknown
; then
4082 ac_cv_c_bigendian
=no
4084 # finding both strings is unlikely to happen, but who knows?
4085 ac_cv_c_bigendian
=unknown
4089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 $ac_includes_default
4098 /* Are we little or big endian? From Harbison&Steele. */
4102 char c[sizeof (long int)];
4105 return u.c[sizeof (long int) - 1] == 1;
4111 if ac_fn_c_try_run
"$LINENO"; then :
4112 ac_cv_c_bigendian
=no
4114 ac_cv_c_bigendian
=yes
4116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4123 $as_echo "$ac_cv_c_bigendian" >&6; }
4124 case $ac_cv_c_bigendian in #(
4126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4132 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4136 as_fn_error $?
"unknown endianness
4137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4140 if test $ac_cv_c_bigendian = yes; then
4141 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4143 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4146 sim_hostendian
="-DWITH_HOST_BYTE_ORDER=0"
4151 # Check whether --enable-sim-icache was given.
4152 if test "${enable_sim_icache+set}" = set; then :
4153 enableval
=$enable_sim_icache; icache
="-R"
4154 case "${enableval}" in
4155 yes) icache
="1024"; sim_icache
="-I $icache";;
4156 no
) sim_icache
="-R";;
4159 for x
in `echo "${enableval}" | sed -e "s/,/ /g"`; do
4161 define
) sim_icache
="${sim_icache}R";;
4162 semantic
) sim_icache
="${sim_icache}C";;
4163 insn
) sim_icache
="${sim_icache}S";;
4164 0*|
1*|
2*|
3*|
4*|
5*|
6*|
7*|
8*|
9*) icache
=$x;;
4165 *) as_fn_error $?
"\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache
="";;
4168 sim_icache
="${sim_icache}I $icache";;
4170 if test x
"$silent" != x
"yes" && test x
"$icache" != x
""; then
4171 echo "Setting instruction cache size to $icache ($sim_icache)"
4174 sim_icache
="-CSRI 1024"
4175 if test x
"$silent" != x
"yes"; then
4176 echo "Setting instruction cache size to 1024 ($sim_icache)"
4181 # Check whether --enable-sim-inline was given.
4182 if test "${enable_sim_inline+set}" = set; then :
4183 enableval
=$enable_sim_inline; sim_inline
=""
4184 case "$enableval" in
4185 no
) sim_inline
="-DDEFAULT_INLINE=0";;
4186 0) sim_inline
="-DDEFAULT_INLINE=0";;
4187 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_INLINE";;
4188 1) sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
4189 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
4192 *_INLINE
=*) new_flag
="-D$x";;
4193 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4194 *_INLINE
) new_flag
="-D$x=ALL_INLINE";;
4195 *) new_flag
="-D$x""_INLINE=ALL_INLINE";;
4197 if test x
"$sim_inline" = x
""; then
4198 sim_inline
="$new_flag"
4200 sim_inline
="$sim_inline $new_flag"
4204 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
4205 echo "Setting inline flags = $sim_inline" 6>&1
4208 if test x
"$GCC" != ""; then
4209 sim_inline
="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
4210 if test x
"$silent" != x
"yes"; then
4211 echo "Setting inline flags = $sim_inline" 6>&1
4219 # Check whether --enable-sim-jump was given.
4220 if test "${enable_sim_jump+set}" = set; then :
4221 enableval
=$enable_sim_jump; case "${enableval}" in
4222 yes) sim_jump
="-J";;
4224 *) as_fn_error $?
"\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump
="";;
4226 if test x
"$silent" != x
"yes" && test x
"$sim_jump" != x
""; then
4227 echo "Setting jump flag = $sim_jump" 6>&1
4231 if test x
"$silent" != x
"yes"; then
4232 echo "Setting jump flag = $sim_jump" 6>&1
4237 # Check whether --enable-sim-line-nr was given.
4238 if test "${enable_sim_line_nr+set}" = set; then :
4239 enableval
=$enable_sim_line_nr; case "${enableval}" in
4240 yes) sim_line_nr
="";;
4241 no
) sim_line_nr
="-L";;
4242 *) as_fn_error $?
"\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr
="";;
4244 if test x
"$silent" != x
"yes" && test x
"$sim_line_nr" != x
""; then
4245 echo "Setting warning flags = $sim_line_nr" 6>&1
4252 # Check whether --enable-sim-model was given.
4253 if test "${enable_sim_model+set}" = set; then :
4254 enableval
=$enable_sim_model; case "${enableval}" in
4255 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
4256 *) sim_model
="-DWITH_MODEL=${enableval}";;
4258 if test x
"$silent" != x
"yes" && test x
"$sim_model" != x
""; then
4259 echo "Setting model flags = $sim_model" 6>&1
4266 # Check whether --enable-sim-model-issue was given.
4267 if test "${enable_sim_model_issue+set}" = set; then :
4268 enableval
=$enable_sim_model_issue; case "${enableval}" in
4269 yes) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
4270 no
) sim_model_issue
="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
4271 *) as_fn_error $?
"\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue
="";;
4273 if test x
"$silent" != x
"yes"; then
4274 echo "Setting model-issue flags = $sim_model_issue" 6>&1
4281 # Check whether --enable-sim-monitor was given.
4282 if test "${enable_sim_monitor+set}" = set; then :
4283 enableval
=$enable_sim_monitor; case "${enableval}" in
4284 yes) sim_monitor
="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
4285 no
) sim_monitor
="-DWITH_MON=0";;
4286 instruction
) sim_monitor
="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
4287 memory
) sim_monitor
="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
4288 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
4290 if test x
"$silent" != x
"yes" && test x
"$sim_monitor" != x
""; then
4291 echo "Setting monitor flags = $sim_monitor" 6>&1
4298 # Check whether --enable-sim-opcode was given.
4299 if test "${enable_sim_opcode+set}" = set; then :
4300 enableval
=$enable_sim_opcode; case "${enableval}" in
4301 yes|no
) as_fn_error $?
"\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
4302 *) if test -f "${srcdir}/${enableval}"; then
4303 sim_opcode
="${enableval}"
4304 elif test -f "${srcdir}/dc-${enableval}"; then
4305 sim_opcode
="dc-${enableval}"
4307 as_fn_error $?
"\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
4308 sim_opcode
="dc-complex"
4311 if test x
"$silent" != x
"yes" && test x
"$sim_opcode" != x
""; then
4312 echo "Setting opcode flags = $sim_opcode" 6>&1
4315 sim_opcode
="dc-complex"
4316 if test x
"$silent" != x
"yes"; then
4317 echo "Setting opcode flags = $sim_opcode"
4322 # Check whether --enable-sim-packages was given.
4323 if test "${enable_sim_packages+set}" = set; then :
4324 enableval
=$enable_sim_packages; packages
=disklabel
4325 case "${enableval}" in
4327 no
) as_fn_error $?
"\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages
="";;
4328 ,*) packages
="${packages}${enableval}";;
4329 *,) packages
="${enableval}${packages}";;
4330 *) packages
="${enableval}"'';;
4332 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4333 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4334 if test x
"$silent" != x
"yes" && test x
"$packages" != x
""; then
4335 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4339 sim_pk_src
=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
4340 sim_pk_obj
=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
4341 if test x
"$silent" != x
"yes"; then
4342 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
4347 # Check whether --enable-sim-reserved-bits was given.
4348 if test "${enable_sim_reserved_bits+set}" = set; then :
4349 enableval
=$enable_sim_reserved_bits; case "${enableval}" in
4350 yes) sim_reserved
="-DWITH_RESERVED_BITS=1";;
4351 no
) sim_reserved
="-DWITH_RESERVED_BITS=0";;
4352 *) as_fn_error $?
"\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved
="";;
4354 if test x
"$silent" != x
"yes" && test x
"$sim_reserved" != x
""; then
4355 echo "Setting reserved flags = $sim_reserved" 6>&1
4362 # Check whether --enable-sim-smp was given.
4363 if test "${enable_sim_smp+set}" = set; then :
4364 enableval
=$enable_sim_smp; case "${enableval}" in
4365 yes) sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5";;
4366 no
) sim_smp
="-DWITH_SMP=0" ; sim_igen_smp
="-N 0";;
4367 *) sim_smp
="-DWITH_SMP=$enableval" ; sim_igen_smp
="-N $enableval";;
4369 if test x
"$silent" != x
"yes" && test x
"$sim_smp" != x
""; then
4370 echo "Setting smp flags = $sim_smp" 6>&1
4373 sim_smp
="-DWITH_SMP=5" ; sim_igen_smp
="-N 5"
4374 if test x
"$silent" != x
"yes"; then
4375 echo "Setting smp flags = $sim_smp" 6>&1
4380 # Check whether --enable-sim-switch was given.
4381 if test "${enable_sim_switch+set}" = set; then :
4382 enableval
=$enable_sim_switch; case "${enableval}" in
4383 yes) sim_switch
="-s";;
4385 *) as_fn_error $?
"\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch
="";;
4387 if test x
"$silent" != x
"yes" && test x
"$sim_switch" != x
""; then
4388 echo "Setting switch flags = $sim_switch" 6>&1
4392 if test x
"$silent" != x
"yes"; then
4393 echo "Setting switch flags = $sim_switch" 6>&1
4398 # Check whether --enable-sim-timebase was given.
4399 if test "${enable_sim_timebase+set}" = set; then :
4400 enableval
=$enable_sim_timebase; case "${enableval}" in
4401 yes) sim_timebase
="-DWITH_TIME_BASE=1";;
4402 no
) sim_timebase
="-DWITH_TIME_BASE=0";;
4403 *) as_fn_error $?
"\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase
="";;
4405 if test x
"$silent" != x
"yes" && test x
"$sim_timebase" != x
""; then
4406 echo "Setting timebase flags = $sim_timebase" 6>&1
4413 # Check whether --enable-werror was given.
4414 if test "${enable_werror+set}" = set; then :
4415 enableval
=$enable_werror; case "${enableval}" in
4416 yes | y
) ERROR_ON_WARNING
="yes" ;;
4417 no | n
) ERROR_ON_WARNING
="no" ;;
4418 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4422 # Enable -Werror by default when using gcc
4423 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4424 ERROR_ON_WARNING
=yes
4427 if test "${ERROR_ON_WARNING}" = yes ; then
4428 WERROR_CFLAGS
="-Werror"
4431 *-*-mingw32*) WERROR_CFLAGS
="$WERROR_CFLAGS -Wno-format" ;;
4435 # Check whether --enable-sim-warnings was given.
4436 if test "${enable_sim_warnings+set}" = set; then :
4437 enableval
=$enable_sim_warnings; case "${enableval}" in
4438 yes) sim_warnings
="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
4439 no
) sim_warnings
="-w";;
4440 *) sim_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4442 if test x
"$silent" != x
"yes" && test x
"$sim_warnings" != x
""; then
4443 echo "Setting warning flags = $sim_warnings" 6>&1
4450 # Check whether --enable-sim-xor-endian was given.
4451 if test "${enable_sim_xor_endian+set}" = set; then :
4452 enableval
=$enable_sim_xor_endian; case "${enableval}" in
4453 yes) sim_xor_endian
="-DWITH_XOR_ENDIAN=8";;
4454 no
) sim_xor_endian
="-DWITH_XOR_ENDIAN=0";;
4455 *) sim_xor_endian
="-DWITH_XOR_ENDIAN=$enableval";;
4457 if test x
"$silent" != x
"yes" && test x
"$sim_xor_endian" != x
""; then
4458 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
4465 # Make sure we can run config.sub.
4466 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4467 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4470 $as_echo_n "checking build system type... " >&6; }
4471 if ${ac_cv_build+:} false
; then :
4472 $as_echo_n "(cached) " >&6
4474 ac_build_alias
=$build_alias
4475 test "x$ac_build_alias" = x
&&
4476 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4477 test "x$ac_build_alias" = x
&&
4478 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4479 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4480 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4484 $as_echo "$ac_cv_build" >&6; }
4485 case $ac_cv_build in
4487 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4490 ac_save_IFS
=$IFS; IFS
='-'
4496 # Remember, the first character of IFS is used to create $*,
4497 # except with old shells:
4500 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4504 $as_echo_n "checking host system type... " >&6; }
4505 if ${ac_cv_host+:} false
; then :
4506 $as_echo_n "(cached) " >&6
4508 if test "x$host_alias" = x
; then
4509 ac_cv_host
=$ac_cv_build
4511 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4512 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4517 $as_echo "$ac_cv_host" >&6; }
4520 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4523 ac_save_IFS
=$IFS; IFS
='-'
4529 # Remember, the first character of IFS is used to create $*,
4530 # except with old shells:
4533 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4537 $as_echo_n "checking target system type... " >&6; }
4538 if ${ac_cv_target+:} false
; then :
4539 $as_echo_n "(cached) " >&6
4541 if test "x$target_alias" = x
; then
4542 ac_cv_target
=$ac_cv_host
4544 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4545 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4550 $as_echo "$ac_cv_target" >&6; }
4551 case $ac_cv_target in
4553 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4555 target
=$ac_cv_target
4556 ac_save_IFS
=$IFS; IFS
='-'
4562 # Remember, the first character of IFS is used to create $*,
4563 # except with old shells:
4566 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4569 # The aliases save the names the user supplied, while $host etc.
4570 # will get canonicalized.
4571 test -n "$target_alias" &&
4572 test "$program_prefix$program_suffix$program_transform_name" = \
4574 program_prefix
=${target_alias}-
4576 test "$program_prefix" != NONE
&&
4577 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4578 # Use a double $ so make ignores it.
4579 test "$program_suffix" != NONE
&&
4580 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4581 # Double any \ or $.
4582 # By default was `s,x,x', remove it if useless.
4583 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4584 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4587 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
4588 # using the same condition.
4590 # Use the system's zlib library.
4591 zlibdir
="-L\$(top_builddir)/../zlib"
4592 zlibinc
="-I\$(top_srcdir)/../zlib"
4594 # Check whether --with-system-zlib was given.
4595 if test "${with_system_zlib+set}" = set; then :
4596 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
4607 # BFD uses libdl when when plugins enabled.
4610 for ac_header
in dlfcn.h
4612 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4614 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4615 cat >>confdefs.h
<<_ACEOF
4616 #define HAVE_DLFCN_H 1
4623 for ac_header
in windows.h
4625 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4627 if test "x$ac_cv_header_windows_h" = xyes
; then :
4628 cat >>confdefs.h
<<_ACEOF
4629 #define HAVE_WINDOWS_H 1
4637 # Check whether --enable-plugins was given.
4638 if test "${enable_plugins+set}" = set; then :
4639 enableval
=$enable_plugins; case "${enableval}" in
4642 if test "$maybe_plugins" != "yes" ; then
4643 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4647 plugins
=$maybe_plugins
4651 if test "$plugins" = "yes"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4653 $as_echo_n "checking for library containing dlsym... " >&6; }
4654 if ${ac_cv_search_dlsym+:} false
; then :
4655 $as_echo_n "(cached) " >&6
4657 ac_func_search_save_LIBS
=$LIBS
4658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4661 /* Override any GCC internal prototype to avoid an error.
4662 Use char because int might match the return type of a GCC
4663 builtin and then its argument prototype would still apply. */
4676 for ac_lib
in '' dl
; do
4677 if test -z "$ac_lib"; then
4678 ac_res
="none required"
4681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4683 if ac_fn_c_try_link
"$LINENO"; then :
4684 ac_cv_search_dlsym
=$ac_res
4686 rm -f core conftest.err conftest.
$ac_objext \
4688 if ${ac_cv_search_dlsym+:} false
; then :
4692 if ${ac_cv_search_dlsym+:} false
; then :
4695 ac_cv_search_dlsym
=no
4698 LIBS
=$ac_func_search_save_LIBS
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4701 $as_echo "$ac_cv_search_dlsym" >&6; }
4702 ac_res
=$ac_cv_search_dlsym
4703 if test "$ac_res" != no
; then :
4704 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4714 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4719 ac_config_headers
="$ac_config_headers config.h:config.in"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
4725 $as_echo_n "checking for struct termios... " >&6; }
4726 if ${ac_cv_termios_struct+:} false
; then :
4727 $as_echo_n "(cached) " >&6
4729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #include <sys/types.h>
4732 #include <sys/termios.h>
4736 static struct termios x;
4746 if ac_fn_c_try_compile
"$LINENO"; then :
4747 ac_cv_termios_struct
=yes
4749 ac_cv_termios_struct
=no
4751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
4755 $as_echo "$ac_cv_termios_struct" >&6; }
4756 if test $ac_cv_termios_struct = yes; then
4757 sim_termio
="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
4760 if test "$ac_cv_termios_struct" = "yes"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
4762 $as_echo_n "checking for c_line field in struct termios... " >&6; }
4763 if ${ac_cv_termios_cline+:} false
; then :
4764 $as_echo_n "(cached) " >&6
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <sys/types.h>
4769 #include <sys/termios.h>
4773 static struct termios x; x.c_line = 0;
4778 if ac_fn_c_try_compile
"$LINENO"; then :
4779 ac_cv_termios_cline
=yes
4781 ac_cv_termios_cline
=no
4783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
4788 $as_echo "$ac_cv_termios_cline" >&6; }
4789 if test $ac_cv_termios_cline = yes; then
4790 sim_termio
="$sim_termio -DHAVE_TERMIOS_CLINE"
4793 ac_cv_termios_cline
=no
4796 if test "$ac_cv_termios_struct" != "yes"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
4798 $as_echo_n "checking for struct termio... " >&6; }
4799 if ${ac_cv_termio_struct+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <sys/types.h>
4805 #include <sys/termio.h>
4809 static struct termio x;
4819 if ac_fn_c_try_compile
"$LINENO"; then :
4820 ac_cv_termio_struct
=yes
4822 ac_cv_termio_struct
=no
4824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
4828 $as_echo "$ac_cv_termio_struct" >&6; }
4829 if test $ac_cv_termio_struct = yes; then
4830 sim_termio
="$sim_termio -DHAVE_TERMIO_STRUCTURE"
4833 ac_cv_termio_struct
=no
4836 if test "$ac_cv_termio_struct" = "yes"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
4838 $as_echo_n "checking for c_line field in struct termio... " >&6; }
4839 if ${ac_cv_termio_cline+:} false
; then :
4840 $as_echo_n "(cached) " >&6
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <sys/types.h>
4845 #include <sys/termio.h>
4849 static struct termio x; x.c_line = 0;
4854 if ac_fn_c_try_compile
"$LINENO"; then :
4855 ac_cv_termio_cline
=yes
4857 ac_cv_termio_cline
=no
4859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
4864 $as_echo "$ac_cv_termio_cline" >&6; }
4865 if test $ac_cv_termio_cline = yes; then
4866 sim_termio
="$sim_termio -DHAVE_TERMIO_CLINE"
4869 ac_cv_termio_cline
=no
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
4873 $as_echo_n "checking for struct statfs... " >&6; }
4874 if ${ac_cv_struct_statfs+:} false
; then :
4875 $as_echo_n "(cached) " >&6
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4880 #ifdef HAVE_SYS_PARAM_H
4881 #include <sys/param.h>
4883 #ifdef HAVE_SYS_MOUNT_H
4884 #include <sys/mount.h>
4886 #ifdef HAVE_SYS_VFS_H
4887 #include <sys/vfs.h>
4889 #ifdef HAVE_SYS_STATFS_H
4890 #include <sys/statfs.h>
4895 static struct statfs s;
4900 if ac_fn_c_try_compile
"$LINENO"; then :
4901 ac_cv_struct_statfs
=yes
4903 ac_cv_struct_statfs
=no
4905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
4909 $as_echo "$ac_cv_struct_statfs" >&6; }
4910 if test $ac_cv_struct_statfs = yes; then
4912 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
4916 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4917 if test "x$ac_cv_type_long_long" = xyes
; then :
4919 cat >>confdefs.h
<<_ACEOF
4920 #define HAVE_LONG_LONG 1
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
4929 $as_echo_n "checking for /dev/zero... " >&6; }
4930 if ${ac_cv_devzero+:} false
; then :
4931 $as_echo_n "(cached) " >&6
4933 if test "$cross_compiling" = yes; then :
4936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4942 int fd = open ("/dev/zero", O_RDONLY);
4945 for (i = 0; i < sizeof (buf); i++)
4947 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
4949 for (i = 0; i < sizeof (buf); i++)
4955 if ac_fn_c_try_run
"$LINENO"; then :
4960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
4967 $as_echo "$ac_cv_devzero" >&6; }
4968 if test $ac_cv_devzero = yes; then
4969 sim_devzero
="-DHAVE_DEVZERO"
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
4975 $as_echo_n "checking for common simulator directory... " >&6; }
4976 if test -f "${srcdir}/../common/callback.c"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4978 $as_echo "yes" >&6; }
4979 sim_callback
="callback.o targ-map.o"
4980 sim_targ_vals
="targ-vals.h targ-map.c targ-vals.def"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
4989 $as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
4990 if test -f "${srcdir}/../common/sim-fpu.c"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992 $as_echo "yes" >&6; }
4993 sim_fpu_cflags
="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5002 # Since we run commands on the build system, we have to create a
5003 # separate config header for the build system if build != host.
5004 if test x
$host = x
$build; then
5005 ac_config_commands
="$ac_config_commands build-config.h"
5013 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5014 *) realsrcdir
=..
/${srcdir};;
5016 saved_CFLAGS
="${CFLAGS}"
5017 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5018 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
5019 ${realsrcdir}/configure \
5020 --enable-languages=${enable_languages-all} \
5021 --target=$target_alias --host=$build_alias --build=$build_alias
5022 CFLAGS
="${saved_CFLAGS}"
5023 mv config.h ..
/build-config.h
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5037 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_RANLIB+:} false
; then :
5041 $as_echo_n "(cached) " >&6
5043 if test -n "$RANLIB"; then
5044 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 RANLIB
=$ac_cv_prog_RANLIB
5064 if test -n "$RANLIB"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5066 $as_echo "$RANLIB" >&6; }
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5074 if test -z "$ac_cv_prog_RANLIB"; then
5075 ac_ct_RANLIB
=$RANLIB
5076 # Extract the first word of "ranlib", so it can be a program name with args.
5077 set dummy ranlib
; ac_word
=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$ac_ct_RANLIB"; then
5084 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir
=.
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5104 if test -n "$ac_ct_RANLIB"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5106 $as_echo "$ac_ct_RANLIB" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5112 if test "x$ac_ct_RANLIB" = x
; then
5115 case $cross_compiling:$ac_tool_warned in
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned
=yes ;;
5121 RANLIB
=$ac_ct_RANLIB
5124 RANLIB
="$ac_cv_prog_RANLIB"
5163 ac_config_files
="$ac_config_files Makefile"
5165 ac_config_commands
="$ac_config_commands default"
5167 cat >confcache
<<\_ACEOF
5168 # This file is a shell script that caches the results of configure
5169 # tests run on this system so they can be shared between configure
5170 # scripts and configure runs, see configure's option --config-cache.
5171 # It is not useful on other systems. If it contains results you don't
5172 # want to keep, you may remove or edit it.
5174 # config.status only pays attention to the cache file if you give it
5175 # the --recheck option to rerun configure.
5177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5183 # The following way of writing the cache mishandles newlines in values,
5184 # but we know of no workaround that is simple, portable, and efficient.
5185 # So, we kill variables containing newlines.
5186 # Ultrix sh set writes to stderr and can't be redirected directly,
5187 # and sets the high bit in the cache file unless we assign to the vars.
5189 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5190 eval ac_val
=\$
$ac_var
5194 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5198 _ | IFS | as_nl
) ;; #(
5199 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5200 *) { eval $ac_var=; unset $ac_var;} ;;
5206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5207 *${as_nl}ac_space
=\
*)
5208 # `set' does not quote correctly, so add quotes: double-quote
5209 # substitution turns \\\\ into \\, and sed turns \\ into \.
5212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5215 # `set' quotes correctly as required by POSIX, so do not add quotes.
5216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5229 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5230 if test -w "$cache_file"; then
5231 if test "x$cache_file" != "x/dev/null"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5233 $as_echo "$as_me: updating cache $cache_file" >&6;}
5234 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5235 cat confcache
>"$cache_file"
5237 case $cache_file in #(
5239 mv -f confcache
"$cache_file"$$
&&
5240 mv -f "$cache_file"$$
"$cache_file" ;; #(
5242 mv -f confcache
"$cache_file" ;;
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5253 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5254 # Let make expand exec_prefix.
5255 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5257 DEFS
=-DHAVE_CONFIG_H
5262 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5263 # 1. Remove the extension, and $U if already installed.
5264 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5265 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5267 # will be set to the directory where LIBOBJS objects are built.
5268 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5269 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5273 LTLIBOBJS
=$ac_ltlibobjs
5278 : "${CONFIG_STATUS=./config.status}"
5280 ac_clean_files_save
=$ac_clean_files
5281 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5283 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5285 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5287 # Generated by $as_me.
5288 # Run this file to recreate the current configuration.
5289 # Compiler output produced by configure, useful for debugging
5290 # configure, is in config.log if it exists.
5296 SHELL=\${CONFIG_SHELL-$SHELL}
5299 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5300 ## -------------------- ##
5301 ## M4sh Initialization. ##
5302 ## -------------------- ##
5304 # Be more Bourne compatible
5305 DUALCASE
=1; export DUALCASE
# for MKS sh
5306 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5310 # is contrary to our usage. Disable this feature.
5311 alias -g '${1+"$@"}'='"$@"'
5312 setopt NO_GLOB_SUBST
5314 case `(set -o) 2>/dev/null` in #(
5326 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5327 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5328 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5330 # Prefer a ksh shell builtin over an external printf program on Solaris,
5331 # but without wasting forks for bash or zsh.
5332 if test -z "$BASH_VERSION$ZSH_VERSION" \
5333 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5334 as_echo='print
-r --'
5335 as_echo_n='print
-rn --'
5336 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5337 as_echo='printf %s
\n'
5338 as_echo_n='printf %s
'
5340 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5341 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5342 as_echo_n='/usr
/ucb
/echo -n'
5344 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5345 as_echo_n_body='eval
5349 expr "X$arg" : "X\\(.*\\)$as_nl";
5350 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5352 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5354 export as_echo_n_body
5355 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5358 as_echo='sh
-c $as_echo_body as_echo
'
5361 # The user is always right.
5362 if test "${PATH_SEPARATOR+set}" != set; then
5364 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5365 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5372 # We need space, tab and new line, in precisely that order. Quoting is
5373 # there to prevent editors from complaining about space-tab.
5374 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5375 # splitting by setting IFS to empty value.)
5378 # Find who we are. Look in the path if we contain no directory separator.
5381 *[\\/]* ) as_myself=$0 ;;
5382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5393 # We did not find ourselves, most probably we were run as `sh COMMAND'
5394 # in which case we are not to be found in the path.
5395 if test "x$as_myself" = x
; then
5398 if test ! -f "$as_myself"; then
5399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5403 # Unset variables that we do not need and which cause bugs (e.g. in
5404 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5405 # suppresses any "Segmentation fault" message there. '((' could
5406 # trigger a bug in pdksh 5.2.14.
5407 for as_var
in BASH_ENV ENV MAIL MAILPATH
5408 do eval test x\
${$as_var+set} = xset \
5409 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5422 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5426 # ----------------------------------------
5427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5429 # script with STATUS, using 1 if that was 0.
5432 as_status
=$1; test $as_status -eq 0 && as_status
=1
5434 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5437 $as_echo "$as_me: error: $2" >&2
5438 as_fn_exit
$as_status
5442 # as_fn_set_status STATUS
5443 # -----------------------
5444 # Set $? to STATUS, without forking.
5448 } # as_fn_set_status
5452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5462 # Portably unset VAR.
5465 { eval $1=; unset $1;}
5467 as_unset
=as_fn_unset
5468 # as_fn_append VAR VALUE
5469 # ----------------------
5470 # Append the text in VALUE to the end of the definition contained in VAR. Take
5471 # advantage of any shell optimizations that allow amortized linear growth over
5472 # repeated appends, instead of the typical quadratic growth present in naive
5474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5475 eval 'as_fn_append ()
5486 # as_fn_arith ARG...
5487 # ------------------
5488 # Perform arithmetic evaluation on the ARGs, and store the result in the
5489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5490 # must be portable across $(()) and expr.
5491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5492 eval 'as_fn_arith ()
5499 as_val
=`expr "$@" || test $? -eq 1`
5504 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5505 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5511 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5512 as_basename
=basename
5517 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5523 as_me
=`$as_basename -- "$0" ||
5524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5525 X"$0" : 'X\(//\)$' \| \
5526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5528 sed '/^.*\/\([^/][^/]*\)\/*$/{
5542 # Avoid depending upon Character Ranges.
5543 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5544 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5545 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5546 as_cr_digits
='0123456789'
5547 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5549 ECHO_C
= ECHO_N
= ECHO_T
=
5550 case `echo -n x` in #(((((
5552 case `echo 'xy\c'` in
5553 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
5555 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
5562 rm -f conf$$ conf$$.exe conf$$.
file
5563 if test -d conf$$.dir
; then
5564 rm -f conf$$.dir
/conf$$.
file
5567 mkdir conf$$.dir
2>/dev
/null
5569 if (echo >conf$$.
file) 2>/dev
/null
; then
5570 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5572 # ... but there are two gotchas:
5573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5575 # In both cases, we have to default to `cp -pR'.
5576 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
5578 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5586 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
5587 rmdir conf$$.dir
2>/dev
/null
5592 # Create "$as_dir" as a directory, including parents if necessary.
5597 -*) as_dir
=.
/$as_dir;;
5599 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
5603 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5604 *) as_qdir
=$as_dir;;
5606 as_dirs
="'$as_qdir' $as_dirs"
5607 as_dir
=`$as_dirname -- "$as_dir" ||
5608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5609 X"$as_dir" : 'X\(//\)[^/]' \| \
5610 X"$as_dir" : 'X\(//\)$' \| \
5611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5612 $as_echo X"$as_dir" |
5613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5630 test -d "$as_dir" && break
5632 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5633 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
5637 if mkdir
-p .
2>/dev
/null
; then
5638 as_mkdir_p
='mkdir -p "$as_dir"'
5640 test -d .
/-p && rmdir .
/-p
5645 # as_fn_executable_p FILE
5646 # -----------------------
5647 # Test if FILE is an executable regular file.
5648 as_fn_executable_p
()
5650 test -f "$1" && test -x "$1"
5651 } # as_fn_executable_p
5653 as_executable_p
=as_fn_executable_p
5655 # Sed expression to map a string onto a valid CPP name.
5656 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5658 # Sed expression to map a string onto a valid variable name.
5659 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5663 ## ----------------------------------- ##
5664 ## Main body of $CONFIG_STATUS script. ##
5665 ## ----------------------------------- ##
5667 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5670 # Save the log message, to keep $0 and so on meaningful, and to
5671 # report actual input values of CONFIG_FILES etc. instead of their
5672 # values after options handling.
5674 This file was extended by $as_me, which was
5675 generated by GNU Autoconf 2.69. Invocation command line was
5677 CONFIG_FILES = $CONFIG_FILES
5678 CONFIG_HEADERS = $CONFIG_HEADERS
5679 CONFIG_LINKS = $CONFIG_LINKS
5680 CONFIG_COMMANDS = $CONFIG_COMMANDS
5683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5688 case $ac_config_files in *"
5689 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5692 case $ac_config_headers in *"
5693 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5698 # Files that config.status was made for.
5699 config_files="$ac_config_files"
5700 config_headers="$ac_config_headers"
5701 config_commands="$ac_config_commands"
5705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5707 \`$as_me' instantiates files and other configuration actions
5708 from templates according to the current configuration. Unless the files
5709 and actions are specified as TAGs, all are instantiated by default.
5711 Usage: $0 [OPTION]... [TAG]...
5713 -h, --help print this help, then exit
5714 -V, --version print version number and configuration settings, then exit
5715 --config print configuration, then exit
5716 -q, --quiet, --silent
5717 do not print progress messages
5718 -d, --debug don't remove temporary files
5719 --recheck update $as_me by reconfiguring in the same conditions
5720 --file=FILE[:TEMPLATE]
5721 instantiate the configuration file FILE
5722 --header=FILE[:TEMPLATE]
5723 instantiate the configuration header FILE
5725 Configuration files:
5728 Configuration headers:
5731 Configuration commands:
5734 Report bugs to the package provider."
5737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5738 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5741 configured by $0, generated by GNU Autoconf 2.69,
5742 with options \\"\$ac_cs_config\\"
5744 Copyright (C) 2012 Free Software Foundation, Inc.
5745 This config.status script is free software; the Free Software Foundation
5746 gives unlimited permission to copy, distribute and modify it."
5751 test -n "\$AWK" || AWK=awk
5754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5755 # The default lists apply if the user does not specify any file.
5761 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5762 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5766 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5778 # Handling of the options.
5779 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5781 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5782 $as_echo "$ac_cs_version"; exit ;;
5783 --config |
--confi |
--conf |
--con |
--co |
--c )
5784 $as_echo "$ac_cs_config"; exit ;;
5785 --debug |
--debu |
--deb |
--de |
--d |
-d )
5787 --file |
--fil |
--fi |
--f )
5790 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5791 '') as_fn_error $?
"missing file argument" ;;
5793 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5794 ac_need_defaults
=false
;;
5795 --header |
--heade |
--head |
--hea )
5798 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5800 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5801 ac_need_defaults
=false
;;
5803 # Conflict between --help and --header
5804 as_fn_error $?
"ambiguous option: \`$1'
5805 Try \`$0 --help' for more information.";;
5806 --help |
--hel |
-h )
5807 $as_echo "$ac_cs_usage"; exit ;;
5808 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5809 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5813 -*) as_fn_error $?
"unrecognized option: \`$1'
5814 Try \`$0 --help' for more information." ;;
5816 *) as_fn_append ac_config_targets
" $1"
5817 ac_need_defaults
=false
;;
5823 ac_configure_extra_args
=
5825 if $ac_cs_silent; then
5827 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5832 if \$ac_cs_recheck; then
5833 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5835 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5836 CONFIG_SHELL='$SHELL'
5842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5847 ## Running $as_me. ##
5853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5858 # Handling of arguments.
5859 for ac_config_target
in $ac_config_targets
5861 case $ac_config_target in
5862 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5863 "build-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS build-config.h" ;;
5864 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5865 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5867 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5872 # If the user did not use the arguments to specify the items to instantiate,
5873 # then the envvar interface is used. Set only those that are not.
5874 # We use the long form for the default assignment because of an extremely
5875 # bizarre bug on SunOS 4.1.3.
5876 if $ac_need_defaults; then
5877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5882 # Have a temporary directory for convenience. Make it in the build tree
5883 # simply because there is no reason against having it here, and in addition,
5884 # creating and moving files from /tmp can sometimes cause problems.
5885 # Hook for its removal unless debugging.
5886 # Note that there is a small window in which the directory will not be cleaned:
5887 # after its creation but before its name has been assigned to `$tmp'.
5891 trap 'exit_status=$?
5893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5895 trap 'as_fn_exit 1' 1 2 13 15
5897 # Create a (secure) tmp directory for tmp files.
5900 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5904 tmp
=.
/conf$$
-$RANDOM
5905 (umask 077 && mkdir
"$tmp")
5906 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
5909 # Set up the scripts for CONFIG_FILES section.
5910 # No need to generate them if there are no CONFIG_FILES.
5911 # This happens for instance with `./config.status config.h'.
5912 if test -n "$CONFIG_FILES"; then
5915 ac_cr
=`echo X | tr X '\015'`
5916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5917 # But we know of no other shell where ac_cr would be empty at this
5918 # point, so we can use a bashism as a fallback.
5919 if test "x$ac_cr" = x
; then
5920 eval ac_cr
=\$
\'\\r
\'
5922 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5929 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5934 echo "cat >conf$$subs.awk <<_ACEOF" &&
5935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5938 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5941 for ac_last_try in false false false false false :; do
5942 . ./conf$$subs.sh ||
5943 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5945 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5946 if test $ac_delim_n = $ac_delim_num; then
5948 elif $ac_last_try; then
5949 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
5951 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5957 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
5961 s/^/S["/; s
/!.
*/"]=/
5971 s/\(.\{148\}\)..*/\1/
5973 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5978 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5985 s/\(.\{148\}\)..*/\1/
5987 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5991 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5996 ' <conf$$subs.awk | sed '
6001 ' >>$CONFIG_STATUS || ac_write_fail=1
6002 rm -f conf$$subs.awk
6003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6005 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6006 for (key in S) S_is_set[key] = 1
6012 nfields = split(line, field, "@
")
6014 len = length(field[1])
6015 for (i = 2; i < nfields; i++) {
6017 keylen = length(key)
6018 if (S_is_set[key]) {
6020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6021 len += length(value) + length(field[++i])
6032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6033 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6034 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6037 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6038 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6041 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6042 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6043 # trailing colons and then remove the whole line if VPATH becomes empty
6044 # (actually we leave an empty line to preserve line numbers).
6045 if test "x
$srcdir" = x.; then
6046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6065 fi # test -n "$CONFIG_FILES"
6067 # Set up the scripts for CONFIG_HEADERS section.
6068 # No need to generate them if there are no CONFIG_HEADERS.
6069 # This happens for instance with `./config.status Makefile'.
6070 if test -n "$CONFIG_HEADERS"; then
6071 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6075 # Transform confdefs.h into an awk script `defines.awk', embedded as
6076 # here-document in config.status, that substitutes the proper values into
6077 # config.h.in to produce config.h.
6079 # Create a delimiter string that does not exist in confdefs.h, to ease
6080 # handling of long lines.
6082 for ac_last_try in false false :; do
6083 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6084 if test -z "$ac_tt"; then
6086 elif $ac_last_try; then
6087 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6089 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6093 # For the awk script, D is an array of macro values keyed by name,
6094 # likewise P contains macro parameters if any. Preserve backslash
6095 # newline sequences.
6097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6099 s/.\{148\}/&'"$ac_delim"'/g
6102 s/^[ ]*#[ ]*define[ ][ ]*/ /
6109 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6111 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6116 D["\
1"]=" \
3\\\\\\n
"\\/p
6118 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6123 s/.\{148\}/&'"$ac_delim"'/g
6128 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6131 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6133 ' <confdefs.h | sed '
6134 s/'"$ac_delim"'/"\\\
6135 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6138 for (key in D) D_is_set[key] = 1
6141 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6143 split(line, arg, " ")
6144 if (arg[1] == "#") {
6148 defundef
= substr
(arg
[1], 2)
6151 split(mac1
, mac2
, "(") #)
6153 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6154 if (D_is_set
[macro
]) {
6155 # Preserve the white space surrounding the "#".
6156 print prefix
"define", macro P
[macro
] D
[macro
]
6159 # Replace #undef with comments. This is necessary, for example,
6160 # in the case of _POSIX_SOURCE, which is predefined and required
6161 # on some systems where configure will not decide to define it.
6162 if (defundef
== "undef") {
6163 print
"/*", prefix defundef
, macro
, "*/"
6171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6172 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6173 fi # test -n "$CONFIG_HEADERS"
6176 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6181 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6183 case $ac_mode$ac_tag in
6185 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6186 :[FH
]-) ac_tag
=-:-;;
6187 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6204 -) ac_f
="$ac_tmp/stdin";;
6205 *) # Look for the file first in the build tree, then in the source tree
6206 # (if the path is not absolute). The absolute path cannot be DOS-style,
6207 # because $ac_f cannot contain `:'.
6211 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6213 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6215 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6216 as_fn_append ac_file_inputs
" '$ac_f'"
6219 # Let's still pretend it is `configure' which instantiates (i.e., don't
6220 # use $as_me), people would be surprised to read:
6221 # /* config.h. Generated by config.status. */
6222 configure_input
='Generated from '`
6223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6225 if test x
"$ac_file" != x-
; then
6226 configure_input
="$ac_file. $configure_input"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6228 $as_echo "$as_me: creating $ac_file" >&6;}
6230 # Neutralize special characters interpreted by sed in replacement strings.
6231 case $configure_input in #(
6232 *\
&* |
*\|
* |
*\\* )
6233 ac_sed_conf_input
=`$as_echo "$configure_input" |
6234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6235 *) ac_sed_conf_input
=$configure_input;;
6239 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6240 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6245 ac_dir
=`$as_dirname -- "$ac_file" ||
6246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6247 X"$ac_file" : 'X\(//\)[^/]' \| \
6248 X"$ac_file" : 'X\(//\)$' \| \
6249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6250 $as_echo X"$ac_file" |
6251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6268 as_dir
="$ac_dir"; as_fn_mkdir_p
6272 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6274 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6275 # A ".." for each directory in $ac_dir_suffix.
6276 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6277 case $ac_top_builddir_sub in
6278 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6279 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6282 ac_abs_top_builddir
=$ac_pwd
6283 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6284 # for backward compatibility:
6285 ac_top_builddir
=$ac_top_build_prefix
6288 .
) # We are building in place.
6290 ac_top_srcdir
=$ac_top_builddir_sub
6291 ac_abs_top_srcdir
=$ac_pwd ;;
6292 [\\/]* | ?
:[\\/]* ) # Absolute name.
6293 ac_srcdir
=$srcdir$ac_dir_suffix;
6294 ac_top_srcdir
=$srcdir
6295 ac_abs_top_srcdir
=$srcdir ;;
6297 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6298 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6299 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6301 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6311 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6312 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6317 # If the template does not know about datarootdir, expand it.
6318 # FIXME: This hack should be removed a few years after 2.60.
6319 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6330 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6331 *datarootdir
*) ac_datarootdir_seen
=yes;;
6332 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6334 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6337 ac_datarootdir_hack='
6338 s&@datadir@&$datadir&g
6339 s&@docdir@&$docdir&g
6340 s&@infodir@&$infodir&g
6341 s&@localedir@&$localedir&g
6342 s&@mandir@&$mandir&g
6343 s&\\\${datarootdir}&$datarootdir&g' ;;
6347 # Neutralize VPATH when `$srcdir' = `.'.
6348 # Shell code in configure.ac might set extrasub.
6349 # FIXME: do we really want to maintain this feature?
6350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6351 ac_sed_extra="$ac_vpsub
6354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6356 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6357 s|@configure_input@|
$ac_sed_conf_input|
;t t
6358 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6359 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6360 s
&@srcdir@
&$ac_srcdir&;t t
6361 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6362 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6363 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6364 s
&@builddir@
&$ac_builddir&;t t
6365 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6366 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6367 s
&@INSTALL@
&$ac_INSTALL&;t t
6368 $ac_datarootdir_hack
6370 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6371 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6374 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6376 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6378 which seems to be undefined. Please make sure it is defined" >&5
6379 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6380 which seems to be undefined. Please make sure it is defined" >&2;}
6382 rm -f "$ac_tmp/stdin"
6384 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6385 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6393 if test x"$ac_file" != x-; then
6395 $as_echo "/* $configure_input */" \
6396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6397 } >"$ac_tmp/config.h" \
6398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6399 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6401 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6404 mv "$ac_tmp/config.h" "$ac_file" \
6405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6408 $as_echo "/* $configure_input */" \
6409 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6410 || as_fn_error $? "could not create -" "$LINENO" 5
6414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6415 $as_echo "$as_me: executing $ac_file commands" >&6;}
6420 case $ac_file$ac_mode in
6421 "build-config.h":C) cp config.h build-config.h ;;
6422 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
6430 ac_clean_files=$ac_clean_files_save
6432 test $ac_write_fail = 0 ||
6433 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6436 # configure is writing to config.log, and then calls config.status.
6437 # config.status does its own redirection, appending to config.log.
6438 # Unfortunately, on DOS this fails, as config.log is still kept open
6439 # by configure, so config.status won't be able to
write to it
; its
6440 # output is simply discarded. So we exec the FD to /dev/null,
6441 # effectively closing config.log, so it can be properly (re)opened and
6442 # appended to by config.status. When coming back to configure, we
6443 # need to make the FD available again.
6444 if test "$no_create" != yes; then
6446 ac_config_status_args
=
6447 test "$silent" = yes &&
6448 ac_config_status_args
="$ac_config_status_args --quiet"
6450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6453 # would make configure fail if this is the last instruction.
6454 $ac_cs_success || as_fn_exit
1
6456 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6458 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}